pub struct Av1Config {
pub seq_profile: u8,
pub seq_level_idx0: u8,
pub seq_tier0: u8,
pub bit_depth: u8,
pub subsampling: Subsampling,
pub chroma_sample_position: u8,
pub config_obus: Vec<u8>,
}Expand description
The av1C AV1 codec configuration.
This is the bridge between the two specifications AVIF is made of: it declares the AV1 profile and sample format, and carries the sequence header OBU that the bitstream decoder needs before it can read a frame.
Fields§
§seq_profile: u8AV1 sequence profile, 0–2.
seq_level_idx0: u8AV1 level index.
seq_tier0: u8AV1 tier.
bit_depth: u8Bits per sample: 8, 10 or 12.
subsampling: SubsamplingHow chroma is sampled.
chroma_sample_position: u8Chroma sample position, 0–3.
config_obus: Vec<u8>The OBUs carried in the configuration record itself.
Normally the sequence header, so a decoder can be configured before it
reaches the frame data in mdat.
Trait Implementations§
impl Eq for Av1Config
impl StructuralPartialEq for Av1Config
Auto Trait Implementations§
impl Freeze for Av1Config
impl RefUnwindSafe for Av1Config
impl Send for Av1Config
impl Sync for Av1Config
impl Unpin for Av1Config
impl UnsafeUnpin for Av1Config
impl UnwindSafe for Av1Config
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