pub struct SequenceHeader {
pub profile: u8,
pub still_picture: bool,
pub reduced_still_picture_header: bool,
pub max_frame_width_minus_1: u32,
pub max_frame_height_minus_1: u32,
pub enable_order_hint: bool,
pub order_hint_bits: u8,
pub enable_superres: bool,
pub enable_cdef: bool,
pub enable_restoration: bool,
pub color_config: ColorConfig,
pub film_grain_params_present: bool,
}Expand description
AV1 Sequence Header OBU.
Fields§
§profile: u8Profile (0=Main, 1=High, 2=Professional).
still_picture: boolStill picture mode.
reduced_still_picture_header: boolReduced still picture header.
max_frame_width_minus_1: u32Maximum frame width minus 1.
max_frame_height_minus_1: u32Maximum frame height minus 1.
enable_order_hint: boolEnable order hint.
order_hint_bits: u8Order hint bits minus 1.
enable_superres: boolEnable superres.
enable_cdef: boolEnable CDEF.
enable_restoration: boolEnable restoration.
color_config: ColorConfigColor configuration.
film_grain_params_present: boolFilm grain params present.
Implementations§
Source§impl SequenceHeader
impl SequenceHeader
Sourcepub const fn max_frame_width(&self) -> u32
pub const fn max_frame_width(&self) -> u32
Get maximum frame width.
Sourcepub const fn max_frame_height(&self) -> u32
pub const fn max_frame_height(&self) -> u32
Get maximum frame height.
Sourcepub fn parse(data: &[u8]) -> CodecResult<Self>
pub fn parse(data: &[u8]) -> CodecResult<Self>
Trait Implementations§
Source§impl Clone for SequenceHeader
impl Clone for SequenceHeader
Source§fn clone(&self) -> SequenceHeader
fn clone(&self) -> SequenceHeader
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 moreAuto Trait Implementations§
impl Freeze for SequenceHeader
impl RefUnwindSafe for SequenceHeader
impl Send for SequenceHeader
impl Sync for SequenceHeader
impl Unpin for SequenceHeader
impl UnsafeUnpin for SequenceHeader
impl UnwindSafe for SequenceHeader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more