= {
.name = "mpeg2_qsv",
.priv_class = &class,
}
static void flush(AVCodecContext *avctx)
static av_cold int init(AVCodecContext *avctx)
#define AV_CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
static void qsv_decode_flush(AVCodecContext *avctx)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
planar YUV 4:2:0, 12bpp, 1 plane for Y and 1 plane for the UV components, which are interleaved (firs...
static av_cold int qsv_decode_init(AVCodecContext *avctx)
static av_cold int qsv_decode_close(AVCodecContext *avctx)
preferred ID for MPEG-1/2 video decoding
HW acceleration through QSV, data[3] contains a pointer to the mfxFrameSurface1 structure.
static enum AVPixelFormat pix_fmts[]
static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avpkt)
static int qsv_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
AVPixelFormat
Pixel format.
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.