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

Constituent: encdec     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

RLD.c File Reference

Run length decoding routine. More...

#include "LDT/RLD.h"
#include "LDT/BFU.h"
#include "ffs.h"

Include dependency graph for RLD.c:


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 routine.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: RLD.c,v 1.1 2009/04/30 00:31:28 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.


Generated on Fri Jun 19 01:48:35 2009 by  doxygen 1.5.3