ROHC compression/decompression library
Classes | Functions
ts_sc_decomp.h File Reference

Scaled RTP Timestamp decoding. More...

#include "rohc.h"
Include dependency graph for ts_sc_decomp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ts_sc_decomp
 Scaled RTP Timestamp decoding object. More...

Functions

void d_create_sc (struct ts_sc_decomp *ts_sc)
 Create the ts_sc_decomp object.
void d_add_ts (struct ts_sc_decomp *ts_sc, unsigned int ts, unsigned int sn)
 Store a new timestamp.
void d_add_ts_stride (struct ts_sc_decomp *ts_sc, int ts_stride)
 Store the new TS_STRIDE value.
unsigned int d_decode_ts (struct ts_sc_decomp *ts_sc, int ts_scaled, int nb_bits)
 Decode timestamp (TS) value with TS_SCALED value.
unsigned int ts_deducted (struct ts_sc_decomp *ts_sc, unsigned int sn)
 Deduct timestamp (TS) from Sequence Number (SN)
void update_ts_sc (struct ts_sc_decomp *ts_sc)
 Update a ts_sc_decomp object.

Detailed Description

Scaled RTP Timestamp decoding.

Author:
David Moreau from TAS

Function Documentation

void d_add_ts ( struct ts_sc_decomp ts_sc,
unsigned int  ts,
unsigned int  sn 
)

Store a new timestamp.

Parameters:
ts_scThe ts_sc_decomp object
tsThe timestamp to add
snThe Sequence Number of the current packet

References ts_sc_decomp::old_sn, ts_sc_decomp::old_ts, rohc_debugf, ts_sc_decomp::sn, sn, ts_sc_decomp::ts, and update_ts_sc().

Referenced by decode_uo0(), decode_uo1(), decode_uor2(), and rtp_decode_dynamic_rtp().

void d_add_ts_stride ( struct ts_sc_decomp ts_sc,
int  ts_stride 
)

Store the new TS_STRIDE value.

Parameters:
ts_scThe ts_sc_decomp object
ts_strideThe TS_STRIDE value to add

References rohc_debugf, and ts_sc_decomp::ts_stride.

Referenced by decode_extension3(), and rtp_decode_dynamic_rtp().

void d_create_sc ( struct ts_sc_decomp ts_sc)
unsigned int d_decode_ts ( struct ts_sc_decomp ts_sc,
int  ts_scaled,
int  nb_bits 
)

Decode timestamp (TS) value with TS_SCALED value.

Parameters:
ts_scThe ts_sc_decomp object
ts_scaledThe W-LSB-encoded TS_SCALED value
nb_bitsThe number of bits of TS_SCALED (W-LSB)
Returns:
The decoded TS

References d_get_lsb_ref(), d_lsb_decode(), ts_sc_decomp::lsb_ts_scaled, rohc_debugf, ts_sc_decomp::ts_offset, ts_sc_decomp::ts_scaled, and ts_sc_decomp::ts_stride.

Referenced by decode_extension3(), do_decode_uo0_and_uo1(), and do_decode_uor2().

unsigned int ts_deducted ( struct ts_sc_decomp ts_sc,
unsigned int  sn 
)

Deduct timestamp (TS) from Sequence Number (SN)

Parameters:
ts_scThe ts_sc_decomp object
snThe SN
Returns:
The decoded TS

References rohc_debugf, ts_sc_decomp::sn, timestamp, ts_sc_decomp::ts, ts_sc_decomp::ts_offset, ts_sc_decomp::ts_scaled, and ts_sc_decomp::ts_stride.

Referenced by decode_extension3(), do_decode_uo0_and_uo1(), and do_decode_uor2().

void update_ts_sc ( struct ts_sc_decomp ts_sc)