GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LDT / dev > encdec / rhel5-32


Interface   Data Structures   File List   Data Fields   Globals  

RLD.h File Reference

Run length decoding interface. More...

#include <LDT/BFU.h>

Functions

BFU RLD_decode (BFU bfu, const unsigned int *buf, unsigned int *new_pos, int cnt)
 Decodes the run-length encoded value from the input bit stream.


Detailed Description

Run length decoding interface.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: RLD.h,v 1.2 2011/03/25 23:57:13 russell Exp $

Function Documentation

BFU RLD_decode ( BFU  bfu,
const unsigned int *  buf,
unsigned int *  new_pos,
int  cnt 
)

Decodes the run-length encoded value from the input bit stream.

Returns:
The decoded value and updated cur value (only of interest to pass on)
Parameters:
bfu The decoding context (contains the current word being decoded + the current decoding bit position).
buf The bit buffer
new_pos Returned as a pointer to the new position
cnt The number of bits in the output word. This must match the value used when encoding the value. This must be a value between 1 and 32.

References _bfu_extractR, _bfu_get_pos, and _BFU::val.


Generated on Thu Feb 9 12:20:46 2012 by  doxygen 1.5.8