biariencode.h File Reference

Headerfile for binary arithmetic encoding routines. More...

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

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)


Detailed Description

Headerfile for binary arithmetic encoding routines.

biariencode.h

Author:
  • Detlev Marpe
  • Gabi Blaettermann
  • Gunnar Marten
Copyright (C) 2000 HEINRICH HERTZ INSTITUTE All Rights Reserved.

Date:
21. Oct 2000

Definition in file biariencode.h.


Function Documentation

static int arienco_bits_written ( EncodingEnvironmentPtr  eep  )  [inline, static]

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().

Here is the call graph for this function:

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 
)

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().


Documentation generated with DoxyGen