#[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>,
}
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
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.