FFmpeg
Macros | Functions
h264_cavlc.c File Reference

H.264 / AVC / MPEG-4 part10 cavlc bitstream decoding. More...

#include "internal.h"
#include "avcodec.h"
#include "h264dec.h"
#include "h264_mvpred.h"
#include "h264data.h"
#include "golomb.h"
#include "mpegutils.h"
#include "libavutil/avassert.h"

Macros

#define CABAC(h)   0
 
#define UNCHECKED_BITSTREAM_READER   1
 
#define LEVEL_TAB_BITS   8
 
#define CHROMA_DC_COEFF_TOKEN_VLC_BITS   8
 
#define CHROMA422_DC_COEFF_TOKEN_VLC_BITS   13
 
#define COEFF_TOKEN_VLC_BITS   8
 
#define TOTAL_ZEROS_VLC_BITS   9
 
#define CHROMA_DC_TOTAL_ZEROS_VLC_BITS   3
 
#define CHROMA422_DC_TOTAL_ZEROS_VLC_BITS   5
 
#define RUN_VLC_BITS   3
 
#define RUN7_VLC_BITS   6
 
#define STORE_BLOCK(type)
 

Functions

av_cold void ff_h264_decode_init_vlc (void)
 
int ff_h264_decode_mb_cavlc (const H264Context *h, H264SliceContext *sl)
 Decode a macroblock. More...
 

Detailed Description

H.264 / AVC / MPEG-4 part10 cavlc bitstream decoding.

Author
Michael Niedermayer micha.nosp@m.elni.nosp@m.@gmx..nosp@m.at

Function Documentation

§ ff_h264_decode_mb_cavlc()

int ff_h264_decode_mb_cavlc ( const H264Context h,
H264SliceContext sl 
)

Decode a macroblock.

Returns
0 if OK, ER_AC_ERROR / ER_DC_ERROR / ER_MV_ERROR on error