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

Go to the source code of this file.

Functions

static int vdpau_mpeg4_start_frame (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 
static int vdpau_mpeg4_decode_slice (av_unused AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size)
 
static int vdpau_mpeg4_init (AVCodecContext *avctx)
 

Variables

AVHWAccel ff_mpeg4_vdpau_hwaccel
 

Function Documentation

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

Definition at line 31 of file vdpau_mpeg4.c.

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

Definition at line 84 of file vdpau_mpeg4.c.

static int vdpau_mpeg4_init ( AVCodecContext avctx)
static

Definition at line 91 of file vdpau_mpeg4.c.

Variable Documentation

AVHWAccel ff_mpeg4_vdpau_hwaccel
Initial value:
= {
.name = "mpeg4_vdpau",
.pix_fmt = AV_PIX_FMT_VDPAU,
.start_frame = vdpau_mpeg4_start_frame,
.decode_slice = vdpau_mpeg4_decode_slice,
.frame_priv_data_size = sizeof(struct vdpau_picture_context),
.priv_data_size = sizeof(VDPAUContext),
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
int ff_vdpau_common_uninit(AVCodecContext *avctx)
Definition: vdpau.c:235
static int vdpau_mpeg4_decode_slice(av_unused AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size)
Definition: vdpau_mpeg4.c:84
static int vdpau_mpeg4_init(AVCodecContext *avctx)
Definition: vdpau_mpeg4.c:91
int ff_vdpau_mpeg_end_frame(AVCodecContext *avctx)
HW acceleration through VDPAU, Picture.data[3] contains a VdpVideoSurface.
Definition: pixfmt.h:208
static int vdpau_mpeg4_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition: vdpau_mpeg4.c:31

Definition at line 112 of file vdpau_mpeg4.c.