29 #ifndef ROHC_DECOMP_SCHEMES_SCALED_RTP_TS_H
30 #define ROHC_DECOMP_SCHEMES_SCALED_RTP_TS_H
37 # include <linux/types.h>
52 void *
const trace_cb_priv)
53 __attribute__((warn_unused_result));
55 __attribute__((nonnull(1)));
65 const uint32_t ts_unscaled_bits,
66 const size_t ts_unscaled_bits_nr,
67 uint32_t *
const decoded_ts)
68 __attribute__((warn_unused_result));
71 const uint32_t ts_scaled_bits,
72 const size_t ts_scaled_bits_nr,
73 uint32_t *
const decoded_ts)
74 __attribute__((warn_unused_result));
78 __attribute__((warn_unused_result));
void d_record_ts_stride(struct ts_sc_decomp *const ts_sc, const uint32_t ts_stride)
Store the newly-parsed TS_STRIDE value.
Definition: decomp_scaled_rtp_ts.c:240
uint32_t ts_scaled
The last computed or received TS_SCALED value (validated by CRC)
Definition: decomp_scaled_rtp_ts.c:58
bool ts_decode_unscaled_bits(struct ts_sc_decomp *const ts_sc, const uint32_t ts_unscaled_bits, const size_t ts_unscaled_bits_nr, uint32_t *const decoded_ts)
Decode timestamp (TS) value with some LSB bits of the unscaled value.
Definition: decomp_scaled_rtp_ts.c:261
The scaled RTP Timestamp decoding context.
Definition: decomp_scaled_rtp_ts.c:52
void(* rohc_trace_callback2_t)(void *const priv_ctxt, const rohc_trace_level_t level, const rohc_trace_entity_t entity, const int profile, const char *const format,...)
The function prototype for the trace callback.
Definition: rohc_traces.h:118
void ts_update_context(struct ts_sc_decomp *const ts_sc, const uint32_t ts, const uint16_t sn)
Store a new timestamp.
Definition: decomp_scaled_rtp_ts.c:178
struct ts_sc_decomp * d_create_sc(rohc_trace_callback2_t trace_cb, void *const trace_cb_priv)
Create the scaled RTP Timestamp decoding context.
Definition: decomp_scaled_rtp_ts.c:108
uint32_t ts
Definition: decomp_scaled_rtp_ts.c:66
uint16_t sn
The sequence number (SN)
Definition: decomp_scaled_rtp_ts.c:73
uint32_t ts_stride
The last computed or received TS_STRIDE value (validated by CRC)
Definition: decomp_scaled_rtp_ts.c:55
void rohc_ts_scaled_free(struct ts_sc_decomp *const ts_scaled)
Destroy the given ts_sc_decomp object.
Definition: decomp_scaled_rtp_ts.c:163
bool ts_decode_scaled_bits(struct ts_sc_decomp *const ts_sc, const uint32_t ts_scaled_bits, const size_t ts_scaled_bits_nr, uint32_t *const decoded_ts)
Decode timestamp (TS) value with some LSB bits of the TS_SCALED value.
Definition: decomp_scaled_rtp_ts.c:353
ROHC definitions for traces.
uint32_t ts_deduce_from_sn(struct ts_sc_decomp *const ts_sc, const uint16_t sn)
Deduct timestamp (TS) from Sequence Number (SN)
Definition: decomp_scaled_rtp_ts.c:434