Skip to main content

_VAEncFEIMVPredictorHEVC

Struct _VAEncFEIMVPredictorHEVC 

Source
#[repr(C)]
pub struct _VAEncFEIMVPredictorHEVC { pub ref_idx: [_VAEncFEIMVPredictorHEVC__bindgen_ty_1; 4], pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4]>, pub mv: [VAMotionVector; 4], }
Expand description

\brief Application can use this definition as reference to allocate the buffer based on MaxNumPredictor returned from attribute VAConfigAttribFEIMVPredictors query. this buffer allocation is always based on 16x16 block even block size is indicated as 32x32 or 64x64, and buffer layout is always in 32x32 block raster scan order even block size is 16x16 or 64x64. If 32x32 block size is set, only the data in the first 16x16 block (block 0) is used for 32x32 block. If 64x64 block size is set MV layout is still in 32x32 raster scan order, the same as 32x32 and the first 16x16 block within each 32x32 block needs to have intended MV data (four 32x32 blocks will have the same MV data in the correspondent first 16x16 block). Data structure for each 16x16 block is defined as below (same as AVC except BlockSize/Reserved bits).

Fields§

§ref_idx: [_VAEncFEIMVPredictorHEVC__bindgen_ty_1; 4]§_bitfield_align_1: [u32; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 4]>§mv: [VAMotionVector; 4]

Implementations§

Source§

impl _VAEncFEIMVPredictorHEVC

Source

pub fn block_size(&self) -> u32

Source

pub fn set_block_size(&mut self, val: u32)

Source

pub fn reserved(&self) -> u32

Source

pub fn set_reserved(&mut self, val: u32)

Source

pub fn new_bitfield_1( block_size: u32, reserved: u32, ) -> __BindgenBitfieldUnit<[u8; 4]>

Trait Implementations§

Source§

impl Clone for _VAEncFEIMVPredictorHEVC

Source§

fn clone(&self) -> _VAEncFEIMVPredictorHEVC

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 _VAEncFEIMVPredictorHEVC

Source§

impl Debug for _VAEncFEIMVPredictorHEVC

Source§

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

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

impl Default for _VAEncFEIMVPredictorHEVC

Source§

fn default() -> _VAEncFEIMVPredictorHEVC

Returns the “default value” for a type. Read more
Source§

impl Eq for _VAEncFEIMVPredictorHEVC

Source§

impl PartialEq for _VAEncFEIMVPredictorHEVC

Source§

fn eq(&self, other: &_VAEncFEIMVPredictorHEVC) -> 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 _VAEncFEIMVPredictorHEVC

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.