AVHWAccel

AVHWAccel.

Members

Variables

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

Allocate a custom buffer

capabilities
int capabilities;

Hardware accelerated codec capabilities. see FF_HWACCEL_CODEC_CAP_*

decode_mb
void function(MpegEncContext* s) decode_mb;

Called for every Macroblock in a slice.

decode_slice
int function(AVCodecContext* avctx, const uint8_t* buf, uint32_t 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_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
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).

next
AVHWAccel* next;

No fields below this line are part of the public API. They may not be used outside of libavcodec and can be changed and removed at will. New public fields should be added right above. ****************************************************************

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 uint8_t* buf, uint32_t 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