ROHC compression/decompression library
Defines | Functions | Variables
d_rtp.c File Reference

ROHC decompression context for the RTP profile. More...

#include "d_rtp.h"
#include "rohc_traces.h"
#include "rohc_bit_ops.h"
#include "rohc_debug.h"
#include "ts_sc_decomp.h"
#include "sdvl.h"
#include "crc.h"
#include "decode.h"
#include "protocols/udp.h"
#include "protocols/rtp.h"
#include "config.h"
Include dependency graph for d_rtp.c:

Defines

#define RTP_CONST_DYN_PART_SIZE   9
 The size (in bytes) of the constant RTP dynamic part.

Functions

void * d_rtp_create (void)
 Create the RTP decompression context.

Variables

struct d_profile d_rtp_profile
 Define the decompression part of the RTP profile as described in the RFC 3095.

Detailed Description

ROHC decompression context for the RTP profile.

Author:
David Moreau from TAS
Didier Barvaux <didier.barvaux@toulouse.viveris.com>
Didier Barvaux <didier@barvaux.org>

Define Documentation

#define RTP_CONST_DYN_PART_SIZE   9

The size (in bytes) of the constant RTP dynamic part.

According to RFC3095 section 5.7.7.6: 1 (flags V, P, RX, CC) + 1 (flags M, PT) + 2 (RTP SN) + 4 (RTP TS) + 1 (CSRC list) = 9 bytes

The size of the Generic CSRC list field is considered constant because generic CSRC list is not supported yet and thus 1 byte of zero is used.


Function Documentation

void* d_rtp_create ( void  )

Create the RTP decompression context.

This function is one of the functions that must exist in one profile for the framework to work.

Returns:
The newly-created RTP decompression context

References d_create_sc(), d_generic_create(), d_generic_destroy(), rohc_debugf, ROHC_IPPROTO_UDP, rohc_lsb_free(), rohc_lsb_new(), ROHC_LSB_SHIFT_RTP_SN, rtp_compute_crc_dynamic(), rtp_compute_crc_static(), d_rtp_context::ts_scaled_ctxt, d_rtp_context::udp_checksum_present, and zfree.


Variable Documentation

Initial value:
{
        ROHC_PROFILE_RTP,       
        "RTP / Decompressor",   
        d_generic_decode,       
        d_rtp_create,
        d_rtp_destroy,
        d_generic_get_sn,
}

Define the decompression part of the RTP profile as described in the RFC 3095.