ROHC compression/decompression library
|
Test the robustness of the compression API. More...
#include "rohc_comp.h"
#include "rohc_decomp.h"
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <assert.h>
Defines | |
#define | trace(is_verbose, format,...) |
#define | CHECK(condition) |
Functions | |
int | main (int argc, char *argv[]) |
Test the robustness of the compression API. |
Test the robustness of the compression API.
#define CHECK | ( | condition | ) |
do { \ trace(verbose, "test '%s'\n", #condition); \ fflush(stdout); \ assert(condition); \ } while(0)
Improved assert()
Referenced by main().
#define trace | ( | is_verbose, | |
format, | |||
... | |||
) |
do { \ if(is_verbose) { \ printf(format, ##__VA_ARGS__); \ } \ } while(0)
Print trace on stdout only in verbose mode
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Test the robustness of the compression API.
argc | The number of command line arguments |
argv | The command line arguments |
References CHECK, FO, IR, len, rohc_comp::mrru, rohc_activate_profile(), rohc_alloc_compressor(), rohc_c_is_enabled(), rohc_c_set_enable(), rohc_c_set_large_cid(), rohc_c_set_max_cid(), rohc_c_using_small_cid(), rohc_comp_add_rtp_port(), rohc_comp_force_contexts_reinit(), rohc_comp_get_cid_type(), rohc_comp_get_general_info(), rohc_comp_get_last_packet_info2(), rohc_comp_get_max_cid(), rohc_comp_get_mrru(), rohc_comp_get_segment(), rohc_comp_get_state_descr(), rohc_comp_piggyback_feedback(), rohc_comp_remove_rtp_port(), rohc_comp_reset_rtp_ports(), rohc_comp_set_mrru(), rohc_comp_set_periodic_refreshes(), rohc_comp_set_random_cb(), rohc_comp_set_rtp_detection_cb(), rohc_comp_set_traces_cb(), rohc_comp_set_wlsb_window_width(), rohc_compress2(), ROHC_ERROR, rohc_feedback_flush(), rohc_feedback_remove_locked(), rohc_feedback_unlock(), rohc_free_compressor(), ROHC_LARGE_CID_MAX, ROHC_OK, ROHC_PROFILE_GENERAL, ROHC_PROFILE_IP, ROHC_SMALL_CID_MAX, SO, and trace.