pub struct CodecOptions { /* private fields */ }Expand description
Codec-private options, matching FFmpeg’s AVOption system.
Options are stored as string key-value pairs, parsed by each codec.
Uses Vec<(String, String)> for deterministic ordering (required for
FATE test parity — see CLAUDE.md).
Implementations§
Source§impl CodecOptions
impl CodecOptions
pub fn new() -> Self
Sourcepub fn set(&mut self, key: impl Into<String>, value: impl Into<String>)
pub fn set(&mut self, key: impl Into<String>, value: impl Into<String>)
Set an option. If the key already exists, its value is replaced in-place to preserve insertion order.
Sourcepub fn get_bool(&self, key: &str) -> Option<bool>
pub fn get_bool(&self, key: &str) -> Option<bool>
Get an option parsed as bool.
Recognizes “1”, “true”, “yes” as true and “0”, “false”, “no” as false,
matching FFmpeg’s av_opt_set boolean parsing.
Trait Implementations§
Source§impl Clone for CodecOptions
impl Clone for CodecOptions
Source§fn clone(&self) -> CodecOptions
fn clone(&self) -> CodecOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CodecOptions
impl Debug for CodecOptions
Source§impl Default for CodecOptions
impl Default for CodecOptions
Source§fn default() -> CodecOptions
fn default() -> CodecOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CodecOptions
impl RefUnwindSafe for CodecOptions
impl Send for CodecOptions
impl Sync for CodecOptions
impl Unpin for CodecOptions
impl UnsafeUnpin for CodecOptions
impl UnwindSafe for CodecOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more