Instrument Neutral Distributed Interface INDI  1.6.0
Public Types | Public Member Functions | Protected Attributes | List of all members
INDI::StreamManager Class Reference

#include <streammanager.h>

Public Types

Public Member Functions

 StreamManager (CCD *mainCCD)
 ~StreamManager ()
virtual void ISGetProperties (const char *dev)
virtual bool ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int n)
virtual bool ISNewText (const char *dev, const char *name, char *texts[], char *names[], int n)
virtual bool ISNewNumber (const char *dev, const char *name, double values[], char *names[], int n)
virtual bool initProperties ()
virtual bool updateProperties ()
virtual bool saveConfigItems (FILE *fp)
void newFrame (const uint8_t *buffer, uint32_t nbytes)
 newFrame CCD drivers call this function when a new frame is received. It is then streamed, or recorded, or both according to the settings in the streamer. More...
bool setStream (bool enable)
 setStream Enables (starts) or disables (stops) streaming. More...
RecorderInterfacegetRecorder ()
bool isDirectRecording ()
bool isStreaming ()
bool isRecording ()
bool isBusy ()
uint8_t getTargetFPS ()
uint8_t * getDownscaleBuffer ()
uint32_t getDownscaleBufferSize ()
const char * getDeviceName ()
void setSize (uint16_t width, uint16_t height)
bool setPixelFormat (INDI_PIXEL_FORMAT pixelFormat, uint8_t pixelDepth=8)
void getStreamFrame (uint16_t *x, uint16_t *y, uint16_t *w, uint16_t *h)
bool close ()

Protected Attributes

CCDcurrentCCD = nullptr

Detailed Description

Definition at line 95 of file streammanager.h.

Member Enumeration Documentation

anonymous enum

Definition at line 98 of file streammanager.h.

Constructor & Destructor Documentation

StreamManager::StreamManager ( CCD mainCCD)

Definition at line 38 of file streammanager.cpp.

StreamManager::~StreamManager ( )

Definition at line 74 of file streammanager.cpp.

Member Function Documentation

bool StreamManager::close ( )

Definition at line 370 of file streammanager.cpp.

const char * StreamManager::getDeviceName ( )

Definition at line 81 of file streammanager.cpp.

uint8_t* INDI::StreamManager::getDownscaleBuffer ( )

Definition at line 138 of file streammanager.h.

uint32_t INDI::StreamManager::getDownscaleBufferSize ( )

Definition at line 139 of file streammanager.h.

RecorderInterface* INDI::StreamManager::getRecorder ( )

Definition at line 131 of file streammanager.h.

void StreamManager::getStreamFrame ( uint16_t *  x,
uint16_t *  y,
uint16_t *  w,
uint16_t *  h 

Definition at line 911 of file streammanager.cpp.

uint8_t INDI::StreamManager::getTargetFPS ( )

Definition at line 136 of file streammanager.h.

bool StreamManager::initProperties ( )

Definition at line 86 of file streammanager.cpp.

bool INDI::StreamManager::isBusy ( )

Definition at line 135 of file streammanager.h.

bool INDI::StreamManager::isDirectRecording ( )

Definition at line 132 of file streammanager.h.

void StreamManager::ISGetProperties ( const char *  dev)

Definition at line 155 of file streammanager.cpp.

bool StreamManager::ISNewNumber ( const char *  dev,
const char *  name,
double  values[],
char *  names[],
int  n 

Definition at line 767 of file streammanager.cpp.

bool StreamManager::ISNewSwitch ( const char *  dev,
const char *  name,
ISState states,
char *  names[],
int  n 

Definition at line 615 of file streammanager.cpp.

bool StreamManager::ISNewText ( const char *  dev,
const char *  name,
char *  texts[],
char *  names[],
int  n 

Definition at line 745 of file streammanager.cpp.

bool INDI::StreamManager::isRecording ( )

Definition at line 134 of file streammanager.h.

bool INDI::StreamManager::isStreaming ( )

Definition at line 133 of file streammanager.h.

void StreamManager::newFrame ( const uint8_t *  buffer,
uint32_t  nbytes 

newFrame CCD drivers call this function when a new frame is received. It is then streamed, or recorded, or both according to the settings in the streamer.

Definition at line 214 of file streammanager.cpp.

bool StreamManager::saveConfigItems ( FILE *  fp)

Definition at line 902 of file streammanager.cpp.

bool StreamManager::setPixelFormat ( INDI_PIXEL_FORMAT  pixelFormat,
uint8_t  pixelDepth = 8 

Definition at line 375 of file streammanager.cpp.

void StreamManager::setSize ( uint16_t  width,
uint16_t  height 

Definition at line 340 of file streammanager.cpp.

bool StreamManager::setStream ( bool  enable)

setStream Enables (starts) or disables (stops) streaming.

enableTrue to enable, false to disable
True if operation is successful, false otherwise.

Definition at line 835 of file streammanager.cpp.

bool StreamManager::updateProperties ( )

Definition at line 174 of file streammanager.cpp.

Member Data Documentation

CCD* INDI::StreamManager::currentCCD = nullptr

Definition at line 149 of file streammanager.h.

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