|
Instrument Neutral Distributed Interface INDI 2.2.5
|
#include <streammanager_p.h>
Classes | |
| struct | FrameInfo |
| struct | TimeFrame |
Public Types | |
| enum | { RECORD_ON , RECORD_TIME , RECORD_FRAME , RECORD_OFF } |
| enum | { STREAM_EXPOSURE , STREAM_DIVISOR } |
| enum | { FPS_INSTANT , FPS_AVERAGE } |
| enum | { ENCODER_RAW , ENCODER_MJPEG } |
| enum | { RECORDER_RAW , RECORDER_OGV } |
| enum | { LIMITS_BUFFER_MAX , LIMITS_PREVIEW_FPS } |
| enum | { FULL_DEPTH_8BIT , FULL_DEPTH_16BIT } |
| enum | { TRACKING_ON , TRACKING_OFF } |
| enum | { TRACKING_CENTROID_X , TRACKING_CENTROID_Y , TRACKING_OFFSET_X , TRACKING_OFFSET_Y , TRACKING_QUALITY , TRACKING_SEQUENCE , TRACKING_TIMESTAMP } |
| enum | { TRACKING_LOCK_X , TRACKING_LOCK_Y } |
| enum | { TRACKING_AVERAGE , TRACKING_RATE } |
Public Member Functions | |
| StreamManagerPrivate (DefaultDevice *defaultDevice) | |
| virtual | ~StreamManagerPrivate () |
| bool | initProperties () |
| void | ISGetProperties (const char *dev) |
| bool | ISNewText (const char *dev, const char *name, char *texts[], char *names[], int n) |
| bool | ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int n) |
| bool | ISNewNumber (const char *dev, const char *name, double values[], char *names[], int n) |
| void | newFrame (const uint8_t *buffer, uint32_t nbytes, uint64_t timestamp) |
| bool | updateProperties () |
| bool | setStream (bool enable) |
| const char * | getDeviceName () const |
| void | setSize (uint16_t width, uint16_t height) |
| bool | setPixelFormat (INDI_PIXEL_FORMAT pixelFormat, uint8_t pixelDepth) |
| void | asyncStreamThread () |
| Thread processing frames and forwarding to recording and preview. | |
| bool | startRecording () |
| bool | stopRecording (bool force=false) |
| bool | uploadStream (const uint8_t *buffer, uint32_t nbytes) |
| uploadStream Upload frame to client using the selected encoder | |
| bool | recordStream (const uint8_t *buffer, uint32_t nbytes, double deltams, uint64_t timestamp) |
| recordStream Calls the backend recorder to record a single frame. | |
| void | getStreamFrame (uint16_t *x, uint16_t *y, uint16_t *w, uint16_t *h) const |
| void | setStreamFrame (uint16_t x, uint16_t y, uint16_t w, uint16_t h) |
| void | setStreamFrame (const FrameInfo &frameInfo) |
| FrameInfo | updateSourceFrameInfo () |
| 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. | |
| void | setTracking (bool enable) |
Static Public Member Functions | |
| static std::string | expand (const std::string &fname, const std::map< std::string, std::string > &patterns) |
| static void | subframe (const uint8_t *srcBuffer, const FrameInfo &srcFrameInfo, uint8_t *dstBuffer, const FrameInfo &dstFrameInfo) |
Definition at line 50 of file streammanager_p.h.
| anonymous enum |
| Enumerator | |
|---|---|
| ENCODER_RAW | |
| ENCODER_MJPEG | |
Definition at line 222 of file streammanager_p.h.
| anonymous enum |
| Enumerator | |
|---|---|
| FULL_DEPTH_8BIT | |
| FULL_DEPTH_16BIT | |
Definition at line 234 of file streammanager_p.h.
| anonymous enum |
| Enumerator | |
|---|---|
| TRACKING_LOCK_X | |
| TRACKING_LOCK_Y | |
Definition at line 256 of file streammanager_p.h.
| anonymous enum |
| Enumerator | |
|---|---|
| TRACKING_ON | |
| TRACKING_OFF | |
Definition at line 238 of file streammanager_p.h.
| anonymous enum |
| Enumerator | |
|---|---|
| RECORD_ON | |
| RECORD_TIME | |
| RECORD_FRAME | |
| RECORD_OFF | |
Definition at line 189 of file streammanager_p.h.
| anonymous enum |
| Enumerator | |
|---|---|
| TRACKING_AVERAGE | |
| TRACKING_RATE | |
Definition at line 259 of file streammanager_p.h.
| anonymous enum |
| Enumerator | |
|---|---|
| LIMITS_BUFFER_MAX | |
| LIMITS_PREVIEW_FPS | |
Definition at line 230 of file streammanager_p.h.
| anonymous enum |
| Enumerator | |
|---|---|
| STREAM_EXPOSURE | |
| STREAM_DIVISOR | |
Definition at line 201 of file streammanager_p.h.
| anonymous enum |
| Enumerator | |
|---|---|
| RECORDER_RAW | |
| RECORDER_OGV | |
Definition at line 226 of file streammanager_p.h.
| anonymous enum |
| Enumerator | |
|---|---|
| TRACKING_CENTROID_X | |
| TRACKING_CENTROID_Y | |
| TRACKING_OFFSET_X | |
| TRACKING_OFFSET_Y | |
| TRACKING_QUALITY | |
| TRACKING_SEQUENCE | |
| TRACKING_TIMESTAMP | |
Definition at line 243 of file streammanager_p.h.
| anonymous enum |
| Enumerator | |
|---|---|
| FPS_INSTANT | |
| FPS_AVERAGE | |
Definition at line 209 of file streammanager_p.h.
| INDI::StreamManagerPrivate::StreamManagerPrivate | ( | DefaultDevice * | defaultDevice | ) |
Definition at line 46 of file streammanager.cpp.
|
virtual |
Definition at line 69 of file streammanager.cpp.
| void INDI::StreamManagerPrivate::asyncStreamThread | ( | ) |
Thread processing frames and forwarding to recording and preview.
Definition at line 490 of file streammanager.cpp.
|
static |
Definition at line 689 of file streammanager.cpp.
| const char * INDI::StreamManagerPrivate::getDeviceName | ( | ) | const |
Definition at line 86 of file streammanager.cpp.
| void INDI::StreamManagerPrivate::getStreamFrame | ( | uint16_t * | x, |
| uint16_t * | y, | ||
| uint16_t * | w, | ||
| uint16_t * | h ) const |
Definition at line 1408 of file streammanager.cpp.
| bool INDI::StreamManagerPrivate::initProperties | ( | ) |
Definition at line 97 of file streammanager.cpp.
| void INDI::StreamManagerPrivate::ISGetProperties | ( | const char * | dev | ) |
Definition at line 231 of file streammanager.cpp.
| bool INDI::StreamManagerPrivate::ISNewNumber | ( | const char * | dev, |
| const char * | name, | ||
| double | values[], | ||
| char * | names[], | ||
| int | n ) |
Definition at line 1052 of file streammanager.cpp.
| bool INDI::StreamManagerPrivate::ISNewSwitch | ( | const char * | dev, |
| const char * | name, | ||
| ISState * | states, | ||
| char * | names[], | ||
| int | n ) |
Definition at line 862 of file streammanager.cpp.
| bool INDI::StreamManagerPrivate::ISNewText | ( | const char * | dev, |
| const char * | name, | ||
| char * | texts[], | ||
| char * | names[], | ||
| int | n ) |
Definition at line 1022 of file streammanager.cpp.
| void INDI::StreamManagerPrivate::newFrame | ( | const uint8_t * | buffer, |
| uint32_t | nbytes, | ||
| uint64_t | timestamp ) |
Definition at line 341 of file streammanager.cpp.
| void INDI::StreamManagerPrivate::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.
| buffer | frame as it is recorded (after subframing, before 8-bit downscaling). |
| width | width of the frame in pixels. |
| height | height of the frame in pixels. |
| originX | X of the frame's first pixel in sensor (binned) coordinates. |
| originY | Y of the frame's first pixel in sensor (binned) coordinates. |
Definition at line 1331 of file streammanager.cpp.
| bool INDI::StreamManagerPrivate::recordStream | ( | const uint8_t * | buffer, |
| uint32_t | nbytes, | ||
| double | deltams, | ||
| uint64_t | timestamp ) |
recordStream Calls the backend recorder to record a single frame.
| deltams | time in milliseconds since last frame |
Definition at line 680 of file streammanager.cpp.
| bool INDI::StreamManagerPrivate::setPixelFormat | ( | INDI_PIXEL_FORMAT | pixelFormat, |
| uint8_t | pixelDepth ) |
Definition at line 638 of file streammanager.cpp.
| void INDI::StreamManagerPrivate::setSize | ( | uint16_t | width, |
| uint16_t | height ) |
Definition at line 593 of file streammanager.cpp.
| bool INDI::StreamManagerPrivate::setStream | ( | bool | enable | ) |
Definition at line 1172 of file streammanager.cpp.
| void INDI::StreamManagerPrivate::setStreamFrame | ( | const FrameInfo & | frameInfo | ) |
Definition at line 1424 of file streammanager.cpp.
| void INDI::StreamManagerPrivate::setStreamFrame | ( | uint16_t | x, |
| uint16_t | y, | ||
| uint16_t | w, | ||
| uint16_t | h ) |
Definition at line 1416 of file streammanager.cpp.
| void INDI::StreamManagerPrivate::setTracking | ( | bool | enable | ) |
Definition at line 1296 of file streammanager.cpp.
| bool INDI::StreamManagerPrivate::startRecording | ( | ) |
Definition at line 712 of file streammanager.cpp.
| bool INDI::StreamManagerPrivate::stopRecording | ( | bool | force = false | ) |
Definition at line 825 of file streammanager.cpp.
|
static |
Definition at line 468 of file streammanager.cpp.
| bool INDI::StreamManagerPrivate::updateProperties | ( | ) |
Definition at line 266 of file streammanager.cpp.
| StreamManagerPrivate::FrameInfo INDI::StreamManagerPrivate::updateSourceFrameInfo | ( | ) |
Definition at line 430 of file streammanager.cpp.
| bool INDI::StreamManagerPrivate::uploadStream | ( | const uint8_t * | buffer, |
| uint32_t | nbytes ) |
uploadStream Upload frame to client using the selected encoder
| buffer | pointer to frame image buffer |
| nbytes | size of frame in bytes |
Definition at line 1435 of file streammanager.cpp.
| DefaultDevice* INDI::StreamManagerPrivate::currentDevice = nullptr |
Definition at line 178 of file streammanager_p.h.
| bool INDI::StreamManagerPrivate::direct_record = false |
Definition at line 277 of file streammanager_p.h.
| FrameInfo INDI::StreamManagerPrivate::dstFrameInfo |
Definition at line 180 of file streammanager_p.h.
| EncoderInterface* INDI::StreamManagerPrivate::encoder = nullptr |
Definition at line 282 of file streammanager_p.h.
| EncoderManager INDI::StreamManagerPrivate::encoderManager |
Definition at line 281 of file streammanager_p.h.
| INDI::PropertySwitch INDI::StreamManagerPrivate::EncoderSP {2} |
Definition at line 221 of file streammanager_p.h.
| std::mutex INDI::StreamManagerPrivate::fastFPSUpdate |
Definition at line 309 of file streammanager_p.h.
| std::string INDI::StreamManagerPrivate::Format |
Definition at line 295 of file streammanager_p.h.
| FPSMeter INDI::StreamManagerPrivate::FPSAverage |
Definition at line 285 of file streammanager_p.h.
| FPSMeter INDI::StreamManagerPrivate::FPSFast |
Definition at line 286 of file streammanager_p.h.
| INDI::PropertyNumber INDI::StreamManagerPrivate::FpsNP {2} |
Definition at line 208 of file streammanager_p.h.
| FPSMeter INDI::StreamManagerPrivate::FPSPreview |
Definition at line 287 of file streammanager_p.h.
| FPSMeter INDI::StreamManagerPrivate::FPSRecorder |
Definition at line 288 of file streammanager_p.h.
| FPSMeter INDI::StreamManagerPrivate::FPSTracking |
Definition at line 265 of file streammanager_p.h.
| uint32_t INDI::StreamManagerPrivate::frameCountDivider = 0 |
Definition at line 290 of file streammanager_p.h.
| UniqueQueue<TimeFrame> INDI::StreamManagerPrivate::framesIncoming |
Definition at line 307 of file streammanager_p.h.
| std::thread INDI::StreamManagerPrivate::framesThread |
Definition at line 305 of file streammanager_p.h.
| std::atomic<bool> INDI::StreamManagerPrivate::framesThreadTerminate {false} |
Definition at line 306 of file streammanager_p.h.
| FrameTracker INDI::StreamManagerPrivate::frameTracker |
Definition at line 264 of file streammanager_p.h.
| INDI::PropertySwitch INDI::StreamManagerPrivate::FullDepthSP {2} |
Definition at line 233 of file streammanager_p.h.
| GammaLut16 INDI::StreamManagerPrivate::gammaLut16 |
Definition at line 312 of file streammanager_p.h.
| bool INDI::StreamManagerPrivate::hasStreamingExposure { true } |
Definition at line 272 of file streammanager_p.h.
| INDI::PropertyBlob INDI::StreamManagerPrivate::imageBP {INDI::Property()} |
Definition at line 218 of file streammanager_p.h.
| std::atomic<bool> INDI::StreamManagerPrivate::isRecording { false } |
Definition at line 270 of file streammanager_p.h.
| std::atomic<bool> INDI::StreamManagerPrivate::isRecordingAboutToClose { false } |
Definition at line 271 of file streammanager_p.h.
| std::atomic<bool> INDI::StreamManagerPrivate::isStreaming { false } |
Definition at line 269 of file streammanager_p.h.
| std::atomic<bool> INDI::StreamManagerPrivate::isTracking { false } |
Definition at line 261 of file streammanager_p.h.
| INDI::PropertyNumber INDI::StreamManagerPrivate::LimitsNP {2} |
Definition at line 229 of file streammanager_p.h.
| uint8_t INDI::StreamManagerPrivate::PixelDepth = 8 |
Definition at line 293 of file streammanager_p.h.
| INDI_PIXEL_FORMAT INDI::StreamManagerPrivate::PixelFormat = INDI_MONO |
Definition at line 292 of file streammanager_p.h.
| uint16_t INDI::StreamManagerPrivate::rawHeight = 0 |
Definition at line 294 of file streammanager_p.h.
| uint16_t INDI::StreamManagerPrivate::rawWidth = 0 |
Definition at line 294 of file streammanager_p.h.
| RecorderInterface* INDI::StreamManagerPrivate::recorder = nullptr |
Definition at line 276 of file streammanager_p.h.
| RecorderManager INDI::StreamManagerPrivate::recorderManager |
Definition at line 275 of file streammanager_p.h.
| INDI::PropertySwitch INDI::StreamManagerPrivate::RecorderSP {2} |
Definition at line 225 of file streammanager_p.h.
| std::string INDI::StreamManagerPrivate::recordfiledir |
Definition at line 278 of file streammanager_p.h.
| std::string INDI::StreamManagerPrivate::recordfilename |
Definition at line 278 of file streammanager_p.h.
| INDI::PropertyText INDI::StreamManagerPrivate::RecordFileTP {2} |
Definition at line 198 of file streammanager_p.h.
| std::mutex INDI::StreamManagerPrivate::recordMutex |
Definition at line 310 of file streammanager_p.h.
| INDI::PropertyNumber INDI::StreamManagerPrivate::RecordOptionsNP {2} |
Definition at line 212 of file streammanager_p.h.
| INDI::PropertySwitch INDI::StreamManagerPrivate::RecordStreamSP {4} |
Definition at line 188 of file streammanager_p.h.
| INDI::PropertyNumber INDI::StreamManagerPrivate::StreamExposureNP {2} |
Definition at line 200 of file streammanager_p.h.
| INDI::PropertyNumber INDI::StreamManagerPrivate::StreamFrameNP {4} |
Definition at line 215 of file streammanager_p.h.
| INDI::PropertySwitch INDI::StreamManagerPrivate::StreamSP {2} |
Definition at line 183 of file streammanager_p.h.
| INDI::PropertyNumber INDI::StreamManagerPrivate::StreamTimeNP {1} |
Definition at line 185 of file streammanager_p.h.
| bool INDI::StreamManagerPrivate::trackingFormatWarned = false |
Definition at line 267 of file streammanager_p.h.
| INDI::PropertyNumber INDI::StreamManagerPrivate::TrackingLockNP {2} |
Definition at line 255 of file streammanager_p.h.
| std::mutex INDI::StreamManagerPrivate::trackingMutex |
Definition at line 263 of file streammanager_p.h.
| INDI::PropertyNumber INDI::StreamManagerPrivate::TrackingOffsetNP {7} |
Definition at line 242 of file streammanager_p.h.
| uint32_t INDI::StreamManagerPrivate::trackingSequence = 0 |
Definition at line 266 of file streammanager_p.h.
| INDI::PropertyNumber INDI::StreamManagerPrivate::TrackingSettingsNP {2} |
Definition at line 258 of file streammanager_p.h.
| INDI::PropertySwitch INDI::StreamManagerPrivate::TrackingSP {2} |
Definition at line 237 of file streammanager_p.h.