Skip to main content

HevcSpsInfo

Struct HevcSpsInfo 

Source
pub struct HevcSpsInfo {
Show 38 fields pub sps_video_parameter_set_id: u8, pub sps_seq_parameter_set_id: u8, pub sps_max_sub_layers_minus1: u8, pub sps_temporal_id_nesting_flag: bool, pub chroma_format_idc: u8, pub separate_colour_plane_flag: bool, pub bit_depth_luma: u8, pub bit_depth_chroma: u8, pub width: Option<u32>, pub height: Option<u32>, pub conf_win_left_offset: u32, pub conf_win_right_offset: u32, pub conf_win_top_offset: u32, pub conf_win_bottom_offset: u32, pub log2_max_pic_order_cnt_lsb_minus4: u8, pub log2_min_luma_coding_block_size_minus3: u8, pub log2_diff_max_min_luma_coding_block_size: u8, pub log2_min_luma_transform_block_size_minus2: u8, pub log2_diff_max_min_luma_transform_block_size: u8, pub max_transform_hierarchy_depth_inter: u8, pub max_transform_hierarchy_depth_intra: u8, pub scaling_list_enabled_flag: bool, pub sps_sub_layer_ordering_info_present_flag: bool, pub amp_enabled_flag: bool, pub sample_adaptive_offset_enabled_flag: bool, pub pcm_enabled_flag: bool, pub pcm_loop_filter_disabled_flag: bool, pub num_short_term_ref_pic_sets: u8, pub long_term_ref_pics_present_flag: bool, pub sps_temporal_mvp_enabled_flag: bool, pub strong_intra_smoothing_enabled_flag: bool, pub profile_idc: u8, pub level_idc: u8, pub tier_flag: bool, pub max_dec_pic_buffering_minus1: [u8; 7], pub max_num_reorder_pics: [u8; 7], pub max_latency_increase_plus1: [u32; 7], pub profile_compatibility_flags: u32,
}
Expand description

Parsed HEVC SPS fields relevant to the pipeline.

Width/height are post-conformance-window (§7.4.3.2.1): per the spec, output luma dimensions = pic_width_in_luma_samples - SubWidthC * (conf_win_left + conf_win_right) (and analogously for height).

Fields§

§sps_video_parameter_set_id: u8§sps_seq_parameter_set_id: u8§sps_max_sub_layers_minus1: u8§sps_temporal_id_nesting_flag: bool§chroma_format_idc: u8§separate_colour_plane_flag: bool§bit_depth_luma: u8§bit_depth_chroma: u8§width: Option<u32>§height: Option<u32>§conf_win_left_offset: u32

Post-conformance-window crop offsets in chroma samples.

§conf_win_right_offset: u32§conf_win_top_offset: u32§conf_win_bottom_offset: u32§log2_max_pic_order_cnt_lsb_minus4: u8§log2_min_luma_coding_block_size_minus3: u8§log2_diff_max_min_luma_coding_block_size: u8§log2_min_luma_transform_block_size_minus2: u8§log2_diff_max_min_luma_transform_block_size: u8§max_transform_hierarchy_depth_inter: u8§max_transform_hierarchy_depth_intra: u8§scaling_list_enabled_flag: bool§sps_sub_layer_ordering_info_present_flag: bool§amp_enabled_flag: bool§sample_adaptive_offset_enabled_flag: bool§pcm_enabled_flag: bool§pcm_loop_filter_disabled_flag: bool

Only meaningful when pcm_enabled_flag is set; defaults to false.

§num_short_term_ref_pic_sets: u8§long_term_ref_pics_present_flag: bool§sps_temporal_mvp_enabled_flag: bool§strong_intra_smoothing_enabled_flag: bool§profile_idc: u8§level_idc: u8§tier_flag: bool§max_dec_pic_buffering_minus1: [u8; 7]

Sub-layer DPB management triple, one per sub-layer. Index 0..=sps_max_sub_layers_minus1 are populated; indices above are left at defaults. Vulkan Video requires these to be conveyed via StdVideoH265DecPicBufMgr.

§max_num_reorder_pics: [u8; 7]§max_latency_increase_plus1: [u32; 7]§profile_compatibility_flags: u32

profile_compatibility_flag[32] — high bit at index 0. Needed for the Std PTL struct.

Trait Implementations§

Source§

impl Clone for HevcSpsInfo

Source§

fn clone(&self) -> HevcSpsInfo

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 HevcSpsInfo

Source§

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

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

impl Eq for HevcSpsInfo

Source§

impl PartialEq for HevcSpsInfo

Source§

fn eq(&self, other: &HevcSpsInfo) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for HevcSpsInfo

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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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 = 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>,

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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more