FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
vda_h264_dec.c File Reference

H.264 decoder via VDA. More...

#include <string.h>
#include <CoreFoundation/CoreFoundation.h>
#include "vda.h"
#include "h264.h"
#include "avcodec.h"

Go to the source code of this file.

Data Structures

struct  VDADecoderContext
 

Macros

#define kCFCoreFoundationVersionNumber10_7   635.00
 

Functions

static enum AVPixelFormat get_format (struct AVCodecContext *avctx, const enum AVPixelFormat *fmt)
 
static int get_buffer (AVCodecContext *avctx, AVFrame *pic)
 
static void release_buffer (AVCodecContext *avctx, AVFrame *pic)
 
static int vdadec_decode (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int vdadec_close (AVCodecContext *avctx)
 
static av_cold int check_format (AVCodecContext *avctx)
 
static av_cold int vdadec_init (AVCodecContext *avctx)
 
static void vdadec_flush (AVCodecContext *avctx)
 

Variables

AVCodec ff_h264_decoder
 
AVCodec ff_h264_vda_decoder
 
static enum AVPixelFormat vda_pixfmts_prior_10_7 []
 
static enum AVPixelFormat vda_pixfmts []
 

Detailed Description

H.264 decoder via VDA.

Author
Xidorn Quan quanx.nosp@m.unzh.nosp@m.en@gm.nosp@m.ail..nosp@m.com

Definition in file vda_h264_dec.c.

Macro Definition Documentation

#define kCFCoreFoundationVersionNumber10_7   635.00

Definition at line 35 of file vda_h264_dec.c.

Referenced by vdadec_init().

Function Documentation

static enum AVPixelFormat get_format ( struct AVCodecContext avctx,
const enum AVPixelFormat fmt 
)
static

Definition at line 61 of file vda_h264_dec.c.

Referenced by vdadec_init().

static int get_buffer ( AVCodecContext avctx,
AVFrame pic 
)
static

Definition at line 67 of file vda_h264_dec.c.

Referenced by vdadec_init().

static void release_buffer ( AVCodecContext avctx,
AVFrame pic 
)
static

Definition at line 74 of file vda_h264_dec.c.

Referenced by vdadec_init().

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

Definition at line 86 of file vda_h264_dec.c.

static av_cold int vdadec_close ( AVCodecContext avctx)
static

Definition at line 115 of file vda_h264_dec.c.

Referenced by vdadec_init().

static av_cold int check_format ( AVCodecContext avctx)
static

Definition at line 126 of file vda_h264_dec.c.

Referenced by vdadec_init().

static av_cold int vdadec_init ( AVCodecContext avctx)
static

Definition at line 168 of file vda_h264_dec.c.

static void vdadec_flush ( AVCodecContext avctx)
static

Definition at line 242 of file vda_h264_dec.c.

Variable Documentation

AVCodec ff_h264_decoder

Definition at line 4470 of file h264.c.

AVCodec ff_h264_vda_decoder
Initial value:
= {
.name = "h264_vda",
.priv_data_size = sizeof(VDADecoderContext),
.capabilities = CODEC_CAP_DELAY,
.long_name = NULL_IF_CONFIG_SMALL("H.264 (VDA acceleration)"),
}

Definition at line 247 of file vda_h264_dec.c.

enum AVPixelFormat vda_pixfmts_prior_10_7[]
static
Initial value:

Definition at line 40 of file vda_h264_dec.c.

Referenced by vdadec_init().

enum AVPixelFormat vda_pixfmts[]
static
Initial value:

Definition at line 46 of file vda_h264_dec.c.

Referenced by vdadec_init().