FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
vdpau_h264.c File Reference
#include <vdpau/vdpau.h>
#include "avcodec.h"
#include "internal.h"
#include "h264.h"
#include "mpegutils.h"
#include "vdpau.h"
#include "vdpau_internal.h"

Go to the source code of this file.

Macros

#define H264_RF_COUNT   FF_ARRAY_ELEMS(info->referenceFrames)
 

Functions

static int32_t h264_foc (int foc)
 
static void vdpau_h264_clear_rf (VdpReferenceFrameH264 *rf)
 
static void vdpau_h264_set_rf (VdpReferenceFrameH264 *rf, H264Picture *pic, int pic_structure)
 
static void vdpau_h264_set_reference_frames (AVCodecContext *avctx)
 
static int vdpau_h264_start_frame (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 
static int vdpau_h264_decode_slice (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 
static int vdpau_h264_end_frame (AVCodecContext *avctx)
 
static int vdpau_h264_init (AVCodecContext *avctx)
 

Variables

static const uint8_t start_code_prefix [3] = { 0x00, 0x00, 0x01 }
 
AVHWAccel ff_h264_vdpau_hwaccel
 

Macro Definition Documentation

#define H264_RF_COUNT   FF_ARRAY_ELEMS(info->referenceFrames)

Function Documentation

static int32_t h264_foc ( int  foc)
static

Definition at line 33 of file vdpau_h264.c.

Referenced by vdpau_h264_set_rf(), and vdpau_h264_start_frame().

static void vdpau_h264_clear_rf ( VdpReferenceFrameH264 *  rf)
static

Definition at line 40 of file vdpau_h264.c.

Referenced by vdpau_h264_set_reference_frames().

static void vdpau_h264_set_rf ( VdpReferenceFrameH264 *  rf,
H264Picture pic,
int  pic_structure 
)
static

Definition at line 51 of file vdpau_h264.c.

Referenced by vdpau_h264_set_reference_frames().

static void vdpau_h264_set_reference_frames ( AVCodecContext avctx)
static

Definition at line 68 of file vdpau_h264.c.

Referenced by vdpau_h264_start_frame().

static int vdpau_h264_start_frame ( AVCodecContext avctx,
const uint8_t buffer,
uint32_t  size 
)
static

Definition at line 119 of file vdpau_h264.c.

static int vdpau_h264_decode_slice ( AVCodecContext avctx,
const uint8_t buffer,
uint32_t  size 
)
static

Definition at line 178 of file vdpau_h264.c.

static int vdpau_h264_end_frame ( AVCodecContext avctx)
static

Definition at line 198 of file vdpau_h264.c.

static int vdpau_h264_init ( AVCodecContext avctx)
static

Definition at line 213 of file vdpau_h264.c.

Variable Documentation

const uint8_t start_code_prefix[3] = { 0x00, 0x00, 0x01 }
static

Definition at line 176 of file vdpau_h264.c.

Referenced by vdpau_h264_decode_slice().

AVHWAccel ff_h264_vdpau_hwaccel
Initial value:
= {
.name = "h264_vdpau",
.pix_fmt = AV_PIX_FMT_VDPAU,
.start_frame = vdpau_h264_start_frame,
.end_frame = vdpau_h264_end_frame,
.decode_slice = vdpau_h264_decode_slice,
.frame_priv_data_size = sizeof(struct vdpau_picture_context),
.priv_data_size = sizeof(VDPAUContext),
}

Definition at line 260 of file vdpau_h264.c.