GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LSEC / V6-1-0 > lsec / 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"

Functions

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


Detailed Description

The histogram and compress functions, as static inlines for efficiency.

Author:
James Swain & Owen Saxton
Id

Function Documentation

void LSEC_compress ( LSEC_compression cpr,
void *  ctx,
unsigned  sym 
) [inline, static]

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.

Parameters:
cpr Pointer to an initialsed, populated and processed compression structure
ctx Context, pointer to the arithmetic encoder context
sym Symbol to compress

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

Increment the bin of the histogram corresponding.

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.


Generated on Thu Aug 20 14:34:11 2009 by  doxygen 1.5.3