67 :
x(ccdChip.getSubX() / ccdChip.getBinX())
68 ,
y(ccdChip.getSubY() / ccdChip.getBinY())
69 ,
w(ccdChip.getSubW() / ccdChip.getBinX())
70 ,
h(ccdChip.getSubH() / ccdChip.getBinY())
77 ,
w(sensorInterface.getBufferSize() * 8 / sensorInterface.getBPS())
99 return other.
x !=
x || other.
y !=
y || other.
w !=
w || other.
h !=
h;
110 bool ISNewText(
const char * dev,
const char * name,
char * texts[],
char * names[],
int n);
111 bool ISNewSwitch(
const char * dev,
const char * name,
ISState * states,
char * names[],
int n);
112 bool ISNewNumber(
const char * dev,
const char * name,
double values[],
char * names[],
int n);
114 void newFrame(
const uint8_t * buffer, uint32_t nbytes, uint64_t timestamp);
121 void setSize(uint16_t width, uint16_t height);
130 static std::string
expand(
const std::string &fname,
const std::map<std::string, std::string> &patterns);
144 bool uploadStream(
const uint8_t *buffer, uint32_t nbytes);
150 bool recordStream(
const uint8_t *buffer, uint32_t nbytes,
double deltams, uint64_t timestamp);
152 void getStreamFrame(uint16_t * x, uint16_t * y, uint16_t * w, uint16_t * h)
const;
153 void setStreamFrame(uint16_t x, uint16_t y, uint16_t w, uint16_t h);
159 const uint8_t *srcBuffer,
160 const FrameInfo &srcFrameInfo,
173 void processTracking(
const uint8_t *buffer,
size_t width,
size_t height,
size_t originX,
size_t originY);
The CCDChip class provides functionality of a CCD Chip within a CCD.
Class to provide extended functionality for devices in addition to the functionality provided by INDI...
The EncoderInterface class is the base class for video streaming encoders.
The EncoderManager class contains a list of active supported encoders.
The FrameTracker class measures where a bright extended target (planet, Moon or Sun disk) sits in a v...
Provides generic container for INDI properties.
The RecorderInterface class is the base class for recorders.
The RecorderManager class contains a list of active supported recorders.
The SensorDevice class provides functionality of a Sensor Device within a Sensor.
bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n)
std::atomic< bool > isRecording
bool setPixelFormat(INDI_PIXEL_FORMAT pixelFormat, uint8_t pixelDepth)
INDI::PropertyNumber TrackingSettingsNP
INDI::PropertySwitch RecordStreamSP
bool hasStreamingExposure
static std::string expand(const std::string &fname, const std::map< std::string, std::string > &patterns)
void setStreamFrame(uint16_t x, uint16_t y, uint16_t w, uint16_t h)
bool trackingFormatWarned
INDI::PropertySwitch EncoderSP
std::atomic< bool > isStreaming
std::atomic< bool > isTracking
INDI::PropertySwitch StreamSP
static void subframe(const uint8_t *srcBuffer, const FrameInfo &srcFrameInfo, uint8_t *dstBuffer, const FrameInfo &dstFrameInfo)
void newFrame(const uint8_t *buffer, uint32_t nbytes, uint64_t timestamp)
std::atomic< bool > isRecordingAboutToClose
bool stopRecording(bool force=false)
UniqueQueue< TimeFrame > framesIncoming
virtual ~StreamManagerPrivate()
INDI::PropertySwitch FullDepthSP
void processTracking(const uint8_t *buffer, size_t width, size_t height, size_t originX, size_t originY)
processTracking Measure the target in a frame and publish the averaged offset.
INDI::PropertyBlob imageBP
std::atomic< bool > framesThreadTerminate
INDI::PropertyNumber RecordOptionsNP
EncoderInterface * encoder
const char * getDeviceName() const
std::string recordfiledir
INDI::PropertyNumber TrackingOffsetNP
uint32_t frameCountDivider
void setTracking(bool enable)
INDI::PropertyNumber StreamTimeNP
INDI::PropertyNumber FpsNP
void setSize(uint16_t width, uint16_t height)
EncoderManager encoderManager
bool ISNewText(const char *dev, const char *name, char *texts[], char *names[], int n)
INDI::PropertyNumber TrackingLockNP
std::string recordfilename
bool uploadStream(const uint8_t *buffer, uint32_t nbytes)
uploadStream Upload frame to client using the selected encoder
INDI_PIXEL_FORMAT PixelFormat
RecorderManager recorderManager
INDI::PropertySwitch TrackingSP
bool recordStream(const uint8_t *buffer, uint32_t nbytes, double deltams, uint64_t timestamp)
recordStream Calls the backend recorder to record a single frame.
uint32_t trackingSequence
FrameTracker frameTracker
RecorderInterface * recorder
INDI::PropertyText RecordFileTP
INDI::PropertyNumber StreamFrameNP
bool setStream(bool enable)
DefaultDevice * currentDevice
INDI::PropertyNumber LimitsNP
StreamManagerPrivate(DefaultDevice *defaultDevice)
void getStreamFrame(uint16_t *x, uint16_t *y, uint16_t *w, uint16_t *h) const
void asyncStreamThread()
Thread processing frames and forwarding to recording and preview.
void ISGetProperties(const char *dev)
FrameInfo updateSourceFrameInfo()
bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n)
INDI::PropertyNumber StreamExposureNP
INDI::PropertySwitch RecorderSP
The UniqueQueue class is a thread-safe FIFO container adapter.
Constants and Data structure definitions for the interface to the reference INDI C API implementation...
*brief user defined string literal for JSON values *sa std::size_t n
Namespace to encapsulate INDI client, drivers, and mediator classes.
bool operator!=(const FrameInfo &other) const
FrameInfo(const SensorInterface &sensorInterface, size_t bytesPerColor=1)
FrameInfo(const CCDChip &ccdChip, size_t bytesPerColor=1)
std::vector< uint8_t > frame