Skip to main content

mfxPayload

Struct mfxPayload 

Source
#[repr(C)]
pub struct mfxPayload { pub CtrlFlags: mfxU32, pub reserved: [mfxU32; 3], pub Data: *mut mfxU8, pub NumBit: mfxU32, pub Type: mfxU16, pub BufSize: mfxU16, }
Expand description

Describes user data payload in MPEG-2 or SEI message payload in H.264.

For encoding, these payloads can be inserted into the bitstream. The payload buffer must contain a valid formatted payload.

For H.264, this is the sei_message() as specified in the section 7.3.2.3.1 ‘Supplemental enhancement information message syntax’ of the ISO/IEC 14496-10 specification.

For MPEG-2, this is the section 6.2.2.2.2 ‘User data’ of the ISO/IEC 13818-2 specification, excluding the user data start_code.

For decoding, these payloads can be retrieved as the decoder parses the bitstream and caches them in an internal buffer.

@internal +———–+—————————————––+ | Codec | Supported Types | +===========+===========================================+ | MPEG2 | 0x01B2 //User Data | +———–+—————————————––+ | AVC | 02 //pan_scan_rect | | | 03 //filler_payload | | | 04 //user_data_registered_itu_t_t35 | | | 05 //user_data_unregistered | | | 06 //recovery_point | | | 09 //scene_info | | | 13 //full_frame_freeze | | | 14 //full_frame_freeze_release | | | 15 //full_frame_snapshot | | | 16 //progressive_refinement_segment_start | | | 17 //progressive_refinement_segment_end | | | 19 //film_grain_characteristics | | | 20 //deblocking_filter_display_preference | | | 21 //stereo_video_info | | | 45 //frame_packing_arrangement | +———–+—————————————––+ | HEVC | All | +———–+—————————————––+ @endinternal

Fields§

§CtrlFlags: mfxU32

< Additional payload properties. See the PayloadCtrlFlags enumerator for details.

§reserved: [mfxU32; 3]§Data: *mut mfxU8

< Pointer to the actual payload data buffer.

§NumBit: mfxU32

< Number of bits in the payload data

§Type: mfxU16

< MPEG-2 user data start code or H.264 SEI message type.

§BufSize: mfxU16

< Payload buffer size in bytes.

Trait Implementations§

Source§

impl Clone for mfxPayload

Source§

fn clone(&self) -> mfxPayload

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 mfxPayload

Source§

impl Debug for mfxPayload

Source§

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

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

impl Default for mfxPayload

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.