FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
qsvdec_vc1.c File Reference
#include <stdint.h>
#include <string.h>
#include "libavutil/common.h"
#include "libavutil/fifo.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "qsvdec.h"

Go to the source code of this file.

Data Structures

struct  QSVVC1Context
 

Macros

#define OFFSET(x)   offsetof(QSVVC1Context, x)
 
#define VD   AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_DECODING_PARAM
 

Functions

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

Variables

AVHWAccel ff_vc1_qsv_hwaccel
 
static const AVOption options []
 
class {
      class_name = "vc1_qsv"
 
      item_name = av_default_item_name
 
      option = options
 
      version = LIBAVUTIL_VERSION_INT
 
}; 
 
AVCodec ff_vc1_qsv_decoder
 

Macro Definition Documentation

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

Definition at line 62 of file qsvdec_vc1.c.

Definition at line 63 of file qsvdec_vc1.c.

Function Documentation

static av_cold int qsv_decode_close ( AVCodecContext avctx)
static

Definition at line 37 of file qsvdec_vc1.c.

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

Definition at line 46 of file qsvdec_vc1.c.

Variable Documentation

AVHWAccel ff_vc1_qsv_hwaccel
Initial value:
= {
.name = "vc1_qsv",
.pix_fmt = AV_PIX_FMT_QSV,
}
HW acceleration through QSV, data[3] contains a pointer to the mfxFrameSurface1 structure.
Definition: pixfmt.h:261

Definition at line 55 of file qsvdec_vc1.c.

const AVOption options[]
static
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 VD
Definition: qsvdec_vc1.c:63
#define NULL
Definition: coverity.c:32
#define OFFSET(x)
Definition: qsvdec_vc1.c:62
#define ASYNC_DEPTH_DEFAULT
Definition: qsv_internal.h:46

Definition at line 64 of file qsvdec_vc1.c.

class_name = "vc1_qsv"

Definition at line 70 of file qsvdec_vc1.c.

item_name = av_default_item_name

Definition at line 71 of file qsvdec_vc1.c.

option = options

Definition at line 72 of file qsvdec_vc1.c.

Definition at line 73 of file qsvdec_vc1.c.

const { ... }
AVCodec ff_vc1_qsv_decoder
Initial value:
= {
.name = "vc1_qsv",
.long_name = NULL_IF_CONFIG_SMALL("VC-1 video (Intel Quick Sync Video acceleration)"),
.priv_data_size = sizeof(QSVVC1Context),
.init = NULL,
.flush = NULL,
.close = qsv_decode_close,
.capabilities = AV_CODEC_CAP_DELAY,
.priv_class = &class,
}
#define NULL
Definition: coverity.c:32
static void flush(AVCodecContext *avctx)
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
#define AV_CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition: avcodec.h:882
static int qsv_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: qsvdec_vc1.c:46
static av_cold int qsv_decode_close(AVCodecContext *avctx)
Definition: qsvdec_vc1.c:37
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
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

Definition at line 76 of file qsvdec_vc1.c.