FFmpeg
 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
 

Macros

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

Functions

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)
 

Variables

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

Macro Definition Documentation

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

Definition at line 71 of file qsvdec_mpeg2.c.

Definition at line 72 of file qsvdec_mpeg2.c.

Function Documentation

static av_cold int qsv_decode_close ( AVCodecContext avctx)
static

Definition at line 35 of file qsvdec_mpeg2.c.

static av_cold int qsv_decode_init ( AVCodecContext avctx)
static

Definition at line 44 of file qsvdec_mpeg2.c.

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

Definition at line 49 of file qsvdec_mpeg2.c.

static void qsv_decode_flush ( AVCodecContext avctx)
static

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:194
HW acceleration through QSV, data[3] contains a pointer to the mfxFrameSurface1 structure.
Definition: pixfmt.h:235

Definition at line 64 of file qsvdec_mpeg2.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 NULL
Definition: coverity.c:32
#define VD
Definition: qsvdec_mpeg2.c:72
#define ASYNC_DEPTH_DEFAULT
Definition: qsv_internal.h:48
#define OFFSET(x)
Definition: qsvdec_mpeg2.c:71

Definition at line 73 of file qsvdec_mpeg2.c.

class_name = "mpeg2_qsv"

Definition at line 79 of file qsvdec_mpeg2.c.

item_name = av_default_item_name

Definition at line 80 of file qsvdec_mpeg2.c.

option = options

Definition at line 81 of file qsvdec_mpeg2.c.

Definition at line 82 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
#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:981
static void qsv_decode_flush(AVCodecContext *avctx)
Definition: qsvdec_mpeg2.c:58
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
planar YUV 4:2:0, 12bpp, 1 plane for Y and 1 plane for the UV components, which are interleaved (firs...
Definition: pixfmt.h:90
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:194
GLint GLenum type
Definition: opengl_enc.c:105
HW acceleration through QSV, data[3] contains a pointer to the mfxFrameSurface1 structure.
Definition: pixfmt.h:235
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:262
static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avpkt)
Definition: ccaption_dec.c:722
static int qsv_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: qsvdec_mpeg2.c:49
AVPixelFormat
Pixel format.
Definition: pixfmt.h:60
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:956

Definition at line 85 of file qsvdec_mpeg2.c.