libosmocore 0.9.6-23.20170220git32ee5af8.fc42
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. | |
static int | t4_rle (struct bitvec *bv, unsigned len, bool b) |
Make-up codes for a given length. | |
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_zero(), bitvec::cur_bit, bitvec::data, bitvec::data_len, and t4_rle().
|
inlinestatic |
Make-up codes for a given length.
References bitvec_set_uint().
Referenced by osmo_t4_encode().
|
static |
|
static |