27 #ifndef ROHC_DECOMP_SCHEMES_WLSB_H 28 #define ROHC_DECOMP_SCHEMES_WLSB_H 99 __attribute__((nonnull(1)));
102 __attribute__((warn_unused_result, nonnull(1), pure));
106 const uint32_t v_ref_d_offset,
110 uint32_t *
const decoded)
111 __attribute__((warn_unused_result, nonnull(1, 7)));
115 const bool keep_ref_minus_1)
116 __attribute__((nonnull(1)));
120 __attribute__((nonnull(1), warn_unused_result));
rohc_lsb_shift_t
the different values of the shift parameter of the LSB algorithm
Definition: interval.h:47
size_t bits_nr
Definition: decomp_wlsb.h:89
void rohc_lsb_init(struct rohc_lsb_decode *const lsb, const size_t max_len)
Initialize a given Least Significant Bits (LSB) decoding context.
Definition: decomp_wlsb.c:78
Definition: decomp_wlsb.h:45
size_t max_len
Definition: decomp_wlsb.h:60
bool is_init
Definition: decomp_wlsb.h:59
Definition: decomp_wlsb.h:77
uint32_t v_ref_d[ROHC_LSB_REF_MAX]
Definition: decomp_wlsb.h:63
Definition: decomp_wlsb.h:46
size_t bits_nr
Definition: decomp_wlsb.h:71
uint16_t bits
Definition: decomp_wlsb.h:79
uint8_t bits
Definition: decomp_wlsb.h:88
The Least Significant Bits (LSB) decoding object.
Definition: decomp_wlsb.h:57
Definition: decomp_wlsb.h:47
Definition: decomp_wlsb.h:86
uint32_t rohc_lsb_get_ref(const struct rohc_lsb_decode *const lsb, const rohc_lsb_ref_t ref_type)
Get the current LSB reference value (ref 0)
Definition: decomp_wlsb.c:385
uint32_t bits
Definition: decomp_wlsb.h:70
size_t bits_nr
Definition: decomp_wlsb.h:80
Definition: decomp_wlsb.h:68
rohc_lsb_shift_t p
Definition: decomp_wlsb.h:72
rohc_lsb_ref_t
Definition: decomp_wlsb.h:43
rohc_lsb_shift_t p
Definition: decomp_wlsb.h:81
bool rohc_lsb_decode(const struct rohc_lsb_decode *const lsb, const rohc_lsb_ref_t ref_type, const uint32_t v_ref_d_offset, const uint32_t m, const size_t k, const rohc_lsb_shift_t p, uint32_t *const decoded)
Decode a LSB-encoded value.
Definition: decomp_wlsb.c:116
rohc_lsb_shift_t p
Definition: decomp_wlsb.h:90
bool rohc_lsb_is_ready(const struct rohc_lsb_decode *const lsb)
Is the LSB decoding context ready to decode a compressed value.
Definition: decomp_wlsb.c:93
void rohc_lsb_set_ref(struct rohc_lsb_decode *const lsb, const uint32_t v_ref_d, const bool keep_ref_minus_1)
Update the LSB reference value.
Definition: decomp_wlsb.c:361
Compute the interpretation interval for LSB and W-LSB encoding.