Struct cros_libva::buffer::PictureParameterBufferHEVC

source ·
pub struct PictureParameterBufferHEVC(/* private fields */);
Expand description

A wrapper over VAPictureParameterBufferHEVC FFI type

Implementations§

source§

impl PictureParameterBufferHEVC

source

pub fn new( curr_pic: PictureHEVC, reference_frames: [PictureHEVC; 15], pic_width_in_luma_samples: u16, pic_height_in_luma_samples: u16, pic_fields: &HevcPicFields, sps_max_dec_pic_buffering_minus1: u8, bit_depth_luma_minus8: u8, bit_depth_chroma_minus8: u8, pcm_sample_bit_depth_luma_minus1: u8, pcm_sample_bit_depth_chroma_minus1: u8, log2_min_luma_coding_block_size_minus3: u8, log2_diff_max_min_luma_coding_block_size: u8, log2_min_transform_block_size_minus2: u8, log2_diff_max_min_transform_block_size: u8, log2_min_pcm_luma_coding_block_size_minus3: u8, log2_diff_max_min_pcm_luma_coding_block_size: u8, max_transform_hierarchy_depth_intra: u8, max_transform_hierarchy_depth_inter: u8, init_qp_minus26: i8, diff_cu_qp_delta_depth: u8, pps_cb_qp_offset: i8, pps_cr_qp_offset: i8, log2_parallel_merge_level_minus2: u8, num_tile_columns_minus1: u8, num_tile_rows_minus1: u8, column_width_minus1: [u16; 19], row_height_minus1: [u16; 21], slice_parsing_fields: &HevcSliceParsingFields, log2_max_pic_order_cnt_lsb_minus4: u8, num_short_term_ref_pic_sets: u8, num_long_term_ref_pic_sps: u8, num_ref_idx_l0_default_active_minus1: u8, num_ref_idx_l1_default_active_minus1: u8, pps_beta_offset_div2: i8, pps_tc_offset_div2: i8, num_extra_slice_header_bits: u8, st_rps_bits: u32, ) -> Self

Creates the wrapper

source

pub fn inner(&self) -> &_VAPictureParameterBufferHEVC

Returns the inner FFI type. Useful for testing purposes.

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> 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, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.