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

The TheoraRecorder class implemented recording of video streaming data in a libtheora OGV file. More...

#include <theorarecorder.h>

Inheritance diagram for INDI::TheoraRecorder:
INDI::RecorderInterface

Public Member Functions

 TheoraRecorder ()
 
virtual ~TheoraRecorder ()
 
virtual const char * getExtension ()
 
virtual bool setPixelFormat (INDI_PIXEL_FORMAT pixelFormat, uint8_t pixelDepth)
 
virtual bool setSize (uint16_t width, uint16_t height)
 
virtual bool open (const char *filename, char *errmsg)
 
virtual bool close ()
 
virtual bool writeFrame (const uint8_t *frame, uint32_t nbytes)
 
virtual void setStreamEnabled (bool enable)
 
- Public Member Functions inherited from INDI::RecorderInterface
 RecorderInterface ()=default
 
virtual ~RecorderInterface ()=default
 
virtual const char * getName ()
 
virtual bool setFPS (float FPS)
 

Protected Attributes

bool isRecordingActive = false
 
bool isStreamingActive = false
 
uint32_t number_of_planes
 
uint16_t rawWidth = 0
 
uint16_t rawHeight = 0
 
std::vector< uint64_t > frameStamps
 
INDI_PIXEL_FORMAT m_PixelFormat
 
uint8_t m_PixelDepth =8
 
- Protected Attributes inherited from INDI::RecorderInterface
const char * name
 
float m_FPS = 1
 

Detailed Description

The TheoraRecorder class implemented recording of video streaming data in a libtheora OGV file.

Definition at line 38 of file theorarecorder.h.

Constructor & Destructor Documentation

INDI::TheoraRecorder::TheoraRecorder ( )

Definition at line 44 of file theorarecorder.cpp.

INDI::TheoraRecorder::~TheoraRecorder ( )
virtual

Definition at line 54 of file theorarecorder.cpp.

Member Function Documentation

bool INDI::TheoraRecorder::close ( )
virtual

Implements INDI::RecorderInterface.

Definition at line 362 of file theorarecorder.cpp.

virtual const char* INDI::TheoraRecorder::getExtension ( )
inlinevirtual

Implements INDI::RecorderInterface.

Definition at line 44 of file theorarecorder.h.

bool INDI::TheoraRecorder::open ( const char *  filename,
char *  errmsg 
)
virtual

Implements INDI::RecorderInterface.

Definition at line 135 of file theorarecorder.cpp.

bool INDI::TheoraRecorder::setPixelFormat ( INDI_PIXEL_FORMAT  pixelFormat,
uint8_t  pixelDepth 
)
virtual

Implements INDI::RecorderInterface.

Definition at line 63 of file theorarecorder.cpp.

bool INDI::TheoraRecorder::setSize ( uint16_t  width,
uint16_t  height 
)
virtual

Implements INDI::RecorderInterface.

Definition at line 70 of file theorarecorder.cpp.

virtual void INDI::TheoraRecorder::setStreamEnabled ( bool  enable)
inlinevirtual

Implements INDI::RecorderInterface.

Definition at line 50 of file theorarecorder.h.

bool INDI::TheoraRecorder::writeFrame ( const uint8_t *  frame,
uint32_t  nbytes 
)
virtual

Implements INDI::RecorderInterface.

Definition at line 416 of file theorarecorder.cpp.

Member Data Documentation

std::vector<uint64_t> INDI::TheoraRecorder::frameStamps
protected

Definition at line 56 of file theorarecorder.h.

bool INDI::TheoraRecorder::isRecordingActive = false
protected

Definition at line 53 of file theorarecorder.h.

bool INDI::TheoraRecorder::isStreamingActive = false
protected

Definition at line 53 of file theorarecorder.h.

uint8_t INDI::TheoraRecorder::m_PixelDepth =8
protected

Definition at line 58 of file theorarecorder.h.

INDI_PIXEL_FORMAT INDI::TheoraRecorder::m_PixelFormat
protected

Definition at line 57 of file theorarecorder.h.

uint32_t INDI::TheoraRecorder::number_of_planes
protected

Definition at line 54 of file theorarecorder.h.

uint16_t INDI::TheoraRecorder::rawHeight = 0
protected

Definition at line 55 of file theorarecorder.h.

uint16_t INDI::TheoraRecorder::rawWidth = 0
protected

Definition at line 55 of file theorarecorder.h.


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