GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LSEC / dev

Constituent: lsec     Tag: mcp750


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 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
compress.ic,v 1.3 2008/07/16 20:54:51 saxton Exp

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 Jul 17 01:16:35 2008 by  doxygen 1.4.4