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.
Fields§
§flags: StdVideoH264SpsFlagsNative field flags.
profile_idc: StdVideoH264ProfileIdcNative field profile_idc.
level_idc: StdVideoH264LevelIdcNative field level_idc.
chroma_format_idc: StdVideoH264ChromaFormatIdcNative field chroma_format_idc.
seq_parameter_set_id: u8Native field seq_parameter_set_id.
bit_depth_luma_minus8: u8Native field bit_depth_luma_minus8.
bit_depth_chroma_minus8: u8Native field bit_depth_chroma_minus8.
log2_max_frame_num_minus4: u8Native field log2_max_frame_num_minus4.
pic_order_cnt_type: StdVideoH264PocTypeNative field pic_order_cnt_type.
offset_for_non_ref_pic: i32Native field offset_for_non_ref_pic.
offset_for_top_to_bottom_field: i32Native field offset_for_top_to_bottom_field.
log2_max_pic_order_cnt_lsb_minus4: u8Native field log2_max_pic_order_cnt_lsb_minus4.
num_ref_frames_in_pic_order_cnt_cycle: u8Native field num_ref_frames_in_pic_order_cnt_cycle.
max_num_ref_frames: u8Native field max_num_ref_frames.
reserved1: u8Native field reserved1.
pic_width_in_mbs_minus1: u32Native field pic_width_in_mbs_minus1.
pic_height_in_map_units_minus1: u32Native field pic_height_in_map_units_minus1.
frame_crop_left_offset: u32Native field frame_crop_left_offset.
frame_crop_right_offset: u32Native field frame_crop_right_offset.
frame_crop_top_offset: u32Native field frame_crop_top_offset.
frame_crop_bottom_offset: u32Native field frame_crop_bottom_offset.
reserved2: u32Native field reserved2.
p_offset_for_ref_frame: *const i32Native field pOffsetForRefFrame.
p_scaling_lists: *const StdVideoH264ScalingListsNative field pScalingLists.
p_sequence_parameter_set_vui: *const StdVideoH264SequenceParameterSetVui<'a>Native field pSequenceParameterSetVui.
Implementations§
Source§impl<'a> StdVideoH264SequenceParameterSet<'a>
impl<'a> StdVideoH264SequenceParameterSet<'a>
Sourcepub fn set_flags(self, value: StdVideoH264SpsFlags) -> Self
pub fn set_flags(self, value: StdVideoH264SpsFlags) -> Self
Set native field flags without native effects.
Sourcepub fn set_profile_idc(self, value: StdVideoH264ProfileIdc) -> Self
pub fn set_profile_idc(self, value: StdVideoH264ProfileIdc) -> Self
Set native field profile_idc without native effects.
Sourcepub fn set_level_idc(self, value: StdVideoH264LevelIdc) -> Self
pub fn set_level_idc(self, value: StdVideoH264LevelIdc) -> Self
Set native field level_idc without native effects.
Sourcepub fn set_chroma_format_idc(self, value: StdVideoH264ChromaFormatIdc) -> Self
pub fn set_chroma_format_idc(self, value: StdVideoH264ChromaFormatIdc) -> Self
Set native field chroma_format_idc without native effects.
Sourcepub fn set_seq_parameter_set_id(self, value: u8) -> Self
pub fn set_seq_parameter_set_id(self, value: u8) -> Self
Set native field seq_parameter_set_id without native effects.
Sourcepub fn set_bit_depth_luma_minus8(self, value: u8) -> Self
pub fn set_bit_depth_luma_minus8(self, value: u8) -> Self
Set native field bit_depth_luma_minus8 without native effects.
Sourcepub fn set_bit_depth_chroma_minus8(self, value: u8) -> Self
pub fn set_bit_depth_chroma_minus8(self, value: u8) -> Self
Set native field bit_depth_chroma_minus8 without native effects.
Sourcepub fn set_log2_max_frame_num_minus4(self, value: u8) -> Self
pub fn set_log2_max_frame_num_minus4(self, value: u8) -> Self
Set native field log2_max_frame_num_minus4 without native effects.
Sourcepub fn set_pic_order_cnt_type(self, value: StdVideoH264PocType) -> Self
pub fn set_pic_order_cnt_type(self, value: StdVideoH264PocType) -> Self
Set native field pic_order_cnt_type without native effects.
Sourcepub fn set_offset_for_non_ref_pic(self, value: i32) -> Self
pub fn set_offset_for_non_ref_pic(self, value: i32) -> Self
Set native field offset_for_non_ref_pic without native effects.
Sourcepub fn set_offset_for_top_to_bottom_field(self, value: i32) -> Self
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.
Sourcepub fn set_log2_max_pic_order_cnt_lsb_minus4(self, value: u8) -> Self
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.
Sourcepub fn set_num_ref_frames_in_pic_order_cnt_cycle(self, value: u8) -> Self
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.
Sourcepub fn set_max_num_ref_frames(self, value: u8) -> Self
pub fn set_max_num_ref_frames(self, value: u8) -> Self
Set native field max_num_ref_frames without native effects.
Sourcepub fn set_reserved1(self, value: u8) -> Self
pub fn set_reserved1(self, value: u8) -> Self
Set native field reserved1 without native effects.
Sourcepub fn set_pic_width_in_mbs_minus1(self, value: u32) -> Self
pub fn set_pic_width_in_mbs_minus1(self, value: u32) -> Self
Set native field pic_width_in_mbs_minus1 without native effects.
Sourcepub fn set_pic_height_in_map_units_minus1(self, value: u32) -> Self
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.
Sourcepub fn set_frame_crop_left_offset(self, value: u32) -> Self
pub fn set_frame_crop_left_offset(self, value: u32) -> Self
Set native field frame_crop_left_offset without native effects.
Sourcepub fn set_frame_crop_right_offset(self, value: u32) -> Self
pub fn set_frame_crop_right_offset(self, value: u32) -> Self
Set native field frame_crop_right_offset without native effects.
Sourcepub fn set_frame_crop_top_offset(self, value: u32) -> Self
pub fn set_frame_crop_top_offset(self, value: u32) -> Self
Set native field frame_crop_top_offset without native effects.
Sourcepub fn set_frame_crop_bottom_offset(self, value: u32) -> Self
pub fn set_frame_crop_bottom_offset(self, value: u32) -> Self
Set native field frame_crop_bottom_offset without native effects.
Sourcepub fn set_reserved2(self, value: u32) -> Self
pub fn set_reserved2(self, value: u32) -> Self
Set native field reserved2 without native effects.
Sourcepub fn set_offset_for_ref_frame(
self,
value: &'a [i32],
) -> Result<Self, ConstructionError>
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.
Sourcepub fn set_scaling_lists(self, value: &'a StdVideoH264ScalingLists) -> Self
pub fn set_scaling_lists(self, value: &'a StdVideoH264ScalingLists) -> Self
Set native field pScalingLists without native effects.
Sourcepub fn set_sequence_parameter_set_vui(
self,
value: &'a StdVideoH264SequenceParameterSetVui<'a>,
) -> Self
pub fn set_sequence_parameter_set_vui( self, value: &'a StdVideoH264SequenceParameterSetVui<'a>, ) -> Self
Set native field pSequenceParameterSetVui without native effects.