#[non_exhaustive]pub struct AV1Metadata {
pub still_picture: bool,
pub max_frame_width: NonZeroU32,
pub max_frame_height: NonZeroU32,
pub bit_depth: u8,
pub seq_profile: u8,
pub chroma_subsampling: (bool, bool),
pub monochrome: bool,
}
Expand description
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.still_picture: bool
Should be true for non-animated AVIF
max_frame_width: NonZeroU32
§max_frame_height: NonZeroU32
§bit_depth: u8
8, 10, or 12
seq_profile: u8
0, 1 or 2 for the level of complexity
chroma_subsampling: (bool, bool)
Horizontal and vertical. false
is full-res.
monochrome: bool
Implementations§
Source§impl AV1Metadata
impl AV1Metadata
Sourcepub fn parse_av1_bitstream(obu_bitstream: &[u8]) -> Result<Self>
pub fn parse_av1_bitstream(obu_bitstream: &[u8]) -> Result<Self>
Parses raw AV1 bitstream (OBU sequence header) only.
This is for the bare image payload from an encoder, not an AVIF/HEIF file.
To parse AVIF files, see AvifData::from_reader()
.
Trait Implementations§
Source§impl Clone for AV1Metadata
impl Clone for AV1Metadata
Source§fn clone(&self) -> AV1Metadata
fn clone(&self) -> AV1Metadata
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for AV1Metadata
impl RefUnwindSafe for AV1Metadata
impl Send for AV1Metadata
impl Sync for AV1Metadata
impl Unpin for AV1Metadata
impl UnwindSafe for AV1Metadata
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