Instrument Neutral Distributed Interface INDI  2.0.2
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, uint64_t timestamp)
 
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

◆ TheoraRecorder()

INDI::TheoraRecorder::TheoraRecorder ( )

Definition at line 45 of file theorarecorder.cpp.

◆ ~TheoraRecorder()

INDI::TheoraRecorder::~TheoraRecorder ( )
virtual

Definition at line 55 of file theorarecorder.cpp.

Member Function Documentation

◆ close()

bool INDI::TheoraRecorder::close ( void  )
virtual

Implements INDI::RecorderInterface.

Definition at line 364 of file theorarecorder.cpp.

◆ getExtension()

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

Implements INDI::RecorderInterface.

Definition at line 44 of file theorarecorder.h.

◆ open()

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

Implements INDI::RecorderInterface.

Definition at line 136 of file theorarecorder.cpp.

◆ setPixelFormat()

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

Implements INDI::RecorderInterface.

Definition at line 64 of file theorarecorder.cpp.

◆ setSize()

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

Implements INDI::RecorderInterface.

Definition at line 71 of file theorarecorder.cpp.

◆ setStreamEnabled()

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

Implements INDI::RecorderInterface.

Definition at line 53 of file theorarecorder.h.

◆ writeFrame()

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

Implements INDI::RecorderInterface.

Definition at line 418 of file theorarecorder.cpp.

Member Data Documentation

◆ frameStamps

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

Definition at line 62 of file theorarecorder.h.

◆ isRecordingActive

bool INDI::TheoraRecorder::isRecordingActive = false
protected

Definition at line 59 of file theorarecorder.h.

◆ isStreamingActive

bool INDI::TheoraRecorder::isStreamingActive = false
protected

Definition at line 59 of file theorarecorder.h.

◆ m_PixelDepth

uint8_t INDI::TheoraRecorder::m_PixelDepth = 8
protected

Definition at line 64 of file theorarecorder.h.

◆ m_PixelFormat

INDI_PIXEL_FORMAT INDI::TheoraRecorder::m_PixelFormat
protected

Definition at line 63 of file theorarecorder.h.

◆ number_of_planes

uint32_t INDI::TheoraRecorder::number_of_planes
protected

Definition at line 60 of file theorarecorder.h.

◆ rawHeight

uint16_t INDI::TheoraRecorder::rawHeight = 0
protected

Definition at line 61 of file theorarecorder.h.

◆ rawWidth

uint16_t INDI::TheoraRecorder::rawWidth = 0
protected

Definition at line 61 of file theorarecorder.h.


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