Skip to main content

_VAEncSequenceParameterBufferHEVC

Struct _VAEncSequenceParameterBufferHEVC 

Source
#[repr(C)]
pub struct _VAEncSequenceParameterBufferHEVC {
Show 32 fields pub general_profile_idc: u8, pub general_level_idc: u8, pub general_tier_flag: u8, pub intra_period: u32, pub intra_idr_period: u32, pub ip_period: u32, pub bits_per_second: u32, pub pic_width_in_luma_samples: u16, pub pic_height_in_luma_samples: u16, pub seq_fields: _VAEncSequenceParameterBufferHEVC__bindgen_ty_1, pub log2_min_luma_coding_block_size_minus3: u8, pub log2_diff_max_min_luma_coding_block_size: u8, pub log2_min_transform_block_size_minus2: u8, pub log2_diff_max_min_transform_block_size: u8, pub max_transform_hierarchy_depth_inter: u8, pub max_transform_hierarchy_depth_intra: u8, pub pcm_sample_bit_depth_luma_minus1: u32, pub pcm_sample_bit_depth_chroma_minus1: u32, pub log2_min_pcm_luma_coding_block_size_minus3: u32, pub log2_max_pcm_luma_coding_block_size_minus3: u32, pub vui_parameters_present_flag: u8, pub vui_fields: _VAEncSequenceParameterBufferHEVC__bindgen_ty_2, pub aspect_ratio_idc: u8, pub sar_width: u32, pub sar_height: u32, pub vui_num_units_in_tick: u32, pub vui_time_scale: u32, pub min_spatial_segmentation_idc: u16, pub max_bytes_per_pic_denom: u8, pub max_bits_per_min_cu_denom: u8, pub scc_fields: _VAEncSequenceParameterBufferHEVC__bindgen_ty_3, pub va_reserved: [u32; 7],
}
Expand description

\brief Sequence parameter for HEVC encoding in main & main 10 profiles.

This structure holds information for \c seq_parameter_set_data() as defined by the HEVC specification.

If packed sequence headers mode is used, i.e. if the encoding pipeline was configured with the #VA_ENC_PACKED_HEADER_SEQUENCE flag, then the driver expects two more buffers to be provided to the same \c vaRenderPicture() as this buffer:

  • a #VAEncPackedHeaderParameterBuffer with type set to VAEncPackedHeaderType::VAEncPackedHeaderSequence ;
  • a #VAEncPackedHeaderDataBuffer which holds the actual packed header data.

If \c seq_scaling_matrix_present_flag is set to \c 1, then a #VAQMatrixBufferHEVC buffer shall also be provided within the same \c vaRenderPicture() call as this sequence parameter buffer.

Fields§

§general_profile_idc: u8

\brief Same as the HEVC bitstream syntax element. value range [1..2].

§general_level_idc: u8

\brief Same as the HEVC bitstream syntax element. general_level_idc shall be set equal to a value of 30 times the level numbers allowed [1, 2, 2.1, 3, 3.1, 4, 4.1, 5, 5.1, 5.2, 6, 6.1, 6.2]

§general_tier_flag: u8

\brief Same as the HEVC bitstream syntax element. Only value 0 is allowed for level value below 4, exclusive.

§intra_period: u32

\brief Period between I frames.

§intra_idr_period: u32

\brief Period between IDR frames.

§ip_period: u32

\brief Period between I/P frames.

§bits_per_second: u32

\brief Initial bitrate set for this sequence in CBR or VBR modes.

This field represents the initial bitrate value for this sequence if CBR or VBR mode is used, i.e. if the encoder pipeline was created with a #VAConfigAttribRateControl attribute set to either \ref VA_RC_CBR or \ref VA_RC_VBR.

The bitrate can be modified later on through #VAEncMiscParameterRateControl buffers.

§pic_width_in_luma_samples: u16

\brief Picture width in pixel samples. Its value must be multiple of min CU size.

§pic_height_in_luma_samples: u16

\brief Picture height in pixel samples. Its value must be multiple of min CU size.

§seq_fields: _VAEncSequenceParameterBufferHEVC__bindgen_ty_1§log2_min_luma_coding_block_size_minus3: u8

\brief Same as the HEVC bitstream syntax element. value range [0..3]

§log2_diff_max_min_luma_coding_block_size: u8

\brief Same as the HEVC bitstream syntax element.

§log2_min_transform_block_size_minus2: u8

\brief Same as the HEVC bitstream syntax element. value range [0..3]

§log2_diff_max_min_transform_block_size: u8

\brief Same as the HEVC bitstream syntax element.

§max_transform_hierarchy_depth_inter: u8

\brief Same as the HEVC bitstream syntax element. value range [2]

§max_transform_hierarchy_depth_intra: u8

\brief Same as the HEVC bitstream syntax element. value range [2]

§pcm_sample_bit_depth_luma_minus1: u32

\brief Same as the HEVC bitstream syntax element.

§pcm_sample_bit_depth_chroma_minus1: u32

\brief Same as the HEVC bitstream syntax element.

§log2_min_pcm_luma_coding_block_size_minus3: u32

\brief Same as the HEVC bitstream syntax element.

§log2_max_pcm_luma_coding_block_size_minus3: u32

\brief Derived from the HEVC bitstream syntax element. log2_min_pcm_luma_coding_block_size_minus3 + log2_diff_max_min_pcm_luma_coding_block_size

§vui_parameters_present_flag: u8

@name VUI parameters (optional) / /**@{/ /** \brief Same as the HEVC bitstream syntax element.

§vui_fields: _VAEncSequenceParameterBufferHEVC__bindgen_ty_2§aspect_ratio_idc: u8

\brief Same as the HEVC bitstream syntax element.

§sar_width: u32

\brief Same as the HEVC bitstream syntax element.

§sar_height: u32

\brief Same as the HEVC bitstream syntax element.

§vui_num_units_in_tick: u32

\brief Same as the HEVC bitstream syntax element.

§vui_time_scale: u32

\brief Same as the HEVC bitstream syntax element.

§min_spatial_segmentation_idc: u16

\brief Same as the HEVC bitstream syntax element.

§max_bytes_per_pic_denom: u8

\brief Same as the HEVC bitstream syntax element.

§max_bits_per_min_cu_denom: u8

\brief Same as the HEVC bitstream syntax element.

§scc_fields: _VAEncSequenceParameterBufferHEVC__bindgen_ty_3§va_reserved: [u32; 7]

\brief Reserved bytes for future use, must be zero

Trait Implementations§

Source§

impl Clone for _VAEncSequenceParameterBufferHEVC

Source§

fn clone(&self) -> _VAEncSequenceParameterBufferHEVC

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 Copy for _VAEncSequenceParameterBufferHEVC

Source§

impl Default for _VAEncSequenceParameterBufferHEVC

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 = 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.