69 #define OFFSET(x) offsetof(QSVMPEG2Context, x)
70 #define VD AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_DECODING_PARAM
int ff_qsv_decode(AVCodecContext *avctx, QSVContext *q, AVFrame *frame, int *got_frame, AVPacket *avpkt)
This structure describes decoded (raw) audio or video data.
ptrdiff_t const GLvoid * data
static void flush(AVCodecContext *avctx)
#define LIBAVUTIL_VERSION_INT
static av_cold int init(AVCodecContext *avctx)
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
#define AV_CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
int ff_qsv_decode_close(QSVContext *q)
static void qsv_decode_flush(AVCodecContext *avctx)
static const AVOption options[]
AVCodec ff_mpeg2_qsv_decoder
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
const char * name
Name of the codec implementation.
Libavcodec external API header.
AVHWAccel ff_mpeg2_qsv_hwaccel
#define ASYNC_DEPTH_DEFAULT
static av_cold int qsv_decode_init(AVCodecContext *avctx)
const char * name
Name of the hardware accelerated codec.
static av_cold int qsv_decode_close(AVCodecContext *avctx)
preferred ID for MPEG-1/2 video decoding
main external API structure.
Describe the class of an AVClass context structure.
HW acceleration through QSV, data[3] contains a pointer to the mfxFrameSurface1 structure.
static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avpkt)
common internal and external API header
static int qsv_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
This structure stores compressed data.
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.