Go to the source code of this file.
Defines | |
#define | B_BITS 10 |
#define | BITS_TO_LOAD 16 |
#define | MAX_BITS 26 |
#define | MASK_BITS 18 |
#define | ONE 0x04000000 |
#define | ONE_M1 0x03FFFFFF |
#define | HALF 0x01FE |
#define | QUARTER 0x0100 |
#define | MIN_BITS_TO_GO 0 |
#define | B_LOAD_MASK 0xFFFF |
Functions | |
int | get_pic_bin_count (ImageParameters *p_Img) |
void | reset_pic_bin_count (ImageParameters *p_Img) |
void | set_pic_bin_count (ImageParameters *p_Img, EncodingEnvironmentPtr eep) |
void | arienco_start_encoding (EncodingEnvironmentPtr eep, unsigned char *code_buffer, int *code_len) |
void | arienco_reset_EC (EncodingEnvironmentPtr eep) |
void | arienco_done_encoding (Macroblock *currMB, EncodingEnvironmentPtr eep) |
void | biari_init_context (int qp, BiContextTypePtr ctx, const char *ini) |
void | biari_encode_symbol (EncodingEnvironmentPtr eep, signed short symbol, BiContextTypePtr bi_ct) |
void | biari_encode_symbol_eq_prob (EncodingEnvironmentPtr eep, signed short symbol) |
void | biari_encode_symbol_final (EncodingEnvironmentPtr eep, signed short symbol) |
static int | arienco_bits_written (EncodingEnvironmentPtr eep) |
Copyright (C) 2000 HEINRICH HERTZ INSTITUTE All Rights Reserved.
Definition in file biariencode.h.
static int arienco_bits_written | ( | EncodingEnvironmentPtr | eep | ) | [inline, static] |
Returns the number of currently written bits.
Definition at line 63 of file biariencode.h.
Referenced by RDCost_for_8x8blocks(), slice_too_big(), writeB8_B_typeInfo_CABAC(), writeB8_typeInfo_CABAC(), writeCBP_CABAC(), writeCIPredMode_CABAC(), writeDquant_CABAC(), writeFieldModeInfo_CABAC(), writeIntraPredMode_CABAC(), writeIPCMData(), writeMB_B_typeInfo_CABAC(), writeMB_Bskip_flagInfo_CABAC(), writeMB_I_typeInfo_CABAC(), writeMB_P_typeInfo_CABAC(), writeMB_Pskip_flagInfo_CABAC(), writeMB_transform_size_CABAC(), writeMVD_CABAC(), writeRefPic_B_CABAC(), writeRefPic_P_CABAC(), and writeRunLevel_CABAC().
void arienco_done_encoding | ( | Macroblock * | currMB, | |
EncodingEnvironmentPtr | eep | |||
) |
Terminates the arithmetic codeword, writes stop bit and stuffing bytes (if any).
Definition at line 291 of file biariencode.c.
References put_one_byte_final().
Referenced by terminate_slice(), and writeIPCMData().
void arienco_reset_EC | ( | EncodingEnvironmentPtr | eep | ) |
Initializes the EncodingEnvironment E and C values to zero.
Definition at line 245 of file biariencode.c.
Referenced by start_slice().
void arienco_start_encoding | ( | EncodingEnvironmentPtr | eep, | |
unsigned char * | code_buffer, | |||
int * | code_len | |||
) |
Initializes the EncodingEnvironment for the arithmetic coder.
Definition at line 257 of file biariencode.c.
Referenced by start_slice(), and writeIPCMData().
void biari_encode_symbol | ( | EncodingEnvironmentPtr | eep, | |
signed short | symbol, | |||
BiContextTypePtr | bi_ct | |||
) |
Actually arithmetic encoding of one binary symbol by using the probability estimate of its associated context model.
Definition at line 357 of file biariencode.c.
Referenced by unary_bin_encode(), unary_bin_max_encode(), unary_exp_golomb_level_encode(), unary_exp_golomb_mv_encode(), write_and_store_CBP_block_bit(), write_and_store_CBP_block_bit_444(), write_significance_map(), write_significant_coefficients(), writeB8_B_typeInfo_CABAC(), writeB8_typeInfo_CABAC(), writeCBP_BIT_CABAC(), writeCBP_CABAC(), writeCIPredMode_CABAC(), writeDquant_CABAC(), writeFieldModeInfo_CABAC(), writeIntraPredMode_CABAC(), writeMB_B_typeInfo_CABAC(), writeMB_Bskip_flagInfo_CABAC(), writeMB_I_typeInfo_CABAC(), writeMB_P_typeInfo_CABAC(), writeMB_Pskip_flagInfo_CABAC(), writeMB_transform_size_CABAC(), writeMVD_CABAC(), writeRefPic_B_CABAC(), and writeRefPic_P_CABAC().
void biari_encode_symbol_eq_prob | ( | EncodingEnvironmentPtr | eep, | |
signed short | symbol | |||
) |
Arithmetic encoding of one binary symbol assuming a fixed prob. distribution with p(symbol) = 0.5.
Definition at line 445 of file biariencode.c.
Referenced by exp_golomb_encode_eq_prob(), write_significant_coefficients(), and writeMVD_CABAC().
void biari_encode_symbol_final | ( | EncodingEnvironmentPtr | eep, | |
signed short | symbol | |||
) |
Arithmetic encoding for last symbol before termination.
Definition at line 488 of file biariencode.c.
Referenced by writeMB_B_typeInfo_CABAC(), writeMB_I_typeInfo_CABAC(), and writeMB_P_typeInfo_CABAC().
void biari_init_context | ( | int | qp, | |
BiContextTypePtr | ctx, | |||
const char * | ini | |||
) |
Initializes a given context with some pre-defined probability state.
Definition at line 560 of file biariencode.c.
void set_pic_bin_count | ( | ImageParameters * | p_Img, | |
EncodingEnvironmentPtr | eep | |||
) |
add slice bin number to picture bin counter should be only used when slice is terminated
Definition at line 280 of file biariencode.c.
Referenced by terminate_slice().