AVHWAccel

@defgroup lavc_hwaccel AVHWAccel

@note Nothing in this structure should be accessed by the user. At some point in future it will not be externally visible at all.

@{

Members

Variables

alloc_frame
int function(AVCodecContext* avctx, AVFrame* frame) alloc_frame;

Allocate a custom buffer

capabilities
int capabilities;

Hardware accelerated codec capabilities. see AV_HWACCEL_CODEC_CAP_*

caps_internal
int caps_internal;

Internal hwaccel capabilities.

decode_mb
void function(MpegEncContext* s) decode_mb;

Called for every Macroblock in a slice.

decode_params
int function(AVCodecContext* avctx, int type, const(ubyte)* buf, uint buf_size) decode_params;

Callback for parameter data (SPS/PPS/VPS etc).

decode_slice
int function(AVCodecContext* avctx, const(ubyte)* buf, uint buf_size) decode_slice;

Callback for each slice.

end_frame
int function(AVCodecContext* avctx) end_frame;

Called at the end of each frame or field picture.

frame_params
int function(AVCodecContext* avctx, AVBufferRef* hw_frames_ctx) frame_params;

Fill the given hw_frames context with current codec parameters. Called from get_format. Refer to avcodec_get_hw_frames_parameters() for details.

frame_priv_data_size
int frame_priv_data_size;

Size of per-frame hardware accelerator private data.

id
AVCodecID id;

Codec implemented by the hardware accelerator.

init
int function(AVCodecContext* avctx) init;

Initialize the hwaccel private data.

name
const(char)* name;

Name of the hardware accelerated codec. The name is globally unique among encoders and among decoders (but an encoder and a decoder can share the same name).

pix_fmt
AVPixelFormat pix_fmt;

Supported pixel format.

priv_data_size
int priv_data_size;

Size of the private data to allocate in AVCodecInternal.hwaccel_priv_data.

start_frame
int function(AVCodecContext* avctx, const(ubyte)* buf, uint buf_size) start_frame;

Called at the beginning of each frame or field picture.

type
AVMediaType type;

Type of codec implemented by the hardware accelerator.

uninit
int function(AVCodecContext* avctx) uninit;

Uninitialize the hwaccel private data.

Meta