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

Test Least Significant Bits (LSB) encoding/decoding at wraparound. More...

#include "wlsb.h"
#include "lsb_decode.h"
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <assert.h>
Include dependency graph for test_lsb_decode_wraparound.c:

Defines

#define ROHC_WLSB_WINDOW_WIDTH   4U
#define trace(is_verbose, format,...)

Functions

int main (int argc, char *argv[])
 Test LSB encoding/decoding at wraparound.

Detailed Description

Test Least Significant Bits (LSB) encoding/decoding at wraparound.

Author:
Didier Barvaux <didier@barvaux.org>

Define Documentation

#define ROHC_WLSB_WINDOW_WIDTH   4U

The width of the W-LSB sliding window

#define trace (   is_verbose,
  format,
  ... 
)
Value:
do { \
                if(is_verbose) { \
                        printf(format, ##__VA_ARGS__); \
                } \
        } while(0)

Print trace on stdout only in verbose mode

Referenced by main().


Function Documentation

int main ( int  argc,
char *  argv[] 
)

Test LSB encoding/decoding at wraparound.

Parameters:
argcThe number of command line arguments
argvThe command line arguments
Returns:
0 if test succeeds, non-zero if test fails

References ROHC_LSB_SHIFT_IP_ID, ROHC_LSB_SHIFT_RTP_SN, ROHC_LSB_SHIFT_RTP_TS, ROHC_LSB_SHIFT_SN, and trace.