Libav
Data Fields
VP8Context Struct Reference

#include <vp8.h>

Data Fields

struct vpx_codec_ctx decoder
 
AVClassclass
 
struct vpx_codec_ctx encoder
 
struct vpx_image rawimg
 
struct vpx_fixed_buf twopass_stats
 
unsigned long deadline
 
struct FrameListDatacoded_frame_list
 
int cpu_used
 
int auto_alt_ref
 
int arnr_max_frames
 
int arnr_strength
 
int arnr_type
 
int lag_in_frames
 
int error_resilient
 
int crf
 
VP8ThreadDatathread_data
 
AVCodecContextavctx
 
VP8Frameframep [4]
 
VP8Framenext_framep [4]
 
VP8Framecurframe
 
VP8Frameprev_frame
 
uint16_t mb_width
 
uint16_t mb_height
 
int linesize
 
int uvlinesize
 
uint8_t keyframe
 
uint8_t deblock_filter
 
uint8_t mbskip_enabled
 
uint8_t profile
 
VP56mv mv_min
 
VP56mv mv_max
 
int8_t sign_bias [4]
 one state [0, 1] per ref frame type More...
 
int ref_count [3]
 
struct {
   uint8_t   enabled
 
   uint8_t   absolute_vals
 
   uint8_t   update_map
 
   int8_t   base_quant [4]
 
   int8_t   filter_level [4]
 base loop filter level More...
 
segmentation
 Base parameters for segmentation, i.e. More...
 
struct {
   uint8_t   simple
 
   uint8_t   level
 
   uint8_t   sharpness
 
filter
 
VP8Macroblockmacroblocks
 
uint8_tintra4x4_pred_mode_top
 
uint8_t intra4x4_pred_mode_left [4]
 
struct {
   int16_t   luma_qmul [2]
 
   int16_t   luma_dc_qmul [2]
 luma dc-only block quant More...
 
   int16_t   chroma_qmul [2]
 
qmat [4]
 Macroblocks can have one of 4 different quants in a frame when segmentation is enabled. More...
 
struct {
   uint8_t   enabled
 whether each mb can have a different strength based on mode/ref More...
 
   int8_t   mode [VP8_MVMODE_SPLIT+1]
 filter strength adjustment for the following macroblock modes: [0-3] - i16x16 (always zero) [4] - i4x4 [5] - zero mv [6] - inter modes except for zero or split mv [7] - split mv i16x16 modes never have any adjustment More...
 
   int8_t   ref [4]
 filter strength adjustment for macroblocks that reference: [0] - intra / VP56_FRAME_CURRENT [1] - VP56_FRAME_PREVIOUS [2] - VP56_FRAME_GOLDEN [3] - altref / VP56_FRAME_GOLDEN2 More...
 
lf_delta
 
uint8_t(* top_border )[16+8+8]
 
uint8_t(* top_nnz )[9]
 
VP56RangeCoder c
 header context, includes mb modes and motion vectors More...
 
struct {
   uint8_t   segmentid [3]
 
   uint8_t   mbskip
 
   uint8_t   intra
 
   uint8_t   last
 
   uint8_t   golden
 
   uint8_t   pred16x16 [4]
 
   uint8_t   pred8x8c [3]
 
   uint8_t   token [4][16][3][NUM_DCT_TOKENS - 1]
 
   uint8_t   mvc [2][19]
 
   uint8_t   scan [16]
 
prob [2]
 These are all of the updatable probabilities for binary decisions. More...
 
VP8Macroblockmacroblocks_base
 
int invisible
 
int update_last
 update VP56_FRAME_PREVIOUS with the current one More...
 
int update_golden
 VP56_FRAME_NONE if not updated, or which frame to copy if so. More...
 
int update_altref
 
int update_probabilities
 If this flag is not set, all the probability updates are discarded after this frame is decoded. More...
 
int num_coeff_partitions
 All coefficients are contained in separate arith coding contexts. More...
 
VP56RangeCoder coeff_partition [8]
 
VideoDSPContext vdsp
 
VP8DSPContext vp8dsp
 
H264PredContext hpc
 
vp8_mc_func put_pixels_tab [3][3][3]
 
VP8Frame frames [5]
 
int num_jobs
 
int mb_layout
 This describes the macroblock memory layout. More...
 
int fade_present
 Fade bit present in bitstream (VP7) More...
 
uint16_t inter_dc_pred [2][2]
 Interframe DC prediction (VP7) [0] VP56_FRAME_PREVIOUS [1] VP56_FRAME_GOLDEN. More...
 
uint8_t feature_enabled [4]
 Macroblock features (VP7) More...
 
uint8_t feature_present_prob [4]
 
uint8_t feature_index_prob [4][3]
 
uint8_t feature_value [4][4]
 

Detailed Description

Definition at line 36 of file libvpxdec.c.

Field Documentation

§ decoder

struct vpx_codec_ctx VP8Context::decoder

Definition at line 37 of file libvpxdec.c.

Referenced by vp8_decode(), vp8_free(), and vpx_init().

§ class

AVClass* VP8Context::class

Definition at line 55 of file libvpxenc.c.

§ encoder

struct vpx_codec_ctx VP8Context::encoder

§ rawimg

struct vpx_image VP8Context::rawimg

Definition at line 57 of file libvpxenc.c.

Referenced by vp8_encode(), and vpx_init().

§ twopass_stats

struct vpx_fixed_buf VP8Context::twopass_stats

Definition at line 58 of file libvpxenc.c.

Referenced by queue_frames(), vp8_encode(), vp8_free(), and vpx_init().

§ deadline

unsigned long VP8Context::deadline

Definition at line 59 of file libvpxenc.c.

Referenced by vp8_encode().

§ coded_frame_list

struct FrameListData* VP8Context::coded_frame_list

Definition at line 60 of file libvpxenc.c.

Referenced by queue_frames(), and vp8_free().

§ cpu_used

int VP8Context::cpu_used

Definition at line 61 of file libvpxenc.c.

Referenced by vpx_init().

§ auto_alt_ref

int VP8Context::auto_alt_ref

Definition at line 62 of file libvpxenc.c.

Referenced by vpx_init().

§ arnr_max_frames

int VP8Context::arnr_max_frames

Definition at line 63 of file libvpxenc.c.

Referenced by vpx_init().

§ arnr_strength

int VP8Context::arnr_strength

Definition at line 64 of file libvpxenc.c.

Referenced by vpx_init().

§ arnr_type

int VP8Context::arnr_type

Definition at line 65 of file libvpxenc.c.

Referenced by vpx_init().

§ lag_in_frames

int VP8Context::lag_in_frames

Definition at line 66 of file libvpxenc.c.

Referenced by vpx_init().

§ error_resilient

int VP8Context::error_resilient

Definition at line 67 of file libvpxenc.c.

Referenced by vpx_init().

§ crf

int VP8Context::crf

Definition at line 68 of file libvpxenc.c.

Referenced by vpx_init().

§ thread_data

VP8ThreadData* VP8Context::thread_data

§ avctx

AVCodecContext* VP8Context::avctx

§ framep

VP8Frame* VP8Context::framep[4]

§ next_framep

VP8Frame* VP8Context::next_framep[4]

Definition at line 140 of file vp8.h.

Referenced by vp78_decode_frame().

§ curframe

VP8Frame* VP8Context::curframe

§ prev_frame

VP8Frame* VP8Context::prev_frame

Definition at line 142 of file vp8.h.

Referenced by vp78_decode_frame(), and vp8_decode_mb_row_no_filter().

§ mb_width

uint16_t VP8Context::mb_width

§ mb_height

uint16_t VP8Context::mb_height

§ linesize

int VP8Context::linesize

§ uvlinesize

int VP8Context::uvlinesize

§ keyframe

uint8_t VP8Context::keyframe

§ deblock_filter

uint8_t VP8Context::deblock_filter

§ mbskip_enabled

uint8_t VP8Context::mbskip_enabled

Definition at line 151 of file vp8.h.

Referenced by decode_mb_mode(), vp7_decode_frame_header(), and vp8_decode_frame_header().

§ profile

uint8_t VP8Context::profile

§ mv_min

VP56mv VP8Context::mv_min

§ mv_max

VP56mv VP8Context::mv_max

§ sign_bias

int8_t VP8Context::sign_bias[4]

one state [0, 1] per ref frame type

Definition at line 156 of file vp8.h.

Referenced by ff_vp8_decode_init(), vp7_decode_frame_header(), vp8_decode_frame_header(), and vp8_decode_mvs().

§ ref_count

int VP8Context::ref_count[3]

Definition at line 157 of file vp8.h.

Referenced by decode_mb_mode(), prefetch_motion(), and vp78_decode_frame().

§ enabled

uint8_t VP8Context::enabled

whether each mb can have a different strength based on mode/ref

Definition at line 165 of file vp8.h.

Referenced by decode_mb_mode(), filter_level_for_mb(), get_quants(), vp78_decode_frame(), vp7_decode_frame_header(), vp8_decode_frame_header(), and vp8_decode_mb_row_no_filter().

§ absolute_vals

uint8_t VP8Context::absolute_vals

Definition at line 166 of file vp8.h.

Referenced by filter_level_for_mb(), get_quants(), and parse_segment_info().

§ update_map

uint8_t VP8Context::update_map

§ base_quant

int8_t VP8Context::base_quant[4]

Definition at line 168 of file vp8.h.

Referenced by get_quants(), and parse_segment_info().

§ filter_level

int8_t VP8Context::filter_level[4]

base loop filter level

Definition at line 169 of file vp8.h.

Referenced by filter_level_for_mb(), and parse_segment_info().

§ segmentation

struct { ... } VP8Context::segmentation

Base parameters for segmentation, i.e.

per-macroblock parameters. These must be kept unchanged even if segmentation is not used for a frame, since the values persist between interframes.

Referenced by decode_mb_mode(), ff_vp8_decode_init(), filter_level_for_mb(), get_quants(), parse_segment_info(), vp78_decode_frame(), vp7_decode_frame_header(), vp8_decode_frame_header(), and vp8_decode_mb_row_no_filter().

§ simple

uint8_t VP8Context::simple

§ level

uint8_t VP8Context::level

§ sharpness

uint8_t VP8Context::sharpness

Definition at line 175 of file vp8.h.

Referenced by filter_level_for_mb(), vp7_decode_frame_header(), and vp8_decode_frame_header().

§ filter

struct { ... } VP8Context::filter

§ macroblocks

VP8Macroblock* VP8Context::macroblocks

§ intra4x4_pred_mode_top

uint8_t* VP8Context::intra4x4_pred_mode_top

§ intra4x4_pred_mode_left

uint8_t VP8Context::intra4x4_pred_mode_left[4]

§ luma_qmul

int16_t VP8Context::luma_qmul[2]

Definition at line 190 of file vp8.h.

Referenced by decode_mb_coeffs(), get_quants(), and vp7_get_quants().

§ luma_dc_qmul

int16_t VP8Context::luma_dc_qmul[2]

luma dc-only block quant

Definition at line 191 of file vp8.h.

Referenced by decode_mb_coeffs(), get_quants(), and vp7_get_quants().

§ chroma_qmul

int16_t VP8Context::chroma_qmul[2]

Definition at line 192 of file vp8.h.

Referenced by decode_mb_coeffs(), get_quants(), and vp7_get_quants().

§ qmat

struct { ... } VP8Context::qmat[4]

Macroblocks can have one of 4 different quants in a frame when segmentation is enabled.

If segmentation is disabled, only the first segment's values are used.

Referenced by decode_mb_coeffs(), get_quants(), and vp7_get_quants().

§ mode

int8_t VP8Context::mode[VP8_MVMODE_SPLIT+1]

filter strength adjustment for the following macroblock modes: [0-3] - i16x16 (always zero) [4] - i4x4 [5] - zero mv [6] - inter modes except for zero or split mv [7] - split mv i16x16 modes never have any adjustment

Definition at line 207 of file vp8.h.

Referenced by filter_level_for_mb(), and update_lf_deltas().

§ ref

int8_t VP8Context::ref[4]

filter strength adjustment for macroblocks that reference: [0] - intra / VP56_FRAME_CURRENT [1] - VP56_FRAME_PREVIOUS [2] - VP56_FRAME_GOLDEN [3] - altref / VP56_FRAME_GOLDEN2

Definition at line 216 of file vp8.h.

Referenced by filter_level_for_mb(), and update_lf_deltas().

§ lf_delta

struct { ... } VP8Context::lf_delta

§ top_border

uint8_t(* VP8Context::top_border)[16+8+8]

§ top_nnz

uint8_t(* VP8Context::top_nnz)[9]

§ c

VP56RangeCoder VP8Context::c

§ segmentid

uint8_t VP8Context::segmentid[3]

Definition at line 231 of file vp8.h.

Referenced by decode_mb_mode(), and parse_segment_info().

§ mbskip

uint8_t VP8Context::mbskip

Definition at line 232 of file vp8.h.

Referenced by decode_mb_mode(), and vp8_decode_frame_header().

§ intra

uint8_t VP8Context::intra

Definition at line 233 of file vp8.h.

Referenced by decode_mb_mode(), vp7_decode_frame_header(), and vp8_decode_frame_header().

§ last

uint8_t VP8Context::last

Definition at line 234 of file vp8.h.

Referenced by decode_mb_mode(), vp7_decode_frame_header(), and vp8_decode_frame_header().

§ golden

uint8_t VP8Context::golden

Definition at line 235 of file vp8.h.

Referenced by decode_mb_mode(), and vp8_decode_frame_header().

§ pred16x16

uint8_t VP8Context::pred16x16[4]

§ pred8x8c

uint8_t VP8Context::pred8x8c[3]

§ token

uint8_t VP8Context::token[4][16][3][NUM_DCT_TOKENS - 1]

§ mvc

uint8_t VP8Context::mvc[2][19]

§ scan

uint8_t VP8Context::scan[16]

Definition at line 240 of file vp8.h.

Referenced by decode_mb_coeffs(), vp78_decode_init(), and vp7_decode_frame_header().

§ prob

struct { ... } VP8Context::prob[2]

These are all of the updatable probabilities for binary decisions.

They are only implictly reset on keyframes, making it quite likely for an interframe to desync if a prior frame's header was corrupt or missing outright!

Referenced by decode_mb_coeffs(), decode_mb_mode(), decode_splitmvs(), ff_vp8_decode_init(), parse_segment_info(), vp78_decode_frame(), vp78_decode_init(), vp78_reset_probability_tables(), vp78_update_pred16x16_pred8x8_mvc_probabilities(), vp78_update_probability_tables(), vp7_decode_frame_header(), vp7_decode_mvs(), vp8_decode_frame_header(), and vp8_decode_mvs().

§ macroblocks_base

VP8Macroblock* VP8Context::macroblocks_base

§ invisible

int VP8Context::invisible

Definition at line 244 of file vp8.h.

Referenced by vp78_decode_frame(), vp7_decode_frame_header(), and vp8_decode_frame_header().

§ update_last

int VP8Context::update_last

update VP56_FRAME_PREVIOUS with the current one

Definition at line 245 of file vp8.h.

Referenced by vp78_decode_frame(), vp7_decode_frame_header(), and vp8_decode_frame_header().

§ update_golden

int VP8Context::update_golden

VP56_FRAME_NONE if not updated, or which frame to copy if so.

Definition at line 246 of file vp8.h.

Referenced by update_refs(), vp78_decode_frame(), vp7_decode_frame_header(), and vp8_decode_frame_header().

§ update_altref

int VP8Context::update_altref

§ update_probabilities

int VP8Context::update_probabilities

If this flag is not set, all the probability updates are discarded after this frame is decoded.

Definition at line 253 of file vp8.h.

Referenced by vp78_decode_frame(), vp7_decode_frame_header(), and vp8_decode_frame_header().

§ num_coeff_partitions

int VP8Context::num_coeff_partitions

All coefficients are contained in separate arith coding contexts.

There can be 1, 2, 4, or 8 of these after the header context.

Definition at line 259 of file vp8.h.

Referenced by setup_partitions(), update_dimensions(), vp78_decode_frame(), vp7_decode_frame_header(), and vp8_decode_mb_row_no_filter().

§ coeff_partition

VP56RangeCoder VP8Context::coeff_partition[8]

Definition at line 260 of file vp8.h.

Referenced by setup_partitions(), vp7_decode_frame_header(), and vp8_decode_mb_row_no_filter().

§ vdsp

VideoDSPContext VP8Context::vdsp

§ vp8dsp

VP8DSPContext VP8Context::vp8dsp

§ hpc

H264PredContext VP8Context::hpc

Definition at line 263 of file vp8.h.

Referenced by intra_predict(), and vp78_decode_init().

§ put_pixels_tab

vp8_mc_func VP8Context::put_pixels_tab[3][3][3]

§ frames

VP8Frame VP8Context::frames[5]

§ num_jobs

int VP8Context::num_jobs

§ mb_layout

int VP8Context::mb_layout

This describes the macroblock memory layout.

0 -> Only width+height*2+1 macroblocks allocated (frame/single thread). 1 -> Macroblocks for entire frame alloced (sliced thread).

Definition at line 273 of file vp8.h.

Referenced by decode_mb_mode(), update_dimensions(), vp78_decode_frame(), vp7_decode_mvs(), vp8_decode_mb_row_no_filter(), and vp8_filter_mb_row().

§ fade_present

int VP8Context::fade_present

Fade bit present in bitstream (VP7)

Definition at line 278 of file vp8.h.

Referenced by vp7_decode_frame_header().

§ inter_dc_pred

uint16_t VP8Context::inter_dc_pred[2][2]

Interframe DC prediction (VP7) [0] VP56_FRAME_PREVIOUS [1] VP56_FRAME_GOLDEN.

Definition at line 285 of file vp8.h.

Referenced by decode_mb_coeffs(), and vp7_decode_frame_header().

§ feature_enabled

uint8_t VP8Context::feature_enabled[4]

Macroblock features (VP7)

Definition at line 290 of file vp8.h.

Referenced by decode_mb_mode(), and vp7_decode_frame_header().

§ feature_present_prob

uint8_t VP8Context::feature_present_prob[4]

Definition at line 291 of file vp8.h.

Referenced by decode_mb_mode(), and vp7_decode_frame_header().

§ feature_index_prob

uint8_t VP8Context::feature_index_prob[4][3]

Definition at line 292 of file vp8.h.

Referenced by decode_mb_mode(), and vp7_decode_frame_header().

§ feature_value

uint8_t VP8Context::feature_value[4][4]

Definition at line 293 of file vp8.h.

Referenced by decode_mb_mode(), and vp7_decode_frame_header().


The documentation for this struct was generated from the following files: