RV30/40 4x4 block decoding functions


Functions

static int rv34_decode_cbp (GetBitContext *gb, RV34VLC *vlc, int table)
 Decode coded block pattern.
static void decode_coeff (DCTELEM *dst, int coef, int esc, GetBitContext *gb, VLC *vlc)
 Get one coefficient value from the bistream and store it.
static void decode_subblock (DCTELEM *dst, int code, const int is_block2, GetBitContext *gb, VLC *vlc)
 Decode 2x2 subblock of coefficients.
static void rv34_decode_block (DCTELEM *dst, GetBitContext *gb, RV34VLC *rvlc, int fc, int sc)
 Decode coefficients for 4x4 block.
static void rv34_dequant4x4 (DCTELEM *block, int Qdc, int Q)
 Dequantize ordinary 4x4 block.
static void rv34_dequant4x4_16x16 (DCTELEM *block, int Qdc, int Q)
 Dequantize 4x4 block of DC values for 16x16 macroblock.

Function Documentation

static void decode_coeff ( DCTELEM dst,
int  coef,
int  esc,
GetBitContext gb,
VLC vlc 
) [inline, static]

Get one coefficient value from the bistream and store it.

Definition at line 289 of file rv34.c.

Referenced by decode_subblock().

static void decode_subblock ( DCTELEM dst,
int  code,
const int  is_block2,
GetBitContext gb,
VLC vlc 
) [inline, static]

Decode 2x2 subblock of coefficients.

Definition at line 309 of file rv34.c.

Referenced by rv34_decode_block().

static void rv34_decode_block ( DCTELEM dst,
GetBitContext gb,
RV34VLC rvlc,
int  fc,
int  sc 
) [inline, static]

Decode coefficients for 4x4 block.

This is done by filling 2x2 subblocks with decoded coefficients in this order (the same for subblocks and subblock coefficients): o--o / / o--o

Definition at line 339 of file rv34.c.

Referenced by rv34_decode_macroblock().

static int rv34_decode_cbp ( GetBitContext gb,
RV34VLC vlc,
int  table 
) [static]

Decode coded block pattern.

Definition at line 256 of file rv34.c.

Referenced by rv34_decode_mb_header().

static void rv34_dequant4x4 ( DCTELEM block,
int  Qdc,
int  Q 
) [inline, static]

Dequantize ordinary 4x4 block.

Todo:
optimize

Definition at line 369 of file rv34.c.

Referenced by rv34_decode_macroblock().

static void rv34_dequant4x4_16x16 ( DCTELEM block,
int  Qdc,
int  Q 
) [inline, static]

Dequantize 4x4 block of DC values for 16x16 macroblock.

Todo:
optimize

Definition at line 383 of file rv34.c.

Referenced by rv34_decode_macroblock().


Generated on Fri Oct 26 02:36:56 2012 for FFmpeg by  doxygen 1.5.8