|
ROHC compression/decompression library
|
Scaled RTP Timestamp decoding. More...
#include "rohc.h"

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. | |
Scaled RTP Timestamp decoding.
| void d_add_ts | ( | struct ts_sc_decomp * | ts_sc, |
| unsigned int | ts, | ||
| unsigned int | sn | ||
| ) |
Store a new timestamp.
| ts_sc | The ts_sc_decomp object |
| ts | The timestamp to add |
| sn | The 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.
| ts_sc | The ts_sc_decomp object |
| ts_stride | The 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 | ) |
Create the ts_sc_decomp object.
| ts_sc | The ts_sc_decomp object to create |
References ts_sc_decomp::old_sn, ts_sc_decomp::old_ts, ts_sc_decomp::sn, ts_sc_decomp::ts, ts_sc_decomp::ts_offset, ts_sc_decomp::ts_scaled, and ts_sc_decomp::ts_stride.
Referenced by d_rtp_create().
| 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.
| ts_sc | The ts_sc_decomp object |
| ts_scaled | The W-LSB-encoded TS_SCALED value |
| nb_bits | The number of bits of TS_SCALED (W-LSB) |
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)
| ts_sc | The ts_sc_decomp object |
| sn | The SN |
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 | ) |
Update a ts_sc_decomp object.
| ts_sc | The ts_sc_decomp object to update |
References d_lsb_sync_ref(), d_lsb_update(), ts_sc_decomp::lsb_ts_scaled, rohc_debugf, ts_sc_decomp::ts, ts_sc_decomp::ts_offset, ts_sc_decomp::ts_scaled, and ts_sc_decomp::ts_stride.
Referenced by d_add_ts().
1.7.6.1