int color_prim
8bits, chroma coordinates of the color primaries
in the bitstream is reported as 00b
uint8_t bfraction_lut_index
Index for BFRACTION value (see Table 40, reproduced into ff_vc1_bfraction_lut[])
This structure describes decoded (raw) audio or video data.
uint8_t lumscale2
for interlaced field P picture
int k_x
Number of bits for MVs (depends on MV range)
int reffield
if numref = 0 (1 reference) then reffield decides which
int mv_type_is_raw
mv type mb plane is not coded
Explicitly specified at frame level.
uint8_t dmvrange
Frame decoding info for interlaced picture.
int tt_index
Index for Transform Type tables (to decode TTMB)
int extended_mv
Ext MV in P/B (not in Simple)
int broadcast
TFF/RFF present.
int transfer_char
8bits, Opto-electronic transfer characteristics
uint8_t rangeredfrm
Frame decoding info for S/M profiles only.
uint8_t zz_8x8[4][64]
Zigzag table for TT_8x8, permuted for IDCT.
int intcompfield
which of the two fields to be intensity compensated
uint8_t * mv_f[2]
0: MV obtained from same field, 1: opposite field
MVModes
MV modes for P frames.
int fastuvmc
Rounding of qpel vector to hpel ? (not in Simple)
int end_mb_x
Horizontal macroblock limit (used only by mss2)
int frmrtq_postproc
3bits,
int hrd_param_flag
Presence of Hypothetical Reference Decoder parameters.
int refdist
distance of the current picture from reference
uint8_t * acpred_plane
AC prediction flags bitplane.
int res_transtab
reserved, always 0
int matrix_coef
8bits, Color primaries->YCbCr transform matrix
int first_pic_header_flag
int panscanflag
NUMPANSCANWIN, TOPLEFT{X,Y}, BOTRIGHT{X,Y} present.
int interlace
Progressive/interlaced (RPTFTM syntax element)
int y_ac_table_index
Luma index from AC2FRM element.
int c_ac_table_index
AC coding set indexes.
int ttfrm
Transform type info present at frame level.
int codingset2
index of current table set from 11.8 to use for chroma block decoding
int16_t bfraction
Relative position % anchors=> how to scale MVs.
int profile
Sequence header data for all Profiles TODO: choose between ints, uint8_ts and monobit flags...
int refdist_flag
REFDIST syntax element present in II, IP, PI or PP field picture headers.
uint8_t * forward_mb_plane
bitplane for "forward" MBs
uint8_t last_luty[2][256]
FrameCodingMode
FCM Frame Coding Mode.
Non-uniform quant used for all frames.
int ff_vc1_decode_entry_point(AVCodecContext *avctx, VC1Context *v, GetBitContext *gb)
uint8_t * over_flags_plane
Overflags bitplane.
int ff_vc1_decode_end(AVCodecContext *avctx)
Close a VC1/WMV3 decoder.
uint8_t last_lutuv[2][256]
lookup tables used for intensity compensation
int psf
Progressive Segmented Frame.
uint8_t ttmbf
Transform type flag.
int k_y
Number of bits for MVs (depends on MV range)
Implicitly specified at frame level.
int dmb_is_raw
direct mb plane is raw
int res_y411
reserved, old interlaced mode
int overlap
overlapped transforms in use
in the bitstream is reported as 11b
void ff_vc1_smooth_overlap_filter_iblk(VC1Context *v)
int qs_last
if qpel has been used in the previous (tr.) picture
void ff_vc1_mc_4mv_chroma4(VC1Context *v, int dir, int dir2, int avg)
Do motion compensation for 4-MV interlaced frame chroma macroblock (both U and V) ...
int ff_vc1_init_common(VC1Context *v)
Init VC-1 specific tables and VC1Context members.
void ff_vc1_decode_blocks(VC1Context *v)
int resync_marker
could this stream contain resync markers
void ff_vc1_mc_4mv_chroma(VC1Context *v, int dir)
Do motion compensation for 4-MV macroblock - both chroma blocks.
Libavcodec external API header.
uint8_t broken_link
Broken link flag (BROKEN_LINK syntax element)
const uint8_t * zz_8x4
Zigzag scan table for TT_8x4 coding mode.
int postprocflag
Per-frame processing suggestion flag present.
int res_rtm_flag
reserved, set to 1
uint8_t * blk_mv_type
0: frame MV, 1: field MV (interlaced frame)
int cur_field_type
0: top, 1: bottom
const uint8_t * zz_4x8
Zigzag scan table for TT_4x8 coding mode.
uint8_t buffer_size_exponent
uint8_t * blk_mv_type_base
int tfcntrflag
TFCNTR present.
int field_mode
1 for interlaced field pictures
uint8_t mv_mode
Frame decoding info for all profiles.
void ff_vc1_loop_filter_iblk_delayed(VC1Context *v, int pq)
MBModesIntfr
MBMODE for interlaced frame P-picture.
int ff_vc1_parse_frame_header_adv(VC1Context *v, GetBitContext *gb)
uint8_t lumscale
Luma compensation parameters.
uint8_t closed_entry
Closed entry point flag (CLOSED_ENTRY syntax element)
DQProfile
Where quant can be changed.
int16_t(* luma_mv_base)[2]
VLC * cbpcy_vlc
CBPCY VLC table.
uint8_t * sr_rows[2][2]
Sprite resizer line cache.
uint8_t aux_lutuv[2][256]
lookup tables used for intensity compensation
void ff_vc1_loop_filter_iblk(VC1Context *v, int pq)
int rangered
RANGEREDFRM (range reduction) syntax element present at frame level.
int finterpflag
INTERPFRM present.
int chromaformat
2bits, 2=4:2:0, only defined
int res_sprite
Simple/Main Profile sequence header.
int top_blk_sh
Either 3 or 0, positions of l/t in blk[].
void ff_vc1_mc_1mv(VC1Context *v, int dir)
Do motion compensation over 1 macroblock Mostly adapted hpel_motion and qpel_motion from mpegvideo...
int multires
frame-level RESPIC syntax element present
main external API structure.
int extended_dmv
Additional extended dmv range at P/B frame-level.
int fmb_is_raw
forward mb plane is raw
QuantMode
Sequence quantizer mode.
int buffer_fullness
HRD info.
uint8_t respic
Frame-level flag for resized images.
int skip_is_raw
skip mb plane is not coded
int quantizer_mode
2bits, quantizer mode used for sequence, see QUANT_*
uint8_t next_lutuv[2][256]
lookup tables used for intensity compensation
int ref_field_type[2]
forward and backward reference field type (top or bottom)
uint8_t * direct_mb_plane
bitplane for "direct" MBs
uint8_t mvrange
Ranges:0 -> [-64n 63.f] x [-32, 31.f]1 -> [-128, 127.f] x [-64, 63.f]2 -> [-512, 511.f] x [-128, 127.f]3 -> [-1024, 1023.f] x [-256, 255.f].
uint8_t * mv_type_mb_plane
bitplane for mv_type == (4MV)
int vstransform
variable-size [48]x[48] transform type + info
void ff_vc1_apply_p_loop_filter(VC1Context *v)
int numref
number of past field pictures used as reference
DQDoubleEdge
Which pair of edges is quantized with ALTPQUANT.
in the bitstream is reported as 10b
void ff_vc1_init_transposed_scantables(VC1Context *v)
void ff_vc1_mc_4mv_luma(VC1Context *v, int n, int dir, int avg)
Do motion compensation for 4-MV macroblock - luminance block.
int ff_vc1_decode_sequence_header(AVCodecContext *avctx, VC1Context *v, GetBitContext *gb)
Decode Simple/Main Profiles sequence header.
int pqindex
raw pqindex used in coding set selection
int hrd_num_leaky_buckets
enum FrameCodingMode fcm
Frame decoding info for Advanced profile.
Uniform quant used for all frames.
uint8_t dquantfrm
pquant parameters
uint8_t next_luty[2][256]
int res_fasttx
reserved, always 1
int * ttblk
Transform type at the block level.
uint8_t bit_rate_exponent
uint8_t pquantizer
Uniform (over sequence) quantizer in use.
AVFrame * sprite_output_frame
void ff_vc1_interp_mc(VC1Context *v)
Motion compensation for direct or interpolated blocks in B-frames.
uint8_t(* curr_luty)[256]
int bitrtq_postproc
5bits, quantized framerate-based postprocessing strength
int parse_only
Context is used within parser.
H264ChromaContext h264chroma
int ff_vc1_decode_init_alloc_tables(VC1Context *v)
int level
Advanced Profile.
int brfd
reference frame distance (forward or backward)
int dquant
How qscale varies with MBs, 2bits (not in Simple)
uint8_t mv_mode2
Secondary MV coding mode (B frames)
int new_sprite
Frame decoding info for sprite modes.
int ff_vc1_parse_frame_header(VC1Context *v, GetBitContext *gb)
int codingset
index of current table set from 11.8 to use for luma block decoding
uint8_t halfpq
Uniform quant over image and qp+.5.
uint8_t altpq
Current/alternate frame quantizer scale.