Skip to main content

SequenceHeader

Struct SequenceHeader 

Source
pub struct SequenceHeader {
Show 36 fields pub seq_profile: u8, pub still_picture: bool, pub reduced_still_picture_header: bool, pub operating_points: Vec<OperatingPoint>, pub operating_point_idc: u16, pub frame_width_bits: u32, pub frame_height_bits: u32, pub max_frame_width: u32, pub max_frame_height: u32, pub frame_id_numbers_present: bool, pub delta_frame_id_length: u32, pub additional_frame_id_length: u32, pub use_128x128_superblock: bool, pub enable_filter_intra: bool, pub enable_intra_edge_filter: bool, pub enable_interintra_compound: bool, pub enable_masked_compound: bool, pub enable_warped_motion: bool, pub enable_dual_filter: bool, pub enable_order_hint: bool, pub enable_jnt_comp: bool, pub enable_ref_frame_mvs: bool, pub seq_force_screen_content_tools: u8, pub seq_force_integer_mv: u8, pub order_hint_bits: u32, pub enable_superres: bool, pub enable_cdef: bool, pub enable_restoration: bool, pub color: ColorConfig, pub film_grain_params_present: bool, pub decoder_model_info_present: bool, pub buffer_delay_length: u32, pub buffer_removal_time_length: u32, pub frame_presentation_time_length: u32, pub equal_picture_interval: bool, pub timing_info_present: bool,
}
Expand description

A fully parsed sequence header.

Fields§

§seq_profile: u8

seq_profile — 0, 1 or 2.

§still_picture: bool

Whether the stream is flagged as a single still picture.

§reduced_still_picture_header: bool

Whether the compact still-picture header form was used.

§operating_points: Vec<OperatingPoint>

Every operating point in declaration order.

§operating_point_idc: u16

OperatingPointIdc for the chosen point (point 0): the layer mask the frame header uses to decide whether to read temporal/spatial IDs.

§frame_width_bits: u32

Bits used to code a frame width, frame_width_bits_minus_1 + 1.

§frame_height_bits: u32

Bits used to code a frame height, frame_height_bits_minus_1 + 1.

§max_frame_width: u32

Maximum frame width in samples.

§max_frame_height: u32

Maximum frame height in samples.

§frame_id_numbers_present: bool

Whether frames carry explicit frame-id numbers.

§delta_frame_id_length: u32

delta_frame_id_length_minus_2 + 2 when ids are present.

§additional_frame_id_length: u32

additional_frame_id_length_minus_1 + 1 when ids are present.

§use_128x128_superblock: bool

Whether superblocks are 128x128 (true) or 64x64 (false).

§enable_filter_intra: bool

Whether filter-intra prediction is enabled.

§enable_intra_edge_filter: bool

Whether the intra edge filter is enabled.

§enable_interintra_compound: bool

Inter-only tool switches, retained so the frame header parse stays faithful even though a still image never exercises them.

§enable_masked_compound: bool

Whether masked compound is enabled.

§enable_warped_motion: bool

Whether warped motion is enabled.

§enable_dual_filter: bool

Whether the dual interpolation filter is enabled.

§enable_order_hint: bool

Whether order hints are coded.

§enable_jnt_comp: bool

Whether jnt_comp (distance-weighted compound) is enabled.

§enable_ref_frame_mvs: bool

Whether reference-frame motion vectors are enabled.

§seq_force_screen_content_tools: u8

seq_force_screen_content_tools, possibly the SELECT sentinel.

§seq_force_integer_mv: u8

seq_force_integer_mv, possibly the SELECT sentinel.

§order_hint_bits: u32

OrderHintBits — bits used to code an order hint, 0 when disabled.

§enable_superres: bool

Whether super-resolution is enabled.

§enable_cdef: bool

Whether CDEF is enabled.

§enable_restoration: bool

Whether loop restoration is enabled.

§color: ColorConfig

The colour configuration.

§film_grain_params_present: bool

Whether film-grain parameters may appear in frame headers.

§decoder_model_info_present: bool

Whether a decoder model was signalled (affects the frame header).

§buffer_delay_length: u32

buffer_delay_length_minus_1 + 1 from the decoder model.

§buffer_removal_time_length: u32

buffer_removal_time_length_minus_1 + 1 from the decoder model.

§frame_presentation_time_length: u32

frame_presentation_time_length_minus_1 + 1 from the decoder model.

§equal_picture_interval: bool

Whether pictures are equally spaced in time.

§timing_info_present: bool

Whether timing information was present.

Implementations§

Source§

impl SequenceHeader

Source

pub fn parse(r: &mut BitReader<'_>) -> Result<Self>

Parse a sequence header from the start of an OBU payload.

Trait Implementations§

Source§

impl Clone for SequenceHeader

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SequenceHeader

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.