FFmpeg
Functions | Variables
vdpau_mpeg4.c File Reference
#include <vdpau/vdpau.h>
#include "avcodec.h"
#include "hwconfig.h"
#include "mpeg4videodec.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

const AVHWAccel ff_mpeg4_vdpau_hwaccel
 

Function Documentation

◆ vdpau_mpeg4_start_frame()

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

Definition at line 32 of file vdpau_mpeg4.c.

◆ vdpau_mpeg4_decode_slice()

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 85 of file vdpau_mpeg4.c.

◆ vdpau_mpeg4_init()

static int vdpau_mpeg4_init ( AVCodecContext avctx)
static

Definition at line 92 of file vdpau_mpeg4.c.

Variable Documentation

◆ ff_mpeg4_vdpau_hwaccel

const 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),
.caps_internal = HWACCEL_CAP_ASYNC_SAFE,
}

Definition at line 113 of file vdpau_mpeg4.c.

ff_vdpau_common_frame_params
int ff_vdpau_common_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
Definition: vdpau.c:123
AV_CODEC_ID_MPEG4
@ AV_CODEC_ID_MPEG4
Definition: codec_id.h:64
vdpau_mpeg4_decode_slice
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:85
vdpau_picture_context
Definition: vdpau_internal.h:98
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts_bsf.c:365
ff_vdpau_common_uninit
int ff_vdpau_common_uninit(AVCodecContext *avctx)
Definition: vdpau.c:293
VDPAUContext
Definition: vdpau_internal.h:73
vdpau_mpeg4_start_frame
static int vdpau_mpeg4_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition: vdpau_mpeg4.c:32
ff_vdpau_mpeg_end_frame
int ff_vdpau_mpeg_end_frame(AVCodecContext *avctx)
AV_PIX_FMT_VDPAU
@ AV_PIX_FMT_VDPAU
HW acceleration through VDPAU, Picture.data[3] contains a VdpVideoSurface.
Definition: pixfmt.h:187
HWACCEL_CAP_ASYNC_SAFE
#define HWACCEL_CAP_ASYNC_SAFE
Definition: hwconfig.h:26
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
vdpau_mpeg4_init
static int vdpau_mpeg4_init(AVCodecContext *avctx)
Definition: vdpau_mpeg4.c:92