All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
qsvdec_mpeg2.c File Reference
#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.

Data Structures

struct  QSVMPEG2Context


#define OFFSET(x)   offsetof(QSVMPEG2Context, x)


static av_cold int qsv_decode_close (AVCodecContext *avctx)
static av_cold int qsv_decode_init (AVCodecContext *avctx)
static int qsv_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
static void qsv_decode_flush (AVCodecContext *avctx)


AVHWAccel ff_mpeg2_qsv_hwaccel
static const AVOption options []
class {
      class_name = "mpeg2_qsv"
      item_name = av_default_item_name
      option = options
AVCodec ff_mpeg2_qsv_decoder

Macro Definition Documentation

#define OFFSET (   x)    offsetof(QSVMPEG2Context, x)

Definition at line 69 of file qsvdec_mpeg2.c.

Definition at line 70 of file qsvdec_mpeg2.c.

Function Documentation

static av_cold int qsv_decode_close ( AVCodecContext avctx)

Definition at line 35 of file qsvdec_mpeg2.c.

static av_cold int qsv_decode_init ( AVCodecContext avctx)

Definition at line 44 of file qsvdec_mpeg2.c.

static int qsv_decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame,
AVPacket avpkt 

Definition at line 49 of file qsvdec_mpeg2.c.

static void qsv_decode_flush ( AVCodecContext avctx)

Definition at line 58 of file qsvdec_mpeg2.c.

Variable Documentation

AVHWAccel ff_mpeg2_qsv_hwaccel
Initial value:
= {
.name = "mpeg2_qsv",
.pix_fmt = AV_PIX_FMT_QSV,
preferred ID for MPEG-1/2 video decoding
Definition: avcodec.h:107
HW acceleration through QSV, data[3] contains a pointer to the mfxFrameSurface1 structure.
Definition: pixfmt.h:261

Definition at line 62 of file qsvdec_mpeg2.c.

const AVOption options[]
Initial value:
= {
{ "async_depth", "Internal parallelization depth, the higher the value the higher the latency.", OFFSET(qsv.async_depth), AV_OPT_TYPE_INT, { .i64 = ASYNC_DEPTH_DEFAULT }, 0, INT_MAX, VD },
{ NULL },
#define NULL
Definition: coverity.c:32
#define VD
Definition: qsvdec_mpeg2.c:70
Definition: qsv_internal.h:46
#define OFFSET(x)
Definition: qsvdec_mpeg2.c:69

Definition at line 71 of file qsvdec_mpeg2.c.

class_name = "mpeg2_qsv"

Definition at line 77 of file qsvdec_mpeg2.c.

item_name = av_default_item_name

Definition at line 78 of file qsvdec_mpeg2.c.

option = options

Definition at line 79 of file qsvdec_mpeg2.c.

Definition at line 80 of file qsvdec_mpeg2.c.

const { ... }
AVCodec ff_mpeg2_qsv_decoder
Initial value:
= {
.name = "mpeg2_qsv",
.long_name = NULL_IF_CONFIG_SMALL("MPEG-2 video (Intel Quick Sync Video acceleration)"),
.priv_data_size = sizeof(QSVMPEG2Context),
.close = qsv_decode_close,
.priv_class = &class,
static void flush(AVCodecContext *avctx)
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition: avcodec.h:882
static void qsv_decode_flush(AVCodecContext *avctx)
Definition: qsvdec_mpeg2.c:58
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
static av_cold int qsv_decode_init(AVCodecContext *avctx)
Definition: qsvdec_mpeg2.c:44
static av_cold int qsv_decode_close(AVCodecContext *avctx)
Definition: qsvdec_mpeg2.c:35
preferred ID for MPEG-1/2 video decoding
Definition: avcodec.h:107
GLint GLenum type
Definition: opengl_enc.c:105
static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avpkt)
Definition: ccaption_dec.c:523
static int qsv_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: qsvdec_mpeg2.c:49
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:857

Definition at line 83 of file qsvdec_mpeg2.c.