Go to the documentation of this file.
24 #include "config_components.h"
26 #include <vdpau/vdpau.h>
39 Picture *pic =
s->current_picture_ptr;
45 info->forward_reference = VDP_INVALID_HANDLE;
46 info->backward_reference = VDP_INVALID_HANDLE;
48 switch (
s->pict_type) {
50 if (
s->next_picture_ptr) {
52 assert(
ref != VDP_INVALID_HANDLE);
57 if (
s->last_picture_ptr) {
59 assert(
ref != VDP_INVALID_HANDLE);
64 info->slice_count = 0;
66 info->picture_type = 4;
68 info->picture_type =
s->pict_type - 1 +
s->pict_type / 3;
70 info->frame_coding_mode = v->
fcm ? (v->
fcm + 1) : 0;
107 Picture *pic =
s->current_picture_ptr;
115 pic_ctx->
info.
vc1.slice_count++;
125 profile = VDP_DECODER_PROFILE_VC1_SIMPLE;
128 profile = VDP_DECODER_PROFILE_VC1_MAIN;
131 profile = VDP_DECODER_PROFILE_VC1_ADVANCED;
140 #if CONFIG_WMV3_VDPAU_HWACCEL
142 .
p.
name =
"wm3_vdpau",
159 .
p.
name =
"vc1_vdpau",
#define AV_PROFILE_VC1_MAIN
int ff_vdpau_common_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later. That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another. Frame references ownership and permissions
int overlap
overlapped transforms in use
int interlace
Progressive/interlaced (RPTFTM syntax element)
int max_b_frames
max number of B-frames for encoding
AVHWAccel p
The public AVHWAccel.
const FFHWAccel ff_vc1_vdpau_hwaccel
int fastuvmc
Rounding of qpel vector to hpel ? (not in Simple)
int multires
frame-level RESPIC syntax element present
static double val(void *priv, double ch)
int ff_vdpau_add_buffer(struct vdpau_picture_context *pic_ctx, const uint8_t *buf, uint32_t size)
int dquant
How qscale varies with MBs, 2 bits (not in Simple)
static int vdpau_vc1_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
int ff_vdpau_common_init(AVCodecContext *avctx, VdpDecoderProfile profile, int level)
int postprocflag
Per-frame processing suggestion flag present.
int(* init)(AVBSFContext *ctx)
int rangered
RANGEREDFRM (range reduction) syntax element present at frame level.
int ff_vdpau_common_start_frame(struct vdpau_picture_context *pic_ctx, av_unused const uint8_t *buffer, av_unused uint32_t size)
static uintptr_t ff_vdpau_get_surface_id(AVFrame *pic)
Extract VdpVideoSurface from an AVFrame.
void * hwaccel_picture_private
RefStruct reference for hardware accelerator private data.
#define HWACCEL_CAP_ASYNC_SAFE
Header providing the internals of AVHWAccel.
int panscanflag
NUMPANSCANWIN, TOPLEFT{X,Y}, BOTRIGHT{X,Y} present.
int resync_marker
could this stream contain resync markers
const struct FFHWAccel ff_wmv3_vdpau_hwaccel
int level
Encoding level descriptor.
int refdist_flag
REFDIST syntax element present in II, IP, PI or PP field picture headers.
#define AV_PROFILE_VC1_SIMPLE
int ff_vdpau_common_uninit(AVCodecContext *avctx)
uint8_t rangeredfrm
Frame decoding info for S/M profiles only.
int ff_vdpau_mpeg_end_frame(AVCodecContext *avctx)
int tfcntrflag
TFCNTR present.
@ AV_PIX_FMT_VDPAU
HW acceleration through VDPAU, Picture.data[3] contains a VdpVideoSurface.
const char * name
Name of the hardware accelerated codec.
int extended_mv
Ext MV in P/B (not in Simple)
static int vdpau_vc1_init(AVCodecContext *avctx)
#define AV_PROFILE_VC1_ADVANCED
main external API structure.
union VDPAUPictureInfo info
VDPAU picture information.
@ AV_PICTURE_TYPE_B
Bi-dir predicted.
the frame and frame reference mechanism is intended to as much as expensive copies of that data while still allowing the filters to produce correct results The data is stored in buffers represented by AVFrame structures Several references can point to the same frame buffer
int vstransform
variable-size [48]x[48] transform type + info
static int ref[MAX_W *MAX_W]
enum FrameCodingMode fcm
Frame decoding info for Advanced profile.
@ AV_PICTURE_TYPE_P
Predicted.
int psf
Progressive Segmented Frame.
int broadcast
TFF/RFF present.
static int vdpau_vc1_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
int finterpflag
INTERPFRM present.
int quantizer_mode
2 bits, quantizer mode used for sequence, see QUANT_*
int extended_dmv
Additional extended dmv range at P/B-frame-level.