GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LDT / V0-2-0

Constituent: encdec     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

HDE.h File Reference

Interface to the routines to encodes a distribution of symbols using a Huffman encoding technique. Routines are available to encode both the distribution itself and the resulting Huffman table. More...

This graph shows which files directly or indirectly include this file:


Functions

unsigned int HDE_encodeSS (unsigned int *buf, unsigned int pos, const unsigned short int *hist, int nbins, const short int *symbols, int nsymbols)
 Encodes the specified symbols symbols using the specified histogram of frequencies. Both the symbols and the histogram are presented as 16-bit values.

Detailed Description

Interface to the routines to encodes a distribution of symbols using a Huffman encoding technique. Routines are available to encode both the distribution itself and the resulting Huffman table.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id: HDE.h,v 1.1 2006/09/13 17:09:08 russell Exp $

Function Documentation

unsigned int HDE_encodeSS unsigned int *  buf,
unsigned int  pos,
const unsigned short int *  hist,
int  nbins,
const short int *  symbols,
int  nsymbols
 

Encodes the specified symbols symbols using the specified histogram of frequencies. Both the symbols and the histogram are presented as 16-bit values.

Returns:
The updated bit write position
Parameters:
buf The output buffer address
pos The current write bit offset
hist The frequency histogram
nbins The number of bins in the histogram
symbols The array of symbols
nsymbols The number of symbols


Generated on Thu Sep 14 09:19:13 2006 by  doxygen 1.4.4