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

Go to the source code of this file.

Data Structures

struct  QSVH264Context
 

Macros

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

Functions

static void qsv_clear_buffers (QSVH264Context *s)
 
static av_cold int qsv_decode_close (AVCodecContext *avctx)
 
static av_cold int qsv_decode_init (AVCodecContext *avctx)
 
static int qsv_process_data (AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *pkt)
 
static int qsv_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static void qsv_decode_flush (AVCodecContext *avctx)
 

Variables

AVHWAccel ff_h264_qsv_hwaccel
 
static const AVOption options []
 
class {
      class_name = "h264_qsv"
 
      item_name = av_default_item_name
 
      option = options
 
      version = LIBAVUTIL_VERSION_INT
 
}; 
 
AVCodec ff_h264_qsv_decoder
 

Macro Definition Documentation

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

Definition at line 287 of file qsv_h264.c.

Definition at line 288 of file qsv_h264.c.

Function Documentation

static void qsv_clear_buffers ( QSVH264Context s)
static

Definition at line 58 of file qsv_h264.c.

Referenced by qsv_decode_close(), and qsv_decode_flush().

static av_cold int qsv_decode_close ( AVCodecContext avctx)
static

Definition at line 72 of file qsv_h264.c.

Referenced by qsv_decode_init().

static av_cold int qsv_decode_init ( AVCodecContext avctx)
static

Definition at line 89 of file qsv_h264.c.

static int qsv_process_data ( AVCodecContext avctx,
AVFrame frame,
int *  got_frame,
AVPacket pkt 
)
static

Definition at line 140 of file qsv_h264.c.

Referenced by qsv_decode_frame().

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

Definition at line 209 of file qsv_h264.c.

static void qsv_decode_flush ( AVCodecContext avctx)
static

Definition at line 272 of file qsv_h264.c.

Variable Documentation

AVHWAccel ff_h264_qsv_hwaccel
Initial value:
= {
.name = "h264_qsv",
.pix_fmt = AV_PIX_FMT_QSV,
}

Definition at line 280 of file qsv_h264.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 },
}

Definition at line 289 of file qsv_h264.c.

class_name = "h264_qsv"

Definition at line 295 of file qsv_h264.c.

item_name = av_default_item_name

Definition at line 296 of file qsv_h264.c.

option = options

Definition at line 297 of file qsv_h264.c.

Definition at line 298 of file qsv_h264.c.

const { ... }
AVCodec ff_h264_qsv_decoder
Initial value:
= {
.name = "h264_qsv",
.long_name = NULL_IF_CONFIG_SMALL("H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (Intel Quick Sync Video acceleration)"),
.priv_data_size = sizeof(QSVH264Context),
.close = qsv_decode_close,
.capabilities = CODEC_CAP_DELAY,
.priv_class = &class,
}

Definition at line 301 of file qsv_h264.c.