27 #ifndef ROHC_COMP_SCHEMES_WLSB_H 28 #define ROHC_COMP_SCHEMES_WLSB_H 85 const size_t window_width,
87 __attribute__((nonnull(1)));
92 __attribute__((nonnull(1)));
96 __attribute__((warn_unused_result, nonnull(1)));
100 __attribute__((warn_unused_result, nonnull(1)));
103 const uint16_t
value)
104 __attribute__((warn_unused_result, nonnull(1)));
106 const uint16_t
value,
108 __attribute__((warn_unused_result, nonnull(1)));
110 const uint16_t
value,
112 __attribute__((warn_unused_result, nonnull(1)));
114 const uint16_t
value,
117 __attribute__((warn_unused_result, nonnull(1)));
120 const uint32_t
value)
121 __attribute__((warn_unused_result, nonnull(1)));
123 const uint32_t
value,
125 __attribute__((warn_unused_result, nonnull(1)));
127 const uint32_t
value,
129 __attribute__((warn_unused_result, nonnull(1)));
132 const uint32_t sn_bits,
133 const size_t sn_bits_nr)
134 __attribute__((warn_unused_result, nonnull(1)));
137 __attribute__((warn_unused_result, nonnull(1)));
bool used
Definition: comp_wlsb.h:46
rohc_lsb_shift_t
the different values of the shift parameter of the LSB algorithm
Definition: interval.h:45
size_t next
Definition: comp_wlsb.h:64
size_t oldest
Definition: comp_wlsb.h:62
#define ROHC_WLSB_WIDTH_MAX
Definition: interval.h:33
size_t wlsb_get_k_16bits(const struct c_wlsb *const wlsb, const uint16_t value)
Find out the minimal number of bits of the to-be-encoded value required to be able to uniquely recrea...
Definition: comp_wlsb.c:226
size_t bits
Definition: comp_wlsb.h:70
size_t wlsb_ack(struct c_wlsb *const wlsb, const uint32_t sn_bits, const size_t sn_bits_nr)
Acknowledge based on the Sequence Number (SN)
Definition: comp_wlsb.c:518
uint32_t value
Definition: comp_wlsb.h:49
uint32_t sn
Definition: comp_wlsb.h:47
void c_add_wlsb(struct c_wlsb *const wlsb, const uint32_t sn, const uint32_t value)
Add a value into a W-LSB encoding object.
Definition: comp_wlsb.c:96
rohc_lsb_shift_t p
Definition: comp_wlsb.h:72
size_t count
Definition: comp_wlsb.h:67
One W-LSB encoding object.
Definition: comp_wlsb.h:56
bool wlsb_is_sn_present(struct c_wlsb *const wlsb, const uint32_t sn)
Whether the given SN is present in the given WLSB window.
Definition: comp_wlsb.c:558
size_t wlsb_get_mink_16bits(const struct c_wlsb *const wlsb, const uint16_t value, const size_t min_k)
Find out the minimal number of bits of the to-be-encoded value required to be able to uniquely recrea...
Definition: comp_wlsb.c:244
size_t wlsb_get_kp_32bits(const struct c_wlsb *const wlsb, const uint32_t value, const rohc_lsb_shift_t p)
Find out the minimal number of bits of the to-be-encoded value required to be able to uniquely recrea...
Definition: comp_wlsb.c:408
size_t window_width
Definition: comp_wlsb.h:59
void wlsb_init(struct c_wlsb *const wlsb, const size_t bits, const size_t window_width, const rohc_lsb_shift_t p)
Initialize the given W-LSB encoding object.
Definition: comp_wlsb.c:64
size_t wlsb_get_k_8bits(const struct c_wlsb *const wlsb, const uint8_t value)
Find out the minimal number of bits of the to-be-encoded value required to be able to uniquely recrea...
Definition: comp_wlsb.c:127
size_t wlsb_get_k_32bits(const struct c_wlsb *const wlsb, const uint32_t value)
Find out the minimal number of bits of the to-be-encoded value required to be able to uniquely recrea...
Definition: comp_wlsb.c:371
size_t wlsb_get_kp_16bits(const struct c_wlsb *const wlsb, const uint16_t value, const rohc_lsb_shift_t p)
Find out the minimal number of bits of the to-be-encoded value required to be able to uniquely recrea...
Definition: comp_wlsb.c:263
size_t wlsb_get_minkp_16bits(const struct c_wlsb *const wlsb, const uint16_t value, const size_t min_k, const rohc_lsb_shift_t p)
Find out the minimal number of bits of the to-be-encoded value required to be able to uniquely recrea...
Definition: comp_wlsb.c:284
size_t wlsb_get_mink_32bits(const struct c_wlsb *const wlsb, const uint32_t value, const size_t min_k)
Find out the minimal number of bits of the to-be-encoded value required to be able to uniquely recrea...
Definition: comp_wlsb.c:389
One W-LSB window entry.
Definition: comp_wlsb.h:44
size_t wlsb_get_kp_8bits(const struct c_wlsb *const wlsb, const uint8_t value, const rohc_lsb_shift_t p)
Find out the minimal number of bits of the to-be-encoded value required to be able to uniquely recrea...
Definition: comp_wlsb.c:144
Compute the interpretation interval for LSB and W-LSB encoding.