62 #define OFFSET(x) offsetof(QSVVC1Context, x)
63 #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)
static const AVOption options[]
#define LIBAVUTIL_VERSION_INT
static av_cold int init(AVCodecContext *avctx)
AVHWAccel ff_vc1_qsv_hwaccel
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 int qsv_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
static av_cold int qsv_decode_close(AVCodecContext *avctx)
#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.
#define ASYNC_DEPTH_DEFAULT
const char * name
Name of the hardware accelerated codec.
main external API structure.
a very simple circular buffer FIFO implementation
Describe the class of an AVClass context structure.
HW acceleration through QSV, data[3] contains a pointer to the mfxFrameSurface1 structure.
AVCodec ff_vc1_qsv_decoder
static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avpkt)
common internal and external API header
This structure stores compressed data.