libavcodec/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

Defines

#define kCFCoreFoundationVersionNumber10_7   635.00

Functions

static enum PixelFormat get_format (struct AVCodecContext *avctx, const enum PixelFormat *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 *data_size, 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 PixelFormat vda_pixfmts_prior_10_7 []
static enum PixelFormat vda_pixfmts []


Detailed Description

H.264 decoder via VDA.

Author:
Xidorn Quan <quanxunzhen@gmail.com>

Definition in file vda_h264_dec.c.


Define Documentation

#define kCFCoreFoundationVersionNumber10_7   635.00

Definition at line 35 of file vda_h264_dec.c.

Referenced by vdadec_init().


Function Documentation

static av_cold int check_format ( AVCodecContext avctx  )  [static]

Definition at line 126 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 enum PixelFormat get_format ( struct AVCodecContext avctx,
const enum PixelFormat fmt 
) [static]

Definition at line 61 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 av_cold int vdadec_close ( AVCodecContext avctx  )  [static]

Definition at line 115 of file vda_h264_dec.c.

Referenced by vdadec_init().

static int vdadec_decode ( AVCodecContext avctx,
void *  data,
int data_size,
AVPacket avpkt 
) [static]

Definition at line 86 of file vda_h264_dec.c.

static void vdadec_flush ( AVCodecContext avctx  )  [static]

Definition at line 242 of file vda_h264_dec.c.

static av_cold int vdadec_init ( AVCodecContext avctx  )  [static]

Definition at line 168 of file vda_h264_dec.c.


Variable Documentation

Definition at line 4220 of file h264.c.

Initial value:

 {
    .name           = "h264_vda",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = AV_CODEC_ID_H264,
    .priv_data_size = sizeof(VDADecoderContext),
    .init           = vdadec_init,
    .close          = vdadec_close,
    .decode         = vdadec_decode,
    .capabilities   = CODEC_CAP_DELAY,
    .flush          = vdadec_flush,
    .long_name      = NULL_IF_CONFIG_SMALL("H.264 (VDA acceleration)"),
}

Definition at line 247 of file vda_h264_dec.c.

enum PixelFormat vda_pixfmts[] [static]

Initial value:

Definition at line 46 of file vda_h264_dec.c.

Referenced by vdadec_init().

Initial value:

Definition at line 40 of file vda_h264_dec.c.

Referenced by vdadec_init().


Generated on Fri Oct 26 02:50:08 2012 for FFmpeg by  doxygen 1.5.8