GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LDT / V0-0-0
Constituent: encdec_unit_test     Tag: linux-gcc
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include "PBS/TMR.h"
#include "LDT/APM.h"
#include "LDT/APE.h"
#include "LDT/APD.h"
#include <math.h>
Include dependency graph for encdec_unit_test.c:
Functions | |
int | ap_test (int argc, char **argv) |
Tests the Arithmetic Probability Encoding/Decoding for byte-sized tables. | |
int | ap_cheap_test (const char *banner, const int *freqs, int nfreqs, const unsigned char *symbols, int nsymbols, unsigned int *table) |
Does a cheap test of the Arithmetic Probability Encoding using a byte-wide table. | |
int | ap_cheap_test1 (void) |
Cheap test of the encode/decode of a test distribution. | |
int | ap_cheap_test2 (void) |
Cheap test of the encode/decode of a test distribution. | |
int | ap_buffer_test (void) |
Does a cheap test of the Arithmetic Probability Encoding filling a buffer, encoding it, then decoding it. | |
int | ap_composite_test (void) |
Composite test of byte encoder. | |
int | ap_file_test (const char *fileName) |
Tests the encoding/decoding of the specified file. | |
int | ap_self_encdec (const char *banner, const unsigned char *symbols, int nsymbols) |
Encodes, then decodes the specified set of symbols. | |
int | fill_buffer (unsigned char *buffer) |
Fill a buffer with a semi-nontrivial pattern. | |
unsigned const char * | get_contents (const char *fileName, int *rsize) |
Reads in the specified file. | |
void | report_results (const char *banner, int encode_bit_count, double entropy_bit_count, int original_bit_count, int decode_bit_count, TMR_tick encode_time, TMR_tick decode_time, unsigned int status) |
Standard report of the results of an encode/decode. | |
double | get_byte_esize (const unsigned int *freqs, int nfreqs, const unsigned char *samples, int nsamples) |
Calculates the size, in bits, of the sample distribution based on the specified frequency table. | |
int | main (int argc, char **argv) |
Main program, it takes no arguments. | |
Variables | |
const unsigned int | Freqs [] |
Frequency distribution used in many of the tests. |
CVS $Id: encdec_unit_test.c,v 1.1.1.1 2005/09/23 06:41:07 russell Exp $
|
Does a cheap test of the Arithmetic Probability Encoding filling a buffer, encoding it, then decoding it.
|
Here is the call graph for this function:
|
Does a cheap test of the Arithmetic Probability Encoding using a byte-wide table.
|
Here is the call graph for this function:
|
Cheap test of the encode/decode of a test distribution.
|
Here is the call graph for this function:
|
Cheap test of the encode/decode of a test distribution.
|
Here is the call graph for this function:
|
Composite test of byte encoder.
|
Here is the call graph for this function:
|
Tests the encoding/decoding of the specified file.
|
Here is the call graph for this function:
|
Encodes, then decodes the specified set of symbols.
|
Here is the call graph for this function:
|
Tests the Arithmetic Probability Encoding/Decoding for byte-sized tables.
|
Here is the call graph for this function:
|
Fill a buffer with a semi-nontrivial pattern.
|
|
Calculates the size, in bits, of the sample distribution based on the specified frequency table.
|
|
Reads in the specified file.
|
|
Main program, it takes no arguments.
|
Here is the call graph for this function:
|
Standard report of the results of an encode/decode.
|
|
Initial value: { 1195, 190, 102, 160, 187, 64, 157, 405, 1 }
|