Struct ffmpeg::ffmpeg::AVHWAccel

source ·
#[repr(C)]
pub struct AVHWAccel {
Show 16 fields pub name: *const c_char, pub type_: c_int, pub id: c_uint, pub pix_fmt: c_int, pub capabilities: c_int, pub alloc_frame: Option<unsafe extern "C" fn(avctx: *mut AVCodecContext, frame: *mut AVFrame) -> c_int>, pub start_frame: Option<unsafe extern "C" fn(avctx: *mut AVCodecContext, buf: *const u8, buf_size: u32) -> c_int>, pub decode_params: Option<unsafe extern "C" fn(avctx: *mut AVCodecContext, type_: c_int, buf: *const u8, buf_size: u32) -> c_int>, pub decode_slice: Option<unsafe extern "C" fn(avctx: *mut AVCodecContext, buf: *const u8, buf_size: u32) -> c_int>, pub end_frame: Option<unsafe extern "C" fn(avctx: *mut AVCodecContext) -> c_int>, pub frame_priv_data_size: c_int, pub init: Option<unsafe extern "C" fn(avctx: *mut AVCodecContext) -> c_int>, pub uninit: Option<unsafe extern "C" fn(avctx: *mut AVCodecContext) -> c_int>, pub priv_data_size: c_int, pub caps_internal: c_int, pub frame_params: Option<unsafe extern "C" fn(avctx: *mut AVCodecContext, hw_frames_ctx: *mut AVBufferRef) -> c_int>,
}

Fields§

§name: *const c_char§type_: c_int§id: c_uint§pix_fmt: c_int§capabilities: c_int§alloc_frame: Option<unsafe extern "C" fn(avctx: *mut AVCodecContext, frame: *mut AVFrame) -> c_int>§start_frame: Option<unsafe extern "C" fn(avctx: *mut AVCodecContext, buf: *const u8, buf_size: u32) -> c_int>§decode_params: Option<unsafe extern "C" fn(avctx: *mut AVCodecContext, type_: c_int, buf: *const u8, buf_size: u32) -> c_int>§decode_slice: Option<unsafe extern "C" fn(avctx: *mut AVCodecContext, buf: *const u8, buf_size: u32) -> c_int>§end_frame: Option<unsafe extern "C" fn(avctx: *mut AVCodecContext) -> c_int>§frame_priv_data_size: c_int§init: Option<unsafe extern "C" fn(avctx: *mut AVCodecContext) -> c_int>§uninit: Option<unsafe extern "C" fn(avctx: *mut AVCodecContext) -> c_int>§priv_data_size: c_int§caps_internal: c_int§frame_params: Option<unsafe extern "C" fn(avctx: *mut AVCodecContext, hw_frames_ctx: *mut AVBufferRef) -> c_int>

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
Returns the “default value” for a type. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.