Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
range_common.h File Reference

Common things for range encoder and decoder. More...

#include "common.h"

Go to the source code of this file.

Macros

#define RC_SHIFT_BITS   8
 
#define RC_TOP_BITS   24
 
#define RC_TOP_VALUE   (UINT32_C(1) << RC_TOP_BITS)
 
#define RC_BIT_MODEL_TOTAL_BITS   11
 
#define RC_BIT_MODEL_TOTAL   (UINT32_C(1) << RC_BIT_MODEL_TOTAL_BITS)
 
#define RC_MOVE_BITS   5
 
#define bit_reset(prob)
 
#define bittree_reset(probs, bit_levels)
 

Detailed Description

Common things for range encoder and decoder.

Macro Definition Documentation

◆ bit_reset

#define bit_reset ( prob)
Value:
prob = RC_BIT_MODEL_TOTAL >> 1
#define RC_BIT_MODEL_TOTAL
Definition range_common.h:28

◆ bittree_reset

#define bittree_reset ( probs,
bit_levels )
Value:
for (uint32_t bt_i = 0; bt_i < (1 << (bit_levels)); ++bt_i) \
bit_reset((probs)[bt_i])
#define bit_reset(prob)
Definition range_common.h:37

◆ RC_BIT_MODEL_TOTAL

#define RC_BIT_MODEL_TOTAL   (UINT32_C(1) << RC_BIT_MODEL_TOTAL_BITS)

◆ RC_BIT_MODEL_TOTAL_BITS

#define RC_BIT_MODEL_TOTAL_BITS   11

◆ RC_MOVE_BITS

#define RC_MOVE_BITS   5

◆ RC_SHIFT_BITS

#define RC_SHIFT_BITS   8

◆ RC_TOP_BITS

#define RC_TOP_BITS   24

◆ RC_TOP_VALUE

#define RC_TOP_VALUE   (UINT32_C(1) << RC_TOP_BITS)