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

#include <convolution.h>

Inheritance diagram for DSP::Convolution:
DSP::Interface

Public Member Functions

 Convolution (INDI::DefaultDevice *dev)
 
bool ISNewBLOB (const char *dev, const char *name, int sizes[], int blobsizes[], char *blobs[], char *formats[], char *names[], int n) override
 
- 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 saveConfigItems (FILE *fp)
 
virtual bool updateProperties ()
 
bool processBLOB (uint8_t *buf, uint32_t ndims, int *dims, int bits_per_sample)
 processBLOB Propagate to Callback and generate BLOBs for parent device. More...
 
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...
 

Protected Member Functions

 ~Convolution ()
 
void Activated () override
 Activated Called after activation from client application. More...
 
void Deactivated () override
 Deactivated Called after deactivation from client application. More...
 
uint8_t * Callback (uint8_t *out, uint32_t dims, int *sizes, int bits_per_sample) override
 Callback Called by processBLOB. More...
 
- Protected Member Functions inherited from DSP::Interface
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 ()
 
void setStream (void *buf, uint32_t dims, int *sizes, int bits_per_sample)
 
uint8_t * getStream ()
 

Additional Inherited Members

- Public Types inherited from DSP::Interface
enum  Type {
  DSP_NONE = 0, DSP_DFT, DSP_IDFT, DSP_CONVOLUTION,
  DSP_SPECTRUM
}
 
- 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 31 of file convolution.h.

Constructor & Destructor Documentation

◆ Convolution()

DSP::Convolution::Convolution ( INDI::DefaultDevice dev)

Definition at line 42 of file convolution.cpp.

◆ ~Convolution()

DSP::Convolution::~Convolution ( )
protected

Definition at line 48 of file convolution.cpp.

Member Function Documentation

◆ Activated()

void DSP::Convolution::Activated ( )
overrideprotectedvirtual

Activated Called after activation from client application.

Reimplemented from DSP::Interface.

Definition at line 52 of file convolution.cpp.

◆ Callback()

uint8_t * DSP::Convolution::Callback ( uint8_t *  buf,
uint32_t  ndims,
int *  dims,
int  bits_per_sample 
)
overrideprotectedvirtual

Callback Called by processBLOB.

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
The processed buffer

Reimplemented from DSP::Interface.

Definition at line 84 of file convolution.cpp.

◆ Deactivated()

void DSP::Convolution::Deactivated ( )
overrideprotectedvirtual

Deactivated Called after deactivation from client application.

Reimplemented from DSP::Interface.

Definition at line 58 of file convolution.cpp.

◆ ISNewBLOB()

bool DSP::Convolution::ISNewBLOB ( const char *  dev,
const char *  name,
int  sizes[],
int  blobsizes[],
char *  blobs[],
char *  formats[],
char *  names[],
int  n 
)
overridevirtual

Reimplemented from DSP::Interface.

Definition at line 64 of file convolution.cpp.


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