GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LSEC / V6-0-0

Constituent: lsec_wb     Tag: sun-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:


Functions

static void LSEC_compress (LSEC_compression *cpr, void *ctx, unsigned sym)
 Encode the symbol using the frequency and lookup table supplied by cpr.
static void LSEC_histogram (LSEC_compression *cpr, unsigned sym)
 Increment the bin of the histogram corresponding to val.

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)

void LSEC_histogram LSEC_compression cpr,
unsigned  sym
[inline, static]
 

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 Wed Dec 5 02:49:54 2007 by  doxygen 1.4.4