Instrument Neutral Distributed Interface INDI
2.0.2
|
#include <transforms.h>
Public Member Functions | |
FourierTransform (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... | |
![]() | |
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 | |
~FourierTransform () | |
![]() | |
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 | |
![]() | |
enum | Type { DSP_NONE = 0 , DSP_DFT , DSP_IDFT , DSP_CONVOLUTION , DSP_WAVELETS , DSP_SPECTRUM , DSP_HISTOGRAM } |
![]() | |
bool | PluginActive |
IBLOBVectorProperty | FitsBP |
IBLOB | FitsB |
ISwitchVectorProperty | ActivateSP |
ISwitch | ActivateS [2] |
INumberVectorProperty | EqNP |
INumber | EqN [2] |
ITextVectorProperty | ActiveDeviceTP |
IText | ActiveDeviceT [4] {} |
INDI::DefaultDevice * | m_Device { nullptr } |
const char * | m_Name { nullptr } |
const char * | m_Label { nullptr } |
Type | m_Type { DSP_NONE } |
dsp_stream_p | stream |
Definition at line 30 of file transforms.h.
DSP::FourierTransform::FourierTransform | ( | INDI::DefaultDevice * | dev | ) |
Definition at line 35 of file transforms.cpp.
|
protected |
Definition at line 39 of file transforms.cpp.
|
overridevirtual |
processBLOB Propagate to Callback and generate BLOBs for parent device.
buf | The input buffer |
ndims | Number of the dimensions of the input buffer |
dims | Sizes of the dimensions of the input buffer |
bits_per_sample | original bit depth of the input buffer |
Reimplemented from DSP::Interface.
Definition at line 43 of file transforms.cpp.