Instrument Neutral Distributed Interface INDI  2.0.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
 
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 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

 ~Convolution ()
 
void Activated () override
 Activated Called after activation from client application. More...
 
void Deactivated () override
 Deactivated Called after deactivation from client application. More...
 
- Protected Member Functions inherited from DSP::Interface
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 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 49 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 53 of file convolution.cpp.

◆ Deactivated()

void DSP::Convolution::Deactivated ( )
overrideprotectedvirtual

Deactivated Called after deactivation from client application.

Reimplemented from DSP::Interface.

Definition at line 59 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 65 of file convolution.cpp.

◆ processBLOB()

bool DSP::Convolution::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 91 of file convolution.cpp.


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