AVHWAccel Struct Reference

AVHWAccel. More...

#include <avcodec.h>


Data Fields

const char * name
 Name of the hardware accelerated codec.
enum CodecType type
 Type of codec implemented by the hardware accelerator.
enum CodecID id
 Codec implemented by the hardware accelerator.
enum PixelFormat pix_fmt
 Supported pixel format.
int capabilities
 Hardware accelerated codec capabilities.
struct AVHWAccelnext
int(* start_frame )(AVCodecContext *avctx, const uint8_t *buf, uint32_t buf_size)
 Called at the beginning of each frame or field picture.
int(* decode_slice )(AVCodecContext *avctx, const uint8_t *buf, uint32_t buf_size)
 Callback for each slice.
int(* end_frame )(AVCodecContext *avctx)
 Called at the end of each frame or field picture.


Detailed Description

AVHWAccel.

Definition at line 2259 of file avcodec.h.


Field Documentation

Hardware accelerated codec capabilities.

see FF_HWACCEL_CODEC_CAP_*

Definition at line 2292 of file avcodec.h.

int(* AVHWAccel::decode_slice)(AVCodecContext *avctx, const uint8_t *buf, uint32_t buf_size)

Callback for each slice.

Meaningful slice information (codec specific) is guaranteed to be parsed at this point. This function is mandatory.

Parameters:
avctx the codec context
buf the slice data buffer base
buf_size the size of the slice in bytes
Returns:
zero if successful, a negative value otherwise

Referenced by decode_nal_units(), decode_slice(), and mpeg_decode_slice().

Called at the end of each frame or field picture.

The whole picture is parsed at this point and can now be sent to the hardware accelerator. This function is mandatory.

Parameters:
avctx the codec context
Returns:
zero if successful, a negative value otherwise

Referenced by decode_frame(), ff_h263_decode_frame(), and slice_end().

Codec implemented by the hardware accelerator.

See CODEC_ID_xxx

Definition at line 2279 of file avcodec.h.

Referenced by ff_find_hwaccel().

const char* AVHWAccel::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).

Definition at line 2265 of file avcodec.h.

struct AVHWAccel* AVHWAccel::next [read]

Definition at line 2294 of file avcodec.h.

Referenced by av_hwaccel_next(), and av_register_hwaccel().

Supported pixel format.

Only hardware accelerated formats are supported here.

Definition at line 2286 of file avcodec.h.

Referenced by ff_find_hwaccel().

int(* AVHWAccel::start_frame)(AVCodecContext *avctx, const uint8_t *buf, uint32_t buf_size)

Called at the beginning of each frame or field picture.

Meaningful frame information (codec specific) is guaranteed to be parsed at this point. This function is mandatory.

Note that buf can be NULL along with buf_size set to 0. Otherwise, this means the whole frame is available at this point.

Parameters:
avctx the codec context
buf the frame data buffer base
buf_size the size of the frame in bytes
Returns:
zero if successful, a negative value otherwise

Referenced by decode_nal_units(), ff_h263_decode_frame(), and mpeg_field_start().

Type of codec implemented by the hardware accelerator.

See CODEC_TYPE_xxx

Definition at line 2272 of file avcodec.h.


The documentation for this struct was generated from the following file:

Generated on Fri Oct 26 02:35:47 2012 for FFmpeg by  doxygen 1.5.8