libosmocore 1.10.0.57-8972
Osmocom core library
|
Files | |
file | bitcomp.h |
Osmocom bit compression routines. | |
file | bitcomp.c |
Osmocom bit compression routines. | |
Functions | |
int | osmo_t4_encode (struct bitvec *bv) |
encode bit vector in-place using T4 encoding Assumes MSB first encoding. More... | |
static int | t4_rle (struct bitvec *bv, unsigned len, bool b) |
Make-up codes for a given length. More... | |
Variables | |
static const unsigned | t4_term [2][64] |
static const unsigned | t4_term_length [2][64] |
static const unsigned | t4_make_up_length [2][15] |
static const unsigned | t4_make_up [2][15] |
int osmo_t4_encode | ( | struct bitvec * | bv | ) |
encode bit vector in-place using T4 encoding Assumes MSB first encoding.
[in] | bv | bit vector to be encoded |
References bitvec_rl(), bitvec_shiftl(), bitvec_zero(), bitvec::cur_bit, bitvec::data, bitvec::data_len, and t4_rle().
|
inlinestatic |
Make-up codes for a given length.
References bitvec_set_uint(), len(), t4_make_up, t4_make_up_length, t4_term, and t4_term_length.
Referenced by osmo_t4_encode().
|
static |
Referenced by t4_rle().
|
static |
Referenced by t4_rle().
|
static |
Referenced by t4_rle().
|
static |
Referenced by t4_rle().