Skip to main content

StdVideoH265HrdParameters

Struct StdVideoH265HrdParameters 

Source
pub struct StdVideoH265HrdParameters<'a> {
Show 15 fields pub flags: StdVideoH265HrdFlags, pub tick_divisor_minus2: u8, pub du_cpb_removal_delay_increment_length_minus1: u8, pub dpb_output_delay_du_length_minus1: u8, pub bit_rate_scale: u8, pub cpb_size_scale: u8, pub cpb_size_du_scale: u8, pub initial_cpb_removal_delay_length_minus1: u8, pub au_cpb_removal_delay_length_minus1: u8, pub dpb_output_delay_length_minus1: u8, pub cpb_cnt_minus1: [u8; 7], pub elemental_duration_in_tc_minus1: [u16; 7], pub reserved: [u16; 3], pub p_sub_layer_hrd_parameters_nal: *const StdVideoH265SubLayerHrdParameters, pub p_sub_layer_hrd_parameters_vcl: *const StdVideoH265SubLayerHrdParameters, /* private fields */
}
Expand description

Native structure StdVideoH265HrdParameters.

Khronos registry source: StdVideoH265HrdParameters

Fields§

§flags: StdVideoH265HrdFlags

Native field flags.

§tick_divisor_minus2: u8

Native field tick_divisor_minus2.

§du_cpb_removal_delay_increment_length_minus1: u8

Native field du_cpb_removal_delay_increment_length_minus1.

§dpb_output_delay_du_length_minus1: u8

Native field dpb_output_delay_du_length_minus1.

§bit_rate_scale: u8

Native field bit_rate_scale.

§cpb_size_scale: u8

Native field cpb_size_scale.

§cpb_size_du_scale: u8

Native field cpb_size_du_scale.

§initial_cpb_removal_delay_length_minus1: u8

Native field initial_cpb_removal_delay_length_minus1.

§au_cpb_removal_delay_length_minus1: u8

Native field au_cpb_removal_delay_length_minus1.

§dpb_output_delay_length_minus1: u8

Native field dpb_output_delay_length_minus1.

§cpb_cnt_minus1: [u8; 7]

Native field cpb_cnt_minus1.

§elemental_duration_in_tc_minus1: [u16; 7]

Native field elemental_duration_in_tc_minus1.

§reserved: [u16; 3]

Native field reserved.

§p_sub_layer_hrd_parameters_nal: *const StdVideoH265SubLayerHrdParameters

Native field pSubLayerHrdParametersNal.

§p_sub_layer_hrd_parameters_vcl: *const StdVideoH265SubLayerHrdParameters

Native field pSubLayerHrdParametersVcl.

Implementations§

Source§

impl<'a> StdVideoH265HrdParameters<'a>

Source

pub fn new() -> Self

Construct the record with its default native state.

Source

pub fn set_flags(self, value: StdVideoH265HrdFlags) -> Self

Set native field flags without native effects.

Source

pub fn set_tick_divisor_minus2(self, value: u8) -> Self

Set native field tick_divisor_minus2 without native effects.

Source

pub fn set_du_cpb_removal_delay_increment_length_minus1(self, value: u8) -> Self

Set native field du_cpb_removal_delay_increment_length_minus1 without native effects.

Source

pub fn set_dpb_output_delay_du_length_minus1(self, value: u8) -> Self

Set native field dpb_output_delay_du_length_minus1 without native effects.

Source

pub fn set_bit_rate_scale(self, value: u8) -> Self

Set native field bit_rate_scale without native effects.

Source

pub fn set_cpb_size_scale(self, value: u8) -> Self

Set native field cpb_size_scale without native effects.

Source

pub fn set_cpb_size_du_scale(self, value: u8) -> Self

Set native field cpb_size_du_scale without native effects.

Source

pub fn set_initial_cpb_removal_delay_length_minus1(self, value: u8) -> Self

Set native field initial_cpb_removal_delay_length_minus1 without native effects.

Source

pub fn set_au_cpb_removal_delay_length_minus1(self, value: u8) -> Self

Set native field au_cpb_removal_delay_length_minus1 without native effects.

Source

pub fn set_dpb_output_delay_length_minus1(self, value: u8) -> Self

Set native field dpb_output_delay_length_minus1 without native effects.

Source

pub fn set_cpb_cnt_minus1(self, value: [u8; 7]) -> Self

Set native field cpb_cnt_minus1 without native effects.

Source

pub fn set_elemental_duration_in_tc_minus1(self, value: [u16; 7]) -> Self

Set native field elemental_duration_in_tc_minus1 without native effects.

Source

pub fn set_reserved(self, value: [u16; 3]) -> Self

Set native field reserved without native effects.

Source

pub fn set_sub_layer_hrd_parameters_nal( self, max_sub_layers_minus1: u8, value: &'a [StdVideoH265SubLayerHrdParameters], ) -> Result<Self, ConstructionError>

Borrow H.265 HRD storage using its enclosing SPS/VPS sub-layer extent. The caller supplies the matching enclosing *_max_sub_layers_minus1; presence flags and the enclosing record remain native-call obligations.

§Errors

Returns a length mismatch unless the slice has max_sub_layers_minus1 + 1 entries.

Source

pub fn set_sub_layer_hrd_parameters_vcl( self, max_sub_layers_minus1: u8, value: &'a [StdVideoH265SubLayerHrdParameters], ) -> Result<Self, ConstructionError>

Borrow H.265 HRD storage using its enclosing SPS/VPS sub-layer extent. The caller supplies the matching enclosing *_max_sub_layers_minus1; presence flags and the enclosing record remain native-call obligations.

§Errors

Returns a length mismatch unless the slice has max_sub_layers_minus1 + 1 entries.

Trait Implementations§

Source§

impl<'a> Clone for StdVideoH265HrdParameters<'a>

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<'a> Copy for StdVideoH265HrdParameters<'a>

Source§

impl<'a> Default for StdVideoH265HrdParameters<'a>

Source§

fn default() -> Self

Returns the “default value” for a type. 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> 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.