Instrument Neutral Distributed Interface INDI  2.0.2
Public Member Functions | Protected Member Functions | List of all members
DSP::Spectrum Class Reference

#include <transforms.h>

Inheritance diagram for DSP::Spectrum:
DSP::Interface

Public Member Functions

 Spectrum (INDI::DefaultDevice *dev)
 
virtual bool processBLOB (uint8_t *out, uint32_t dims, int *sizes, int bits_per_sample) override
 processBLOB Propagate to Callback and generate BLOBs for parent device. More...
 
- Public Member Functions inherited from DSP::Interface
virtual void ISGetProperties (const char *dev)
 
virtual bool ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int n)
 
virtual bool ISNewNumber (const char *dev, const char *name, double values[], char *names[], int n)
 
virtual bool ISNewText (const char *dev, const char *name, char *texts[], char *names[], int n)
 
virtual bool ISNewBLOB (const char *dev, const char *name, int sizes[], int blobsizes[], char *blobs[], char *formats[], char *names[], int n)
 
virtual bool saveConfigItems (FILE *fp)
 
virtual bool updateProperties ()
 
void setSizes (uint32_t num, int *sizes)
 setSizes Set the returned file dimensions and corresponding sizes. More...
 
void getSizes (uint32_t *num, int **sizes)
 getSizes Get the returned file dimensions and corresponding sizes. More...
 
void setBPS (int bps)
 setBPS Set the returned file bit depth/sample size. More...
 
int getBPS ()
 getBPS Get the returned file bit depth/sample size. More...
 
void setCaptureFileExtension (const char *ext)
 setIntegrationFileExtension Set the returned file extension. More...
 

Protected Member Functions

 ~Spectrum ()
 
- Protected Member Functions inherited from DSP::Interface
virtual void Activated ()
 Activated Called after activation from client application. More...
 
virtual void Deactivated ()
 Deactivated Called after deactivation from client application. More...
 
virtual uint8_t * Callback (uint8_t *buf, uint32_t ndims, int *dims, int bits_per_sample)
 Callback Called by processBLOB. More...
 
dsp_stream_p loadFITS (char *buf, int len)
 loadFITS Converts FITS data into a dsp_stream structure pointer. More...
 
 Interface (INDI::DefaultDevice *dev, Type type=DSP_NONE, const char *name="DSP_PLUGIN", const char *label="DSP Plugin")
 
virtual ~Interface ()
 
const char * getDeviceName ()
 
bool setStream (void *buf, uint32_t dims, int *sizes, int bits_per_sample)
 
bool setMagnitude (void *buf, uint32_t dims, int *sizes, int bits_per_sample)
 
bool setPhase (void *buf, uint32_t dims, int *sizes, int bits_per_sample)
 
bool setReal (void *buf, uint32_t dims, int *sizes, int bits_per_sample)
 
bool setImaginary (void *buf, uint32_t dims, int *sizes, int bits_per_sample)
 
uint8_t * getStream ()
 
uint8_t * getMagnitude ()
 
uint8_t * getPhase ()
 
uint8_t * getReal ()
 
uint8_t * getImaginary ()
 
uint8_t * getBuffer (dsp_stream_p in, uint32_t *dims, int **sizes)
 

Additional Inherited Members

- Public Types inherited from DSP::Interface
enum  Type {
  DSP_NONE = 0 , DSP_DFT , DSP_IDFT , DSP_CONVOLUTION ,
  DSP_WAVELETS , DSP_SPECTRUM , DSP_HISTOGRAM
}
 
- Protected Attributes inherited from DSP::Interface
bool PluginActive
 
IBLOBVectorProperty FitsBP
 
IBLOB FitsB
 
ISwitchVectorProperty ActivateSP
 
ISwitch ActivateS [2]
 
INumberVectorProperty EqNP
 
INumber EqN [2]
 
ITextVectorProperty ActiveDeviceTP
 
IText ActiveDeviceT [4] {}
 
INDI::DefaultDevicem_Device { nullptr }
 
const char * m_Name { nullptr }
 
const char * m_Label { nullptr }
 
Type m_Type { DSP_NONE }
 
dsp_stream_p stream
 

Detailed Description

Definition at line 61 of file transforms.h.

Constructor & Destructor Documentation

◆ Spectrum()

DSP::Spectrum::Spectrum ( INDI::DefaultDevice dev)

Definition at line 116 of file transforms.cpp.

◆ ~Spectrum()

DSP::Spectrum::~Spectrum ( )
protected

Definition at line 120 of file transforms.cpp.

Member Function Documentation

◆ processBLOB()

bool DSP::Spectrum::processBLOB ( uint8_t *  buf,
uint32_t  ndims,
int *  dims,
int  bits_per_sample 
)
overridevirtual

processBLOB Propagate to Callback and generate BLOBs for parent device.

Parameters
bufThe input buffer
ndimsNumber of the dimensions of the input buffer
dimsSizes of the dimensions of the input buffer
bits_per_sampleoriginal bit depth of the input buffer
Returns
True if successful, false otherwise.

Reimplemented from DSP::Interface.

Definition at line 124 of file transforms.cpp.


The documentation for this class was generated from the following files: