ROHC compression/decompression library
Data Fields
rohc_comp Struct Reference

The ROHC compressor. More...

#include <rohc_comp_internals.h>

Collaboration diagram for rohc_comp:
Collaboration graph
[legend]

Data Fields

int enabled
 Whether the compressor is enabled or not.
struct medium medium
struct c_contextcontexts
int num_contexts_used
int profiles [C_NUM_PROFILES]
 Which profiles are enabled and with one are not?
unsigned char crc_table_2 [256]
unsigned char crc_table_3 [256]
unsigned char crc_table_6 [256]
unsigned char crc_table_7 [256]
unsigned char crc_table_8 [256]
struct rohc_feedback feedbacks [FEEDBACK_RING_SIZE]
size_t feedbacks_first
size_t feedbacks_first_unlocked
size_t feedbacks_next
 The index of the next empty location in the feedback ring.
unsigned char rru [ROHC_MAX_MRRU]
size_t rru_off
size_t rru_len
unsigned int rtp_ports [MAX_RTP_PORTS]
rohc_rtp_detection_callback_t rtp_callback
void * rtp_private
int num_packets
int total_uncompressed_size
int total_compressed_size
struct c_contextlast_context
rohc_comp_random_cb_t random_cb
void * random_cb_ctxt
size_t wlsb_window_width
size_t periodic_refreshes_ir_timeout
size_t periodic_refreshes_fo_timeout
size_t mrru
int max_header_size
int connection_type
rohc_trace_callback_t trace_callback

Detailed Description

The ROHC compressor.


Field Documentation

The connection type (currently not used)

The array of compression contexts that use the compressor

Referenced by rohc_comp_force_contexts_reinit(), and rohc_comp_remove_rtp_port().

unsigned char rohc_comp::crc_table_2[256]

The table to enable fast CRC-2 computation

Referenced by rohc_alloc_compressor().

unsigned char rohc_comp::crc_table_3[256]

The table to enable fast CRC-3 computation

Referenced by code_UO0_packet(), code_UO1_packet(), and rohc_alloc_compressor().

unsigned char rohc_comp::crc_table_6[256]

The table to enable fast CRC-6 computation

Referenced by code_UO2_packet(), and rohc_alloc_compressor().

unsigned char rohc_comp::crc_table_7[256]

The table to enable fast CRC-7 computation

Referenced by code_UO2_packet(), and rohc_alloc_compressor().

unsigned char rohc_comp::crc_table_8[256]

The table to enable fast CRC-8 computation

Referenced by c_generic_feedback(), code_IR_DYN_packet(), code_IR_packet(), and rohc_alloc_compressor().

Whether the compressor is enabled or not.

The compressor is enabled by default and may be disabled by user.

Referenced by rohc_alloc_compressor(), rohc_c_is_enabled(), rohc_c_set_enable(), and rohc_c_statistics().

The index of the oldest feedback in the feedback ring

Referenced by rohc_alloc_compressor(), rohc_comp_piggyback_feedback(), rohc_feedback_remove_locked(), and rohc_feedback_unlock().

The index of the oldest unlocked feedback in the feedback ring

Referenced by rohc_alloc_compressor(), rohc_feedback_remove_locked(), and rohc_feedback_unlock().

The index of the next empty location in the feedback ring.

Referenced by rohc_alloc_compressor(), rohc_comp_piggyback_feedback(), and rohc_feedback_unlock().

Maximum header size that will be compressed (currently not used)

Referenced by rohc_c_set_header().

Maximum Reconstructed Reception Unit (currently not used)

Referenced by main(), rohc_alloc_compressor(), rohc_c_statistics(), rohc_comp_get_mrru(), rohc_comp_set_mrru(), and rohc_compress2().

The number of compression contexts in use in the array

Referenced by rohc_c_statistics(), rohc_comp_force_contexts_reinit(), rohc_comp_get_general_info(), rohc_comp_remove_rtp_port(), and rohc_compress2().

The maximal number of packets sent in > FO states (= SO state) before changing back the state to FO (periodic refreshes)

Referenced by periodic_down_transition(), and rohc_comp_set_periodic_refreshes().

The maximal number of packets sent in > IR states (= FO and SO states) before changing back the state to IR (periodic refreshes)

Referenced by periodic_down_transition(), and rohc_comp_set_periodic_refreshes().

Which profiles are enabled and with one are not?

A value of 1 means that profile is enabled, 0 means disabled.

Referenced by rohc_activate_profile(), rohc_alloc_compressor(), and rohc_c_statistics().

The user-defined callback for random numbers

Referenced by rohc_alloc_compressor(), and rohc_comp_set_random_cb().

Private data that will be given to the callback for random numbers

Referenced by rohc_alloc_compressor(), and rohc_comp_set_random_cb().

unsigned char rohc_comp::rru[ROHC_MAX_MRRU]

The remaining bytes of the Reconstructed Reception Unit (RRU) waiting to be split into segments

Referenced by rohc_comp_get_segment(), and rohc_compress2().

The number of the remaining bytes in the RRU buffer

Referenced by rohc_comp_get_segment(), and rohc_compress2().

The offset of the remaining bytes in the RRU buffer

Referenced by rohc_comp_get_segment(), and rohc_compress2().

The callback function used to detect RTP packet

Referenced by rohc_comp_set_rtp_detection_cb().

Pointer to an external memory area provided/used by the callback user

Referenced by rohc_comp_set_rtp_detection_cb().

The size of all the sent compressed ROHC packets

Referenced by rohc_alloc_compressor(), rohc_c_statistics(), rohc_comp_get_general_info(), and rohc_compress2().

The size of all the received uncompressed IP packets

Referenced by rohc_alloc_compressor(), rohc_c_statistics(), rohc_comp_get_general_info(), and rohc_compress2().

The callback function used to manage traces

Referenced by c_generic_create(), c_generic_encode(), rohc_alloc_compressor(), rohc_comp_set_traces_cb(), and rohc_compress2().

The width of the W-LSB sliding window

Referenced by c_generic_create(), c_generic_encode(), and rohc_comp_set_wlsb_window_width().


The documentation for this struct was generated from the following file: