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

Constituent: test_rl     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

RLE.h File Reference

Run Length Encoding interface file. More...

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


Functions

unsigned int RLE_encode (unsigned int *buf, unsigned int pos, unsigned int w, int nbits)
int RLE_compare (unsigned int w, int nbits, int max)
unsigned int RLE_size (unsigned int w, int nbits)

Detailed Description

Run Length Encoding interface file.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id: RLE.h,v 1.1 2009/04/30 00:31:28 russell Exp $

Overview
Interface specification for routines to encode bit strings using a run length encoding method. The only twist added to the straight-forward encoding, is that only the necessary number of bits needed to encode the bit address are used. For example, when encoding a 32-bit value, the straight-forward run-length encoding would use a 5-bit address (representing the bit number) and a 1 bit stop/continue bit. However, when the number of bits left to encode is less than 16, one only needs 4 bits. Similarly, when the number of bits left to encode is less tha 8, one only needs 3 bits, etc, etc.
Warning:
As is usual in these encoding routines, encoding 0 is the user's responsibility. This is because many times a value of 0 has already been encoded as a side-effect of some larger encoding scheme.
Summary
The set of run length encoding routines is

Generated on Fri Jun 19 01:47:32 2009 by  doxygen 1.5.3