GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LSEC / V7-1-1 > lsec / rhel6-64
#include <compress.h>
#include <LSEC_p.h>
#include <LDT/APE.h>
#include <LDT/HDE.h>
Functions | |
| static __inline void | LSEC_compress (LSEC_compression *cpr, void *ctx, unsigned int sym) |
| static __inline unsigned | LSEC_compressH (LSEC_compression *cpr, int sym, unsigned int *buf, unsigned int pos) |
| Encode a symbol using the Huffman table supplied by a compression. | |
| static __inline void | LSEC_histogram (LSEC_compression *cpr, int sym) |
| Increment the bin of a histogram. | |
| static __inline void | LSEC_histogramH (LSEC_compression *cpr, int sym) |
| Increment the bin of a Huffman histogram. | |
| void | LSEC_compress (LSEC_compression *cpr, void *ctx, unsigned sym) |
| Encode a symbol using the frequency and lookup table supplied by a compression. | |
$Id: compress.ic,v 1.9 2011/03/27 17:48:20 saxton Exp $
| void LSEC_compress | ( | LSEC_compression * | cpr, | |
| void * | ctx, | |||
| unsigned | sym | |||
| ) |
Encode a symbol using the frequency and lookup table supplied by a compression.
This function does not return errors since propogation of those errors to a point in LSEC where reasonable decisions about error handling can be made is problematic. Instead, errors are latched and can be checked using LSEC_checkCompression.
| cpr | Pointer to an initialsed, populated and processed compression structure | |
| ctx | Context, pointer to the arithmetic encoder context | |
| sym | Symbol to compress |
References _LSEC_compression::encerr, _LSEC_compression::fwlu, _LSEC_compression::mask, _LSEC_compression::ovrflw, and _LSEC_compression::table.
| unsigned LSEC_compressH | ( | LSEC_compression * | cpr, | |
| int | sym, | |||
| unsigned int * | buf, | |||
| unsigned int | pos | |||
| ) | [static] |
Encode a symbol using the Huffman table supplied by a compression.
This function does not check for errors since only a programming error could cause one, and speed is of the essence.
| cpr | Pointer to an initialsed, populated and processed compression structure | |
| sym | Symbol to compress | |
| buf | The address of the buffer to hold the encoded value. | |
| pos | The current bit position within the buffer. |
References _LSEC_compression::hde.
Referenced by LSEC_encodeCal().
| void LSEC_histogram | ( | LSEC_compression * | cpr, | |
| int | sym | |||
| ) | [static] |
Increment the bin of a histogram.
| cpr | Pointer to an allocated, initialised, compression structure | |
| sym | Symbol to add to the histogram |
References _LSEC_compression::hist, _LSEC_compression::mask, and _LSEC_compression::ovrflw.
Referenced by LSEC_histoCalMeans().
| void LSEC_histogramH | ( | LSEC_compression * | cpr, | |
| int | sym | |||
| ) | [static] |
Increment the bin of a Huffman histogram.
| cpr | Pointer to an allocated, initialised, compression structure | |
| sym | Symbol to add to the histogram |
References _LSEC_compression::hist0.
Referenced by LSEC_histogramCal().
1.5.8