GenericEightBitUnpacker.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2012 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // dspsr/Kernel/Classes/dsp/GenericEightBitUnpacker.h
10 
11 #ifndef __GenericEightBitUnpacker_h
12 #define __GenericEightBitUnpacker_h
13 
14 #include "dsp/EightBitUnpacker.h"
15 
16 namespace dsp {
17 
19  class GenericEightBitUnpacker : public EightBitUnpacker
20  {
21 
22  public:
23 
26 
28  bool get_device_supported (Memory*) const;
29 
31  void set_device (Memory*);
32 
33  protected:
34 
36  virtual bool matches (const Observation* observation);
37 
39  virtual void unpack ();
40 
41  BitSeries staging;
42  void* gpu_stream;
43  void unpack_on_gpu ();
44  };
45 
46 }
47 
48 #endif // !defined(__GenericEightBitUnpacker_h)
49 
virtual void set_device(Memory *)
Set the device on which the unpacker will operate.
Definition: Unpacker.C:79
virtual void unpack()
Override BitUnpacker::unpack.
Definition: GenericEightBitUnpacker.C:47
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
Converts 8-bit digitised samples to floating point.
Definition: EightBitUnpacker.h:24
unsigned get_nbit() const
Return the number of bits per value.
Definition: Observation.h:95
void set_device(Memory *)
Set the device on which the unpacker will operate.
Definition: GenericEightBitUnpacker.C:73
Manages CUDA device memory allocation and destruction.
Definition: MemoryCUDA.h:32
bool get_device_supported(Memory *) const
Return true if the unpacker can operate on the specified device.
Definition: GenericEightBitUnpacker.C:61
Stores information about digital, band-limited, time-varying signals.
Definition: Observation.h:33
GenericEightBitUnpacker()
Constructor.
Definition: GenericEightBitUnpacker.C:26
Look-up table for converting N-bit digitized to floating point numbers.
Definition: BitTable.h:22
virtual bool matches(const Observation *observation)
Return true if this unpacker can convert the Observation.
Definition: GenericEightBitUnpacker.C:42
Reference::To< BitTable > table
The bit table generator
Definition: BitUnpacker.h:55
virtual void unpack()
Unpack all channels, polarizations, real/imag, etc.
Definition: BitUnpacker.C:48
Pure virtual base class of objects that manage memory allocation and destruction.
Definition: Memory.h:23
virtual bool get_device_supported(Memory *) const
Return true if the unpacker can operate on the specified device.
Definition: Unpacker.C:73

Generated using doxygen 1.8.17