Skip to main content

_VAEncPictureParameterBufferMPEG2

Struct _VAEncPictureParameterBufferMPEG2 

Source
#[repr(C)]
pub struct _VAEncPictureParameterBufferMPEG2 { pub forward_reference_picture: VASurfaceID, pub backward_reference_picture: VASurfaceID, pub reconstructed_picture: VASurfaceID, pub coded_buf: VABufferID, pub last_picture: u8, pub picture_type: Type, pub temporal_reference: u32, pub vbv_delay: u32, pub f_code: [[u8; 2]; 2], pub picture_coding_extension: _VAEncPictureParameterBufferMPEG2__bindgen_ty_1, pub composite_display: _VAEncPictureParameterBufferMPEG2__bindgen_ty_2, pub va_reserved: [u32; 4], }
Expand description

\brief Picture parameter for MPEG-2 encoding

This structure holds information for picture_header() and picture_coding_extension()

If packed picture headers mode is used, i.e. if the encoding pipeline was configured with the #VA_ENC_PACKED_HEADER_PICTURE 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::VAEncPackedHeaderPicture ;
  • a #VAEncPackedHeaderDataBuffer which holds the actual packed header data.

Fields§

§forward_reference_picture: VASurfaceID

\brief Forward reference picture

§backward_reference_picture: VASurfaceID

\brief Backward reference picture

§reconstructed_picture: VASurfaceID

\brief Reconstructed(decoded) picture

§coded_buf: VABufferID

\brief Output encoded bitstream.

\ref coded_buf has type #VAEncCodedBufferType. It should be large enough to hold the compressed NAL slice and possibly SPS and PPS NAL units.

§last_picture: u8

\brief Flag to indicate the picture is the last one or not.

This fields holds 0 if the picture to be encoded is not the last one in the stream. Otherwise, it is \ref MPEG2_LAST_PICTURE_EOSTREAM.

§picture_type: Type

\brief Picture type

§temporal_reference: u32

\brief Same as the element in picture_header()

§vbv_delay: u32

\brief Same as the element in picture_header()

§f_code: [[u8; 2]; 2]

\brief Same as the element in Picture coding extension

§picture_coding_extension: _VAEncPictureParameterBufferMPEG2__bindgen_ty_1§composite_display: _VAEncPictureParameterBufferMPEG2__bindgen_ty_2§va_reserved: [u32; 4]

\brief Reserved bytes for future use, must be zero

Trait Implementations§

Source§

impl Clone for _VAEncPictureParameterBufferMPEG2

Source§

fn clone(&self) -> _VAEncPictureParameterBufferMPEG2

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 _VAEncPictureParameterBufferMPEG2

Source§

impl Default for _VAEncPictureParameterBufferMPEG2

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.