#[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§
Source§impl Clone for vaapi_context
impl Clone for vaapi_context
Source§fn clone(&self) -> vaapi_context
fn clone(&self) -> vaapi_context
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for vaapi_context
impl Debug for vaapi_context
Source§impl PartialEq for vaapi_context
impl PartialEq for vaapi_context
impl Copy for vaapi_context
impl Eq for vaapi_context
impl StructuralPartialEq for vaapi_context
Auto Trait Implementations§
impl Freeze for vaapi_context
impl RefUnwindSafe for vaapi_context
impl !Send for vaapi_context
impl !Sync for vaapi_context
impl Unpin for vaapi_context
impl UnwindSafe for vaapi_context
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more