#include <streammanager.h>
|
| StreamManager (CCD *mainCCD) |
|
virtual | ~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. More...
|
|
bool | setStream (bool enable) |
| setStream Enables (starts) or disables (stops) streaming. More...
|
|
RecorderInterface * | getRecorder () |
|
bool | isDirectRecording () |
|
bool | isStreaming () |
|
bool | isRecording () |
|
bool | isBusy () |
|
double | 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 () |
|
◆ anonymous enum
Enumerator |
---|
RECORD_ON | |
RECORD_TIME | |
RECORD_FRAME | |
RECORD_OFF | |
◆ anonymous enum
Enumerator |
---|
FPS_INSTANT | |
FPS_AVERAGE | |
◆ anonymous enum
Enumerator |
---|
ENCODER_RAW | |
ENCODER_MJPEG | |
◆ anonymous enum
Enumerator |
---|
RECORDER_RAW | |
RECORDER_OGV | |
◆ StreamManager()
StreamManager::StreamManager |
( |
CCD * |
mainCCD | ) |
|
◆ ~StreamManager()
StreamManager::~StreamManager |
( |
| ) |
|
|
virtual |
◆ close()
bool StreamManager::close |
( |
| ) |
|
◆ expand()
std::string StreamManager::expand |
( |
std::string |
fname, |
|
|
const std::map< std::string, std::string > & |
patterns |
|
) |
| |
|
private |
◆ getDeviceName()
const char * StreamManager::getDeviceName |
( |
| ) |
|
◆ getDownscaleBuffer()
uint8_t* INDI::StreamManager::getDownscaleBuffer |
( |
| ) |
|
|
inline |
◆ getDownscaleBufferSize()
uint32_t INDI::StreamManager::getDownscaleBufferSize |
( |
| ) |
|
|
inline |
◆ getRecorder()
◆ getStreamFrame()
◆ getTargetFPS()
double INDI::StreamManager::getTargetFPS |
( |
| ) |
|
|
inline |
◆ initProperties()
bool StreamManager::initProperties |
( |
| ) |
|
|
virtual |
◆ isBusy()
bool INDI::StreamManager::isBusy |
( |
| ) |
|
|
inline |
◆ isDirectRecording()
bool INDI::StreamManager::isDirectRecording |
( |
| ) |
|
|
inline |
◆ ISGetProperties()
void StreamManager::ISGetProperties |
( |
const char * |
dev | ) |
|
|
virtual |
◆ ISNewNumber()
bool StreamManager::ISNewNumber |
( |
const char * |
dev, |
|
|
const char * |
name, |
|
|
double |
values[], |
|
|
char * |
names[], |
|
|
int |
n |
|
) |
| |
|
virtual |
◆ ISNewSwitch()
bool StreamManager::ISNewSwitch |
( |
const char * |
dev, |
|
|
const char * |
name, |
|
|
ISState * |
states, |
|
|
char * |
names[], |
|
|
int |
n |
|
) |
| |
|
virtual |
◆ ISNewText()
bool StreamManager::ISNewText |
( |
const char * |
dev, |
|
|
const char * |
name, |
|
|
char * |
texts[], |
|
|
char * |
names[], |
|
|
int |
n |
|
) |
| |
|
virtual |
◆ isRecording()
bool INDI::StreamManager::isRecording |
( |
| ) |
|
|
inline |
◆ isStreaming()
bool INDI::StreamManager::isStreaming |
( |
| ) |
|
|
inline |
◆ mkpath()
int StreamManager::mkpath |
( |
std::string |
s, |
|
|
mode_t |
mode |
|
) |
| |
|
private |
◆ newFrame()
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.
◆ recordStream()
recordStream Calls the backend recorder to record a single frame.
- Parameters
-
deltams | time in milliseconds since last frame |
◆ saveConfigItems()
bool StreamManager::saveConfigItems |
( |
FILE * |
fp | ) |
|
|
virtual |
◆ setPixelFormat()
◆ setSize()
◆ setStream()
bool StreamManager::setStream |
( |
bool |
enable | ) |
|
setStream Enables (starts) or disables (stops) streaming.
- Parameters
-
enable | True to enable, false to disable |
- Returns
- True if operation is successful, false otherwise.
◆ startRecording()
bool StreamManager::startRecording |
( |
| ) |
|
|
private |
◆ stopRecording()
◆ updateProperties()
bool StreamManager::updateProperties |
( |
| ) |
|
|
virtual |
◆ uploadStream()
uploadStream Upload frame to client using the selected encoder
- Parameters
-
buffer | pointer to frame image buffer |
nbytes | size of frame in bytes |
- Returns
- True if frame is encoded and sent to client, false otherwise.
◆ currentCCD
CCD* INDI::StreamManager::currentCCD = nullptr |
|
protected |
◆ direct_record
bool INDI::StreamManager::direct_record |
|
private |
◆ downscaleBuffer
uint8_t* INDI::StreamManager::downscaleBuffer = nullptr |
|
private |
◆ downscaleBufferSize
uint32_t INDI::StreamManager::downscaleBufferSize =0 |
|
private |
◆ encoder
◆ encoderManager
◆ EncoderS
ISwitch INDI::StreamManager::EncoderS[2] |
|
private |
◆ EncoderSP
◆ FpsN
INumber INDI::StreamManager::FpsN[2] |
|
private |
◆ FpsNP
◆ framecountsec
double INDI::StreamManager::framecountsec |
|
private |
◆ imageB
IBLOB* INDI::StreamManager::imageB |
|
private |
◆ imageBP
◆ m_isRecording
bool INDI::StreamManager::m_isRecording |
|
private |
◆ m_isStreaming
bool INDI::StreamManager::m_isStreaming |
|
private |
◆ m_PixelDepth
uint8_t INDI::StreamManager::m_PixelDepth |
|
private |
◆ m_PixelFormat
◆ mssum
double INDI::StreamManager::mssum |
|
private |
◆ rawHeight
uint16_t INDI::StreamManager::rawHeight =0 |
|
private |
◆ rawWidth
uint16_t INDI::StreamManager::rawWidth =0 |
|
private |
◆ recordDuration
double INDI::StreamManager::recordDuration |
|
private |
◆ recorder
◆ recorderManager
◆ RecorderS
ISwitch INDI::StreamManager::RecorderS[2] |
|
private |
◆ RecorderSP
◆ recordfiledir
std::string INDI::StreamManager::recordfiledir |
|
private |
◆ recordfilename
std::string INDI::StreamManager::recordfilename |
|
private |
◆ RecordFileT
IText INDI::StreamManager::RecordFileT[2] {} |
|
private |
◆ RecordFileTP
◆ recordframeCount
int INDI::StreamManager::recordframeCount |
|
private |
◆ RecordOptionsN
INumber INDI::StreamManager::RecordOptionsN[2] |
|
private |
◆ RecordOptionsNP
◆ RecordStreamS
ISwitch INDI::StreamManager::RecordStreamS[4] |
|
private |
◆ RecordStreamSP
◆ StreamExposureN
INumber INDI::StreamManager::StreamExposureN[1] |
|
private |
◆ StreamExposureNP
◆ streamframeCount
int INDI::StreamManager::streamframeCount |
|
private |
◆ StreamFrameN
INumber INDI::StreamManager::StreamFrameN[4] |
|
private |
◆ StreamFrameNP
◆ StreamS
ISwitch INDI::StreamManager::StreamS[2] |
|
private |
◆ StreamSP
◆ tframe2
struct itimerval tframe1 INDI::StreamManager::tframe2 |
|
private |
The documentation for this class was generated from the following files: