Go to the documentation of this file.
34 CUVIDPICPARAMS *pp = &
ctx->pic_params;
37 AVFrame *cur_frame =
s->current_picture.f;
48 *pp = (CUVIDPICPARAMS) {
49 .PicWidthInMbs = (cur_frame->
width + 15) / 16,
50 .FrameHeightInMbs = (cur_frame->
height + 15) / 16,
51 .CurrPicIdx = cf->
idx,
61 .CodecSpecific.vc1 = {
64 .FrameWidth = cur_frame->
width,
65 .FrameHeight = cur_frame->
height,
71 .progressive_fcm = v->
fcm == 0,
83 .maxbframes =
s->max_b_frames,
127 #if CONFIG_WMV3_NVDEC_HWACCEL
129 .
name =
"wmv3_nvdec",
@ AV_PIX_FMT_CUDA
HW acceleration through CUDA.
int overlap
overlapped transforms in use
int interlace
Progressive/interlaced (RPTFTM syntax element)
uint8_t * data
The data buffer.
int ff_nvdec_get_ref_idx(AVFrame *frame)
This struct stores per-frame lavc-internal data and is attached to it via private_ref.
This structure describes decoded (raw) audio or video data.
static int nvdec_vc1_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
int fastuvmc
Rounding of qpel vector to hpel ? (not in Simple)
int ff_nvdec_start_frame(AVCodecContext *avctx, AVFrame *frame)
int multires
frame-level RESPIC syntax element present
int dquant
How qscale varies with MBs, 2 bits (not in Simple)
int postprocflag
Per-frame processing suggestion flag present.
int rangered
RANGEREDFRM (range reduction) syntax element present at frame level.
const AVHWAccel ff_vc1_nvdec_hwaccel
static int nvdec_vc1_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
int ff_nvdec_simple_end_frame(AVCodecContext *avctx)
int field_mode
1 for interlaced field pictures
int panscanflag
NUMPANSCANWIN, TOPLEFT{X,Y}, BOTRIGHT{X,Y} present.
int ff_nvdec_decode_init(AVCodecContext *avctx)
struct AVCodecInternal * internal
Private context used for internal data.
@ AV_PICTURE_TYPE_I
Intra.
int resync_marker
could this stream contain resync markers
int refdist_flag
REFDIST syntax element present in II, IP, PI or PP field picture headers.
void * hwaccel_priv_data
hwaccel-specific private data
uint8_t rangeredfrm
Frame decoding info for S/M profiles only.
int tfcntrflag
TFCNTR present.
int ff_nvdec_decode_uninit(AVCodecContext *avctx)
AVBufferRef * private_ref
AVBufferRef for internal use by a single libav* library.
int cur_field_type
0: top, 1: bottom
const char * name
Name of the hardware accelerated codec.
int extended_mv
Ext MV in P/B (not in Simple)
main external API structure.
int ff_nvdec_simple_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
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 ff_nvdec_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx, int dpb_size, int supports_444)
int profile
Sequence header data for all Profiles TODO: choose between ints, uint8_ts and monobit flags.
int vstransform
variable-size [48]x[48] transform type + info
enum FrameCodingMode fcm
Frame decoding info for Advanced profile.
@ AV_PICTURE_TYPE_P
Predicted.
int psf
Progressive Segmented Frame.
A reference to a data buffer.
int broadcast
TFF/RFF present.
@ AV_PICTURE_TYPE_BI
BI type.
int finterpflag
INTERPFRM present.
void * hwaccel_priv
Per-frame private data for hwaccels.
int quantizer_mode
2 bits, quantizer mode used for sequence, see QUANT_*
const AVHWAccel ff_wmv3_nvdec_hwaccel
int extended_dmv
Additional extended dmv range at P/B-frame-level.