Go to the source code of this file.
|
#define | mpsexchange_dec_macro(d, curctx, a) |
|
#define | lpsexchange_dec_macro(d, curctx, a) |
|
#define | bytein_dec_macro(mqc, c, ct) |
|
#define | renorm_dec_macro(mqc, a, c, ct) |
|
#define | decompress_macro(d, mqc, curctx, a, c, ct) |
|
#define | mqc_renormd(mqc) |
| Renormalize mqc->a and mqc->c while decoding.
|
|
#define | mqc_decode(d, mqc) |
| Decompress a symbol.
|
|
◆ bytein_dec_macro
#define bytein_dec_macro |
( |
| mqc, |
|
|
| c, |
|
|
| ct ) |
Value: { \
\
\
uint32_t l_c = *(mqc->bp + 1); \
if(*mqc->bp == 0xff) \
{ \
if(l_c > 0x8f) \
{ \
mqc->end_of_byte_stream_counter++; \
} \
else \
{ \
mqc->bp++; \
} \
} \
else \
{ \
mqc->bp++; \
} \
}
uint32_t c
temporary buffer where bits are coded or decoded
Definition mqc.h:46
uint32_t ct
number of bits already read or free to write
Definition mqc.h:50
Referenced by mqc_bytein().
◆ decompress_macro
#define decompress_macro |
( |
| d, |
|
|
| mqc, |
|
|
| curctx, |
|
|
| a, |
|
|
| c, |
|
|
| ct ) |
Value: { \
\
uint32_t qeval_shift = (*curctx)->qeval << 16; \
{ \
lpsexchange_dec_macro(d,
curctx,
a); \
renorm_dec_macro(mqc,
a,
c,
ct); \
} \
else \
{ \
{ \
mpsexchange_dec_macro(d,
curctx,
a); \
renorm_dec_macro(mqc,
a,
c,
ct); \
} \
else \
{ \
} \
} \
}
uint32_t a
only used by MQ decoder
Definition mqc.h:48
const mqc_state ** curctx
Active context.
Definition mqc.h:62
d
Definition rvv-inl.h:1998
◆ lpsexchange_dec_macro
#define lpsexchange_dec_macro |
( |
| d, |
|
|
| curctx, |
|
|
| a ) |
Value: { \
if(
a < (*curctx)->qeval) \
{ \
d = (*curctx)->mps; \
} \
else \
{ \
d = (*curctx)->mps ^ 1; \
} \
}
◆ mpsexchange_dec_macro
#define mpsexchange_dec_macro |
( |
| d, |
|
|
| curctx, |
|
|
| a ) |
Value: { \
if(
a < (*curctx)->qeval) \
{ \
d = (*curctx)->mps ^ 1; \
} \
else \
{ \
d = (*curctx)->mps; \
} \
}
◆ mqc_decode
#define mqc_decode |
( |
| d, |
|
|
| mqc ) |
Value:
#define decompress_macro(d, mqc, curctx, a, c, ct)
Definition TileCache.h:135
Decompress a symbol.
- Parameters
-
d | uint32_t value where to store the decoded symbol |
mqc | MQC handle |
- Returns
- Returns the decoded symbol (0 or 1) in d
◆ mqc_renormd
#define mqc_renormd |
( |
| mqc | ) |
|
Value:
#define renorm_dec_macro(mqc, a, c, ct)
Definition TileCache.h:123
Renormalize mqc->a and mqc->c while decoding.
- Parameters
-
◆ renorm_dec_macro
#define renorm_dec_macro |
( |
| mqc, |
|
|
| a, |
|
|
| c, |
|
|
| ct ) |
Value: { \
do \
{ \
bytein_dec_macro(mqc,
c,
ct); \
}
◆ mqc_bytein()
static INLINE void mqc_bytein |
( |
mqcoder *const | mqc | ) |
|
|
static |
◆ mqc_raw_decode()
static INLINE uint32_t mqc_raw_decode |
( |
mqcoder * | mqc | ) |
|
|
static |
Decompress a symbol using raw-decoder.
Cfr p.506 TAUBMAN
- Parameters
-
- Returns
- Returns the decoded symbol (0 or 1)