GLAST/LAT >
DAQ and FSW >
FSW >
Doxygen Index >
LSEC / V6-0-0
Constituent: lsec     Tag: linux-gcc
Interface Data Structures File List Data Fields Globals
compress.ic File Reference
The histogram and compress functions, as static inlines for efficiency. More...
#include "compress_p.h"
#include "LDT/APE.h"
Include dependency graph for compress.ic:
This graph shows which files directly or indirectly include this file:
Detailed Description
The histogram and compress functions, as static inlines for efficiency.
- Author:
- James Swain -- jswain@slac.stanford.edu
Function Documentation
void LSEC_compress |
( |
LSEC_compression * |
cpr, |
|
|
void * |
ctx, |
|
|
unsigned |
sym |
|
) |
[inline, static] |
|
|
Encode the symbol using the frequency and lookup table supplied by cpr.
- Parameters:
-
| cpr | Pointer to an initialsed, populated and processed compression structure |
| ctx | Context, pointer to the arithmetic encoder context |
| sym | Symbol to compress |
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) |
|
Increment the bin of the histogram corresponding to val.
- Parameters:
-
| cpr | Pointer to an allocated, initialised, compression structure |
| sym | Symbol to add to the histogram |
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) |
Generated on Sun Jun 14 01:22:02 2009 by
1.4.4