Skip to main content

StdVideoH264SequenceParameterSet

Struct StdVideoH264SequenceParameterSet 

Source
pub struct StdVideoH264SequenceParameterSet<'a> {
Show 25 fields pub flags: StdVideoH264SpsFlags, pub profile_idc: StdVideoH264ProfileIdc, pub level_idc: StdVideoH264LevelIdc, pub chroma_format_idc: StdVideoH264ChromaFormatIdc, pub seq_parameter_set_id: u8, pub bit_depth_luma_minus8: u8, pub bit_depth_chroma_minus8: u8, pub log2_max_frame_num_minus4: u8, pub pic_order_cnt_type: StdVideoH264PocType, pub offset_for_non_ref_pic: i32, pub offset_for_top_to_bottom_field: i32, pub log2_max_pic_order_cnt_lsb_minus4: u8, pub num_ref_frames_in_pic_order_cnt_cycle: u8, pub max_num_ref_frames: u8, pub reserved1: u8, pub pic_width_in_mbs_minus1: u32, pub pic_height_in_map_units_minus1: u32, pub frame_crop_left_offset: u32, pub frame_crop_right_offset: u32, pub frame_crop_top_offset: u32, pub frame_crop_bottom_offset: u32, pub reserved2: u32, pub p_offset_for_ref_frame: *const i32, pub p_scaling_lists: *const StdVideoH264ScalingLists, pub p_sequence_parameter_set_vui: *const StdVideoH264SequenceParameterSetVui<'a>, /* private fields */
}
Expand description

Native structure StdVideoH264SequenceParameterSet.

Khronos registry source: StdVideoH264SequenceParameterSet

Fields§

§flags: StdVideoH264SpsFlags

Native field flags.

§profile_idc: StdVideoH264ProfileIdc

Native field profile_idc.

§level_idc: StdVideoH264LevelIdc

Native field level_idc.

§chroma_format_idc: StdVideoH264ChromaFormatIdc

Native field chroma_format_idc.

§seq_parameter_set_id: u8

Native field seq_parameter_set_id.

§bit_depth_luma_minus8: u8

Native field bit_depth_luma_minus8.

§bit_depth_chroma_minus8: u8

Native field bit_depth_chroma_minus8.

§log2_max_frame_num_minus4: u8

Native field log2_max_frame_num_minus4.

§pic_order_cnt_type: StdVideoH264PocType

Native field pic_order_cnt_type.

§offset_for_non_ref_pic: i32

Native field offset_for_non_ref_pic.

§offset_for_top_to_bottom_field: i32

Native field offset_for_top_to_bottom_field.

§log2_max_pic_order_cnt_lsb_minus4: u8

Native field log2_max_pic_order_cnt_lsb_minus4.

§num_ref_frames_in_pic_order_cnt_cycle: u8

Native field num_ref_frames_in_pic_order_cnt_cycle.

§max_num_ref_frames: u8

Native field max_num_ref_frames.

§reserved1: u8

Native field reserved1.

§pic_width_in_mbs_minus1: u32

Native field pic_width_in_mbs_minus1.

§pic_height_in_map_units_minus1: u32

Native field pic_height_in_map_units_minus1.

§frame_crop_left_offset: u32

Native field frame_crop_left_offset.

§frame_crop_right_offset: u32

Native field frame_crop_right_offset.

§frame_crop_top_offset: u32

Native field frame_crop_top_offset.

§frame_crop_bottom_offset: u32

Native field frame_crop_bottom_offset.

§reserved2: u32

Native field reserved2.

§p_offset_for_ref_frame: *const i32

Native field pOffsetForRefFrame.

§p_scaling_lists: *const StdVideoH264ScalingLists

Native field pScalingLists.

§p_sequence_parameter_set_vui: *const StdVideoH264SequenceParameterSetVui<'a>

Native field pSequenceParameterSetVui.

Implementations§

Source§

impl<'a> StdVideoH264SequenceParameterSet<'a>

Source

pub fn new() -> Self

Construct the record with its default native state.

Source

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

Set native field flags without native effects.

Source

pub fn set_profile_idc(self, value: StdVideoH264ProfileIdc) -> Self

Set native field profile_idc without native effects.

Source

pub fn set_level_idc(self, value: StdVideoH264LevelIdc) -> Self

Set native field level_idc without native effects.

Source

pub fn set_chroma_format_idc(self, value: StdVideoH264ChromaFormatIdc) -> Self

Set native field chroma_format_idc without native effects.

Source

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

Set native field seq_parameter_set_id without native effects.

Source

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

Set native field bit_depth_luma_minus8 without native effects.

Source

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

Set native field bit_depth_chroma_minus8 without native effects.

Source

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

Set native field log2_max_frame_num_minus4 without native effects.

Source

pub fn set_pic_order_cnt_type(self, value: StdVideoH264PocType) -> Self

Set native field pic_order_cnt_type without native effects.

Source

pub fn set_offset_for_non_ref_pic(self, value: i32) -> Self

Set native field offset_for_non_ref_pic without native effects.

Source

pub fn set_offset_for_top_to_bottom_field(self, value: i32) -> Self

Set native field offset_for_top_to_bottom_field without native effects.

Source

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

Set native field log2_max_pic_order_cnt_lsb_minus4 without native effects.

Source

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

Set native count num_ref_frames_in_pic_order_cnt_cycle directly without checking associated pointer extents. Use the borrowed array helpers to derive matching storage and counts together. Direct count edits support null-query/dynamic-state paths and remain a native-call validity obligation, including after earlier borrowed setters.

Source

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

Set native field max_num_ref_frames without native effects.

Source

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

Set native field reserved1 without native effects.

Source

pub fn set_pic_width_in_mbs_minus1(self, value: u32) -> Self

Set native field pic_width_in_mbs_minus1 without native effects.

Source

pub fn set_pic_height_in_map_units_minus1(self, value: u32) -> Self

Set native field pic_height_in_map_units_minus1 without native effects.

Source

pub fn set_frame_crop_left_offset(self, value: u32) -> Self

Set native field frame_crop_left_offset without native effects.

Source

pub fn set_frame_crop_right_offset(self, value: u32) -> Self

Set native field frame_crop_right_offset without native effects.

Source

pub fn set_frame_crop_top_offset(self, value: u32) -> Self

Set native field frame_crop_top_offset without native effects.

Source

pub fn set_frame_crop_bottom_offset(self, value: u32) -> Self

Set native field frame_crop_bottom_offset without native effects.

Source

pub fn set_reserved2(self, value: u32) -> Self

Set native field reserved2 without native effects.

Source

pub fn set_offset_for_ref_frame( self, value: &'a [i32], ) -> Result<Self, ConstructionError>

Borrow pOffsetForRefFrame and set checked native count num_ref_frames_in_pic_order_cnt_cycle. The borrow covers this storage only; nested raw pointers, format, alignment and asynchronous retention remain native-call obligations. Output storage must be initialized; returned sizes do not enlarge its capacity.

§Errors

Returns a construction error if the length exceeds the native count width.

Source

pub fn set_scaling_lists(self, value: &'a StdVideoH264ScalingLists) -> Self

Set native field pScalingLists without native effects.

Source

pub fn set_sequence_parameter_set_vui( self, value: &'a StdVideoH264SequenceParameterSetVui<'a>, ) -> Self

Set native field pSequenceParameterSetVui without native effects.

Trait Implementations§

Source§

impl<'a> Clone for StdVideoH264SequenceParameterSet<'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 StdVideoH264SequenceParameterSet<'a>

Source§

impl<'a> Default for StdVideoH264SequenceParameterSet<'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.