cabac.h File Reference

Header file for entropy coding routines. More...

#include "global.h"

Include dependency graph for cabac.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

MotionInfoContexts * create_contexts_MotionInfo (void)
TextureInfoContexts * create_contexts_TextureInfo (void)
void delete_contexts_MotionInfo (MotionInfoContexts *enco_ctx)
void delete_contexts_TextureInfo (TextureInfoContexts *enco_ctx)
void cabac_new_slice (Slice *currSlice)
void readMB_typeInfo_CABAC (Macroblock *currMB, SyntaxElement *se, DecodingEnvironmentPtr dep_dp)
void readB8_typeInfo_CABAC (Macroblock *currMB, SyntaxElement *se, DecodingEnvironmentPtr dep_dp)
void readIntraPredMode_CABAC (Macroblock *currMB, SyntaxElement *se, DecodingEnvironmentPtr dep_dp)
void readRefFrame_CABAC (Macroblock *currMB, SyntaxElement *se, DecodingEnvironmentPtr dep_dp)
void readMVD_CABAC (Macroblock *currMB, SyntaxElement *se, DecodingEnvironmentPtr dep_dp)
void readCBP_CABAC (Macroblock *currMB, SyntaxElement *se, DecodingEnvironmentPtr dep_dp)
void readRunLevel_CABAC (Macroblock *currMB, SyntaxElement *se, DecodingEnvironmentPtr dep_dp)
void readDquant_CABAC (Macroblock *currMB, SyntaxElement *se, DecodingEnvironmentPtr dep_dp)
void readCIPredMode_CABAC (Macroblock *currMB, SyntaxElement *se, DecodingEnvironmentPtr dep_dp)
void readMB_skip_flagInfo_CABAC (Macroblock *currMB, SyntaxElement *se, DecodingEnvironmentPtr dep_dp)
void readFieldModeInfo_CABAC (Macroblock *currMB, SyntaxElement *se, DecodingEnvironmentPtr dep_dp)
void readMB_transform_size_flag_CABAC (Macroblock *currMB, SyntaxElement *se, DecodingEnvironmentPtr dep_dp)
void readIPCM_CABAC (Slice *currSlice, struct datapartition *dP)
int cabac_startcode_follows (Slice *currSlice, int eos_bit)
int readSyntaxElement_CABAC (SyntaxElement *se, ImageParameters *p_Img, DataPartition *this_dataPart)
int check_next_mb_and_get_field_mode_CABAC (Slice *currSlice, SyntaxElement *se, DataPartition *act_dp)
void CheckAvailabilityOfNeighborsCABAC (Macroblock *currMB)


Detailed Description

Header file for entropy coding routines.

cabac.h

Author:
Detlev Marpe
Copyright (C) 2000 HEINRICH HERTZ INSTITUTE All Rights Reserved.
Date:
21. Oct 2000 (Changes by Tobias Oelbaum 28.08.2001)

Definition in file cabac.h.


Function Documentation

int cabac_startcode_follows ( Slice currSlice,
int  eos_bit 
)

finding end of a slice in case this is not the end of a frame

Unsure whether the "correction" below actually solves an off-by-one problem or whether it introduces one in some cases :-( Anyway, with this change the bit stream format works with CABAC again. StW, 8.7.02

Definition at line 1756 of file cabac.c.

References assignSE2partition, biari_decode_final(), slice::dp_mode, and slice::partArr.

Here is the call graph for this function:

MotionInfoContexts* create_contexts_MotionInfo ( void   ) 

Allocation of contexts models for the motion info used for arithmetic decoding.

Definition at line 77 of file cabac.c.

References no_mem_exit().

Referenced by malloc_slice().

Here is the call graph for this function:

TextureInfoContexts* create_contexts_TextureInfo ( void   ) 

Allocates of contexts models for the texture info used for arithmetic decoding.

Definition at line 96 of file cabac.c.

References no_mem_exit().

Referenced by malloc_slice().

Here is the call graph for this function:

void delete_contexts_MotionInfo ( MotionInfoContexts *  enco_ctx  ) 

Frees the memory of the contexts models used for arithmetic decoding of the motion info.

Definition at line 115 of file cabac.c.

Referenced by free_slice().

void delete_contexts_TextureInfo ( TextureInfoContexts *  enco_ctx  ) 

Frees the memory of the contexts models used for arithmetic decoding of the texture info.

Definition at line 131 of file cabac.c.

Referenced by free_slice().

void readB8_typeInfo_CABAC ( Macroblock currMB,
SyntaxElement se,
DecodingEnvironmentPtr  dep_dp 
)

This function is used to arithmetically decode the 8x8 block type.

Definition at line 337 of file cabac.c.

References biari_decode_symbol(), slice::mot_ctx, macroblock::p_Slice, slice::slice_type, and syntaxelement::value1.

Referenced by read_one_macroblock_b_slice(), and read_one_macroblock_p_slice().

Here is the call graph for this function:

void readCBP_CABAC ( Macroblock currMB,
SyntaxElement se,
DecodingEnvironmentPtr  dep_dp 
)

This function is used to arithmetically decode the coded block pattern of a given MB.

Definition at line 909 of file cabac.c.

References biari_decode_symbol(), get4x4Neighbour(), macroblock::mb_left, macroblock::mb_up, macroblock::p_Img, macroblock::p_Slice, slice::tex_ctx, syntaxelement::value1, YUV400, and YUV444.

Referenced by read_CBP_and_coeffs_from_NAL_CABAC().

Here is the call graph for this function:

void readCIPredMode_CABAC ( Macroblock currMB,
SyntaxElement se,
DecodingEnvironmentPtr  dep_dp 
)

This function is used to arithmetically decode the chroma intra prediction mode of a given MB.

Definition at line 1043 of file cabac.c.

References biari_decode_symbol(), macroblock::c_ipred_mode, macroblock::mb_left, macroblock::mb_up, macroblock::p_Slice, slice::tex_ctx, unary_bin_max_decode(), and syntaxelement::value1.

Referenced by read_ipred_modes().

Here is the call graph for this function:

void readDquant_CABAC ( Macroblock currMB,
SyntaxElement se,
DecodingEnvironmentPtr  dep_dp 
)

This function is used to arithmetically decode the delta qp of a given MB.

Definition at line 874 of file cabac.c.

References biari_decode_symbol(), slice::mot_ctx, macroblock::p_Slice, unary_bin_decode(), and syntaxelement::value1.

Here is the call graph for this function:

void readIntraPredMode_CABAC ( Macroblock currMB,
SyntaxElement se,
DecodingEnvironmentPtr  dep_dp 
)

This function is used to arithmetically decode a pair of intra prediction modes of a given MB.

Definition at line 765 of file cabac.c.

References biari_decode_symbol(), macroblock::p_Slice, slice::tex_ctx, and syntaxelement::value1.

Referenced by read_ipred_modes().

Here is the call graph for this function:

void readIPCM_CABAC ( Slice currSlice,
struct datapartition dP 
)

Read I_PCM macroblock.

Definition at line 1896 of file cabac.c.

References Bitstream::bitstream_length, GetBits(), Bitstream::streamBuffer, and YUV400.

Referenced by read_IPCM_coeffs_from_NAL().

Here is the call graph for this function:

void readMB_skip_flagInfo_CABAC ( Macroblock currMB,
SyntaxElement se,
DecodingEnvironmentPtr  dep_dp 
)

This function is used to arithmetically decode the macroblock type info of a given MB.

Definition at line 421 of file cabac.c.

References biari_decode_symbol(), macroblock::mb_left, macroblock::mb_up, slice::mot_ctx, macroblock::p_Slice, slice::slice_type, syntaxelement::value1, and syntaxelement::value2.

Referenced by read_one_macroblock_b_slice(), and read_one_macroblock_p_slice().

Here is the call graph for this function:

void readMB_transform_size_flag_CABAC ( Macroblock currMB,
SyntaxElement se,
DecodingEnvironmentPtr  dep_dp 
)

This function is used to arithmetically decode the macroblock intra_pred_size flag info of a given MB.

Definition at line 470 of file cabac.c.

References biari_decode_symbol(), macroblock::mb_left, macroblock::mb_up, macroblock::p_Slice, slice::tex_ctx, and syntaxelement::value1.

Referenced by read_CBP_and_coeffs_from_NAL_CABAC(), read_CBP_and_coeffs_from_NAL_CAVLC(), read_one_macroblock_b_slice(), read_one_macroblock_i_slice(), and read_one_macroblock_p_slice().

Here is the call graph for this function:

void readMB_typeInfo_CABAC ( Macroblock currMB,
SyntaxElement se,
DecodingEnvironmentPtr  dep_dp 
)

This function is used to arithmetically decode the macroblock type info of a given MB.

Definition at line 499 of file cabac.c.

References biari_decode_final(), biari_decode_symbol(), syntaxelement::context, macroblock::mb_left, macroblock::mb_up, slice::mot_ctx, macroblock::p_Slice, slice::slice_type, and syntaxelement::value1.

Referenced by read_one_macroblock_b_slice(), read_one_macroblock_i_slice(), and read_one_macroblock_p_slice().

Here is the call graph for this function:

void readMVD_CABAC ( Macroblock currMB,
SyntaxElement se,
DecodingEnvironmentPtr  dep_dp 
)

This function is used to arithmetically decode the motion vector data of a B-frame MB.

Definition at line 252 of file cabac.c.

References biari_decode_symbol(), biari_decode_symbol_eq_prob(), syntaxelement::context, get4x4Neighbour(), slice::mot_ctx, macroblock::p_Img, macroblock::p_Slice, unary_exp_golomb_mv_decode(), syntaxelement::value1, and syntaxelement::value2.

Referenced by read_motion_info_from_NAL_b_slice(), and read_motion_info_from_NAL_p_slice().

Here is the call graph for this function:

void readRefFrame_CABAC ( Macroblock currMB,
SyntaxElement se,
DecodingEnvironmentPtr  dep_dp 
)

This function is used to arithmetically decode the reference parameter of a given MB.

Definition at line 799 of file cabac.c.

References biari_decode_symbol(), syntaxelement::context, get4x4Neighbour(), slice::mot_ctx, storable_picture::motion, macroblock::p_Img, macroblock::p_Slice, pic_motion_params::ref_idx, unary_bin_decode(), syntaxelement::value1, and syntaxelement::value2.

Referenced by prepareListforRefIdx().

Here is the call graph for this function:

void readRunLevel_CABAC ( Macroblock currMB,
SyntaxElement se,
DecodingEnvironmentPtr  dep_dp 
)

int readSyntaxElement_CABAC ( SyntaxElement se,
ImageParameters *  p_Img,
DataPartition this_dataPart 
)

arithmetic decoding

Definition at line 1658 of file cabac.c.

References arideco_bits_read(), syntaxelement::len, and syntaxelement::reading.

Here is the call graph for this function:


Documentation generated with DoxyGen