27 #ifndef ROHC_COMP_SCHEMES_WLSB_H
28 #define ROHC_COMP_SCHEMES_WLSB_H
48 __attribute__((warn_unused_result));
53 const uint32_t value);
57 __attribute__((warn_unused_result, nonnull(1)));
61 __attribute__((warn_unused_result, nonnull(1)));
65 __attribute__((warn_unused_result, nonnull(1)));
69 __attribute__((warn_unused_result, nonnull(1)));
73 __attribute__((warn_unused_result, nonnull(1)));
78 __attribute__((warn_unused_result, nonnull(1)));
82 __attribute__((warn_unused_result, nonnull(1)));
86 __attribute__((warn_unused_result, nonnull(1)));
90 __attribute__((warn_unused_result, nonnull(1)));
95 __attribute__((warn_unused_result, nonnull(1)));
98 const uint32_t sn_bits,
99 const size_t sn_bits_nr)
100 __attribute__((warn_unused_result, nonnull(1)));
rohc_lsb_shift_t
the different values of the shift parameter of the LSB algorithm
Definition: interval.h:42
size_t wlsb_get_minkp_32bits(const struct c_wlsb *const wlsb, const uint32_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:439
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:274
size_t bits
The maximal number of bits for representing the value.
Definition: comp_wlsb.c:72
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:492
void c_destroy_wlsb(struct c_wlsb *s)
Destroy a Window-based LSB (W-LSB) encoding object.
Definition: comp_wlsb.c:162
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:175
rohc_lsb_shift_t p
Shift parameter (see 4.5.2 in the RFC 3095)
Definition: comp_wlsb.c:74
struct c_wlsb * c_create_wlsb(const size_t bits, const size_t window_width, const rohc_lsb_shift_t p)
Create a new Window-based Least Significant Bits (W-LSB) encoding object.
Definition: comp_wlsb.c:125
Defines a W-LSB encoding object.
Definition: comp_wlsb.c:55
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:292
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:418
size_t window_width
The width of the window.
Definition: comp_wlsb.c:58
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:209
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:381
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:311
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:332
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:399
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:226
Compute the interpretation interval for LSB and W-LSB encoding.