SixteenBitUnpacker.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2023 by Andrew Jameson
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // dspsr/Kernel/Classes/dsp/SixteenBitUnpacker.h
10 
11 #ifndef __SixteenBitUnpacker_h
12 #define __SixteenBitUnpacker_h
13 
14 #include "dsp/HistUnpacker.h"
15 #include "dsp/BitTable.h"
16 
17 namespace dsp {
18 
20  class SixteenBitUnpacker: public HistUnpacker
21  {
22  public:
23 
25  SixteenBitUnpacker (BitTable::Type encoding, const char* name = "SixteenBitUnpacker");
26 
27  protected:
28 
29  void unpack ();
30 
31  BitTable::Type encoding;
32 
33  private:
34 
35  void unpack (uint64_t ndat, const int16_t * from, const unsigned nskip, float* into, const unsigned fskip, unsigned long* hist);
36 
37  };
38 }
39 
40 #endif
SixteenBitUnpacker(BitTable::Type encoding, const char *name="SixteenBitUnpacker")
Null constructor.
Definition: SixteenBitUnpacker.C:15
Bit unpacker that keeps a histogram and optimal statistics.
Definition: HistUnpacker.h:25
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
std::string name
Operation name.
Definition: Operation.h:153
Type
Interpretation of the bits in each value.
Definition: BitTable.h:38
static bool verbose
Global verbosity flag.
Definition: Operation.h:48
void unpack()
The unpacking routine.
Definition: SixteenBitUnpacker.C:23
virtual void set_nstate(unsigned nstate)
Set the number of states in the histogram.
Definition: HistUnpacker.C:88

Generated using doxygen 1.8.17