FFmpeg
Loading...
Searching...
No Matches
vdpau_vc1.c File Reference
#include "config_components.h"
#include <vdpau/vdpau.h>
#include "avcodec.h"
#include "hwaccel_internal.h"
#include "libavutil/attributes.h"
#include "vc1.h"
#include "vdpau.h"
#include "vdpau_internal.h"

Go to the source code of this file.

Functions

static int vdpau_vc1_start_frame (AVCodecContext *avctx, const AVBufferRef *buffer_ref, const uint8_t *buffer, uint32_t size)
 
static int vdpau_vc1_decode_slice (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 
static av_cold int vdpau_vc1_init (AVCodecContext *avctx)
 

Variables

const FFHWAccel ff_vc1_vdpau_hwaccel
 

Function Documentation

◆ vdpau_vc1_start_frame()

static int vdpau_vc1_start_frame ( AVCodecContext * avctx,
const AVBufferRef * buffer_ref,
const uint8_t * buffer,
uint32_t size )
static

Definition at line 35 of file vdpau_vc1.c.

◆ vdpau_vc1_decode_slice()

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

Definition at line 104 of file vdpau_vc1.c.

◆ vdpau_vc1_init()

static av_cold int vdpau_vc1_init ( AVCodecContext * avctx)
static

Definition at line 121 of file vdpau_vc1.c.

Variable Documentation

◆ ff_vc1_vdpau_hwaccel

const FFHWAccel ff_vc1_vdpau_hwaccel
Initial value:
= {
.p.name = "vc1_vdpau",
.p.type = AVMEDIA_TYPE_VIDEO,
.p.id = AV_CODEC_ID_VC1,
.p.pix_fmt = AV_PIX_FMT_VDPAU,
.start_frame = vdpau_vc1_start_frame,
.decode_slice = vdpau_vc1_decode_slice,
.frame_priv_data_size = sizeof(struct vdpau_picture_context),
.priv_data_size = sizeof(VDPAUContext),
.caps_internal = HWACCEL_CAP_ASYNC_SAFE,
}
int(* init)(AVBSFContext *ctx)
Definition dts2pts.c:608
av_cold int ff_vdpau_common_uninit(AVCodecContext *avctx)
Definition vdpau.c:278
int ff_vdpau_common_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
Definition vdpau.c:108
@ AV_CODEC_ID_VC1
Definition codec_id.h:120
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200
#define HWACCEL_CAP_ASYNC_SAFE
Header providing the internals of AVHWAccel.
@ AV_PIX_FMT_VDPAU
HW acceleration through VDPAU, Picture.data[3] contains a VdpVideoSurface.
Definition pixfmt.h:194
int ff_vdpau_mpeg_end_frame(AVCodecContext *avctx)
static int vdpau_vc1_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition vdpau_vc1.c:104
static int vdpau_vc1_start_frame(AVCodecContext *avctx, const AVBufferRef *buffer_ref, const uint8_t *buffer, uint32_t size)
Definition vdpau_vc1.c:35
static av_cold int vdpau_vc1_init(AVCodecContext *avctx)
Definition vdpau_vc1.c:121

Definition at line 160 of file vdpau_vc1.c.