#include <stdint.h>
#include <string.h>
#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "qsvdec.h"
Go to the source code of this file.
Initial value:= {
.name = "mpeg2_qsv",
}
preferred ID for MPEG-1/2 video decoding
HW acceleration through QSV, data[3] contains a pointer to the mfxFrameSurface1 structure.
Definition at line 62 of file qsvdec_mpeg2.c.
Initial value:= {
}
#define ASYNC_DEPTH_DEFAULT
Definition at line 71 of file qsvdec_mpeg2.c.
Initial value:= {
.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. ...
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
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)
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition at line 83 of file qsvdec_mpeg2.c.