Struct ffmpeg_sys_next::vaapi_context[][src]

#[repr(C)]
pub struct vaapi_context { pub display: *mut c_void, pub config_id: u32, pub context_id: u32, }
Expand description

This structure is used to share data between the FFmpeg library and the client video application. This shall be zero-allocated and available as AVCodecContext.hwaccel_context. All user members can be set once during initialization or through each AVCodecContext.get_buffer() function call. In any case, they must be valid prior to calling decoding functions.

Deprecated: use AVCodecContext.hw_frames_ctx instead.

Fields

display: *mut c_void

Window system dependent data

  • encoding: unused
  • decoding: Set by user
config_id: u32

Configuration ID

  • encoding: unused
  • decoding: Set by user
context_id: u32

Context ID (video decode pipeline)

  • encoding: unused
  • decoding: Set by user

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.