Skip to main content

SliceParameterBufferH264

Struct SliceParameterBufferH264 

Source
pub struct SliceParameterBufferH264(/* private fields */);
Expand description

Wrapper over the VASliceParameterBufferH264 FFI type.

Implementations§

Source§

impl SliceParameterBufferH264

Source

pub fn new_array() -> Self

Source

pub fn new( slice_data_size: u32, slice_data_offset: u32, slice_data_flag: u32, slice_data_bit_offset: u16, first_mb_in_slice: u16, slice_type: u8, direct_spatial_mv_pred_flag: u8, num_ref_idx_l0_active_minus1: u8, num_ref_idx_l1_active_minus1: u8, cabac_init_idc: u8, slice_qp_delta: i8, disable_deblocking_filter_idc: u8, slice_alpha_c0_offset_div2: i8, slice_beta_offset_div2: i8, ref_pic_list_0: [PictureH264; 32], ref_pic_list_1: [PictureH264; 32], luma_log2_weight_denom: u8, chroma_log2_weight_denom: u8, luma_weight_l0_flag: u8, luma_weight_l0: [i16; 32], luma_offset_l0: [i16; 32], chroma_weight_l0_flag: u8, chroma_weight_l0: [[i16; 2]; 32], chroma_offset_l0: [[i16; 2]; 32], luma_weight_l1_flag: u8, luma_weight_l1: [i16; 32], luma_offset_l1: [i16; 32], chroma_weight_l1_flag: u8, chroma_weight_l1: [[i16; 2]; 32], chroma_offset_l1: [[i16; 2]; 32], ) -> Self

Creates the wrapper

Source

pub fn add_slice_parameter( &mut self, slice_data_size: u32, slice_data_offset: u32, slice_data_flag: u32, slice_data_bit_offset: u16, first_mb_in_slice: u16, slice_type: u8, direct_spatial_mv_pred_flag: u8, num_ref_idx_l0_active_minus1: u8, num_ref_idx_l1_active_minus1: u8, cabac_init_idc: u8, slice_qp_delta: i8, disable_deblocking_filter_idc: u8, slice_alpha_c0_offset_div2: i8, slice_beta_offset_div2: i8, ref_pic_list_0: [PictureH264; 32], ref_pic_list_1: [PictureH264; 32], luma_log2_weight_denom: u8, chroma_log2_weight_denom: u8, luma_weight_l0_flag: u8, luma_weight_l0: [i16; 32], luma_offset_l0: [i16; 32], chroma_weight_l0_flag: u8, chroma_weight_l0: [[i16; 2]; 32], chroma_offset_l0: [[i16; 2]; 32], luma_weight_l1_flag: u8, luma_weight_l1: [i16; 32], luma_offset_l1: [i16; 32], chroma_weight_l1_flag: u8, chroma_weight_l1: [[i16; 2]; 32], chroma_offset_l1: [[i16; 2]; 32], )

Creates the wrapper

Source

pub fn inner(&self) -> &Vec<VASliceParameterBufferH264>

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

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.