11 #ifndef __FourBitTwo_h
12 #define __FourBitTwo_h
14 #include "dsp/NLowLookup.h"
19 class FourBitTwo : public NLowLookup
28 template< class Iterator>
29 inline void prepare ( const Iterator& input, unsigned ndat) { }
31 template< class Iterator>
32 inline void unpack (Iterator& input, unsigned ndat,
33 float* output, unsigned output_incr, unsigned& nlow)
35 const unsigned ndat2 = ndat/2;
40 for ( unsigned idat = 0; idat < ndat2; idat++)
42 unsigned index = *input;
47 *output = lookup[ index*2 ]; output += output_incr;
48 *output = lookup[ index*2 + 1 ]; output += output_incr;
50 nlow += nlow_lookup [index];
Contains all Baseband Data Reduction Library classes. Definition: ASCIIObservation.h:17
Manage now lookup table for ExcisionUnpacker derived classes. Definition: NLowLookup.h:24
Look-up table for converting N-bit digitized to floating point numbers. Definition: BitTable.h:22
Unpack two 4-bit samples per byte from an array of bytes. Definition: FourBitTwo.h:24
Generated using doxygen 1.8.17
|