#[repr(C)]
pub struct Dav1dSequenceHeader {
Show 53 fields pub profile: u8, pub max_width: c_int, pub max_height: c_int, pub layout: Dav1dPixelLayout, pub pri: Dav1dColorPrimaries, pub trc: Dav1dTransferCharacteristics, pub mtrx: Dav1dMatrixCoefficients, pub chr: Dav1dChromaSamplePosition, pub hbd: u8, pub color_range: u8, pub num_operating_points: u8, pub operating_points: [Dav1dSequenceHeader_Dav1dSequenceHeaderOperatingPoint; 32], pub still_picture: u8, pub reduced_still_picture_header: u8, pub timing_info_present: u8, pub num_units_in_tick: u32, pub time_scale: u32, pub equal_picture_interval: u8, pub num_ticks_per_picture: u32, pub decoder_model_info_present: u8, pub encoder_decoder_buffer_delay_length: u8, pub num_units_in_decoding_tick: u32, pub buffer_removal_delay_length: u8, pub frame_presentation_delay_length: u8, pub display_model_info_present: u8, pub width_n_bits: u8, pub height_n_bits: u8, pub frame_id_numbers_present: u8, pub delta_frame_id_n_bits: u8, pub frame_id_n_bits: u8, pub sb128: u8, pub filter_intra: u8, pub intra_edge_filter: u8, pub inter_intra: u8, pub masked_compound: u8, pub warped_motion: u8, pub dual_filter: u8, pub order_hint: u8, pub jnt_comp: u8, pub ref_frame_mvs: u8, pub screen_content_tools: Dav1dAdaptiveBoolean, pub force_integer_mv: Dav1dAdaptiveBoolean, pub order_hint_n_bits: u8, pub super_res: u8, pub cdef: u8, pub restoration: u8, pub ss_hor: u8, pub ss_ver: u8, pub monochrome: u8, pub color_description_present: u8, pub separate_uv_delta_q: u8, pub film_grain_present: u8, pub operating_parameter_info: [Dav1dSequenceHeader_Dav1dSequenceHeaderOperatingParameterInfo; 32],
}

Fields§

§profile: u8

Stream profile, 0 for 8-10 bits/component 4:2:0 or monochrome; 1 for 8-10 bits/component 4:4:4; 2 for 4:2:2 at any bits/component, or 12 bits/component at any chroma subsampling.

§max_width: c_int

Maximum dimensions for this stream. In non-scalable streams, these are often the actual dimensions of the stream, although that is not a normative requirement.

§max_height: c_int

Maximum dimensions for this stream. In non-scalable streams, these are often the actual dimensions of the stream, although that is not a normative requirement.

§layout: Dav1dPixelLayout

< format of the picture

§pri: Dav1dColorPrimaries

< color primaries (av1)

§trc: Dav1dTransferCharacteristics

< transfer characteristics (av1)

§mtrx: Dav1dMatrixCoefficients

< matrix coefficients (av1)

§chr: Dav1dChromaSamplePosition

< chroma sample position (av1)

§hbd: u8

0, 1 and 2 mean 8, 10 or 12 bits/component, respectively. This is not exactly the same as ‘hbd’ from the spec; the spec’s hbd distinguishes between 8 (0) and 10-12 (1) bits/component, and another element (twelve_bit) to distinguish between 10 and 12 bits/component. To get the spec’s hbd, use !!our_hbd, and to get twelve_bit, use hbd == 2.

§color_range: u8

Pixel data uses JPEG pixel range ([0,255] for 8bits) instead of MPEG pixel range ([16,235] for 8bits luma, [16,240] for 8bits chroma).

§num_operating_points: u8§operating_points: [Dav1dSequenceHeader_Dav1dSequenceHeaderOperatingPoint; 32]§still_picture: u8§reduced_still_picture_header: u8§timing_info_present: u8§num_units_in_tick: u32§time_scale: u32§equal_picture_interval: u8§num_ticks_per_picture: u32§decoder_model_info_present: u8§encoder_decoder_buffer_delay_length: u8§num_units_in_decoding_tick: u32§buffer_removal_delay_length: u8§frame_presentation_delay_length: u8§display_model_info_present: u8§width_n_bits: u8§height_n_bits: u8§frame_id_numbers_present: u8§delta_frame_id_n_bits: u8§frame_id_n_bits: u8§sb128: u8§filter_intra: u8§intra_edge_filter: u8§inter_intra: u8§masked_compound: u8§warped_motion: u8§dual_filter: u8§order_hint: u8§jnt_comp: u8§ref_frame_mvs: u8§screen_content_tools: Dav1dAdaptiveBoolean§force_integer_mv: Dav1dAdaptiveBoolean§order_hint_n_bits: u8§super_res: u8§cdef: u8§restoration: u8§ss_hor: u8§ss_ver: u8§monochrome: u8§color_description_present: u8§separate_uv_delta_q: u8§film_grain_present: u8§operating_parameter_info: [Dav1dSequenceHeader_Dav1dSequenceHeaderOperatingParameterInfo; 32]

Trait Implementations§

source§

impl Clone for Dav1dSequenceHeader

source§

fn clone(&self) -> Dav1dSequenceHeader

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for Dav1dSequenceHeader

source§

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

Formats the value using the given formatter. Read more
source§

impl Copy for Dav1dSequenceHeader

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> 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> ToOwned for T
where T: Clone,

§

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>,

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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.