Torc  0.1
Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TorcCameraDevice Class Referenceabstract

#include <torccamera.h>

Inheritance diagram for TorcCameraDevice:
[legend]

Public Slots

virtual void TakeStills (uint Count)
 Tell the camera to take Count number of still images. More...
 
virtual void StreamVideo (bool Video)=0
 

Signals

void WritingStarted (void)
 
void WritingStopped (void)
 
void SegmentRemoved (int Segment)
 
void InitSegmentReady (void)
 
void SegmentReady (int Segment)
 
void SetErrored (bool Errored)
 
void StillReady (const QString &File)
 
void ParametersChanged (TorcCameraParams &Params)
 

Public Member Functions

 TorcCameraDevice (const TorcCameraParams &Params)
 
virtual ~TorcCameraDevice ()
 
virtual bool Setup (void)
 
virtual bool Start (void)=0
 
virtual bool Stop (void)=0
 
QByteArray GetSegment (int Segment)
 
QByteArray GetInitSegment (void)
 

Protected Member Functions

void TrackDrift (void)
 
virtual void StartStill (void)=0
 
virtual bool EnableStills (uint Count)
 
void SaveStill (void)
 
void SaveStillBuffer (quint32 Length, uint8_t *Data)
 
void ClearStillsBuffers (void)
 

Protected Attributes

TorcCameraParams m_params
 
TorcMuxerm_muxer
 
int m_videoStream
 
quint64 m_frameCount
 
bool m_haveInitSegment
 
AVPacket * m_bufferedPacket
 
TorcSegmentedRingBufferm_ringBuffer
 
QReadWriteLock m_ringBufferLock
 
quint64 m_referenceTime
 
int m_discardDrift
 
TorcAverage< double > m_shortAverage
 
TorcAverage< double > m_longAverage
 
uint m_stillsRequired
 
uint m_stillsExpected
 
QList< QPair< quint32, uint8_t * > > m_stillsBuffers
 

Detailed Description

Definition at line 64 of file torccamera.h.

Constructor & Destructor Documentation

TorcCameraDevice::TorcCameraDevice ( const TorcCameraParams Params)
explicit

Definition at line 249 of file torccamera.cpp.

TorcCameraDevice::~TorcCameraDevice ( )
virtual

Definition at line 269 of file torccamera.cpp.

Member Function Documentation

void TorcCameraDevice::ClearStillsBuffers ( void  )
protected

Definition at line 386 of file torccamera.cpp.

bool TorcCameraDevice::EnableStills ( uint  Count)
protectedvirtual

Reimplemented in TorcPiCamera.

Definition at line 341 of file torccamera.cpp.

QByteArray TorcCameraDevice::GetInitSegment ( void  )

Definition at line 317 of file torccamera.cpp.

QByteArray TorcCameraDevice::GetSegment ( int  Segment)

Definition at line 309 of file torccamera.cpp.

void TorcCameraDevice::InitSegmentReady ( void  )
signal
void TorcCameraDevice::ParametersChanged ( TorcCameraParams Params)
signal
void TorcCameraDevice::SaveStill ( void  )
protected

Definition at line 348 of file torccamera.cpp.

void TorcCameraDevice::SaveStillBuffer ( quint32  Length,
uint8_t *  Data 
)
protected

Definition at line 378 of file torccamera.cpp.

void TorcCameraDevice::SegmentReady ( int  Segment)
signal
void TorcCameraDevice::SegmentRemoved ( int  Segment)
signal
void TorcCameraDevice::SetErrored ( bool  Errored)
signal
bool TorcCameraDevice::Setup ( void  )
virtual

Reimplemented in TorcPiCamera.

Definition at line 286 of file torccamera.cpp.

virtual bool TorcCameraDevice::Start ( void  )
pure virtual

Implemented in TorcPiCamera.

virtual void TorcCameraDevice::StartStill ( void  )
protectedpure virtual

Implemented in TorcPiCamera.

void TorcCameraDevice::StillReady ( const QString &  File)
signal
virtual bool TorcCameraDevice::Stop ( void  )
pure virtual

Implemented in TorcPiCamera.

virtual void TorcCameraDevice::StreamVideo ( bool  Video)
pure virtualslot
void TorcCameraDevice::TakeStills ( uint  Count)
virtualslot

Tell the camera to take Count number of still images.

Note
We ignore values below the current setting, as the stills will be triggered when the input value moves from zero to X - but it should then drop back to zero.

Definition at line 330 of file torccamera.cpp.

void TorcCameraDevice::TrackDrift ( void  )
protected

Definition at line 394 of file torccamera.cpp.

void TorcCameraDevice::WritingStarted ( void  )
signal
void TorcCameraDevice::WritingStopped ( void  )
signal

Member Data Documentation

AVPacket* TorcCameraDevice::m_bufferedPacket
protected

Definition at line 109 of file torccamera.h.

int TorcCameraDevice::m_discardDrift
protected

Definition at line 113 of file torccamera.h.

quint64 TorcCameraDevice::m_frameCount
protected

Definition at line 107 of file torccamera.h.

bool TorcCameraDevice::m_haveInitSegment
protected

Definition at line 108 of file torccamera.h.

TorcAverage<double> TorcCameraDevice::m_longAverage
protected

Definition at line 115 of file torccamera.h.

TorcMuxer* TorcCameraDevice::m_muxer
protected

Definition at line 105 of file torccamera.h.

TorcCameraParams TorcCameraDevice::m_params
protected

Definition at line 102 of file torccamera.h.

quint64 TorcCameraDevice::m_referenceTime
protected

Definition at line 112 of file torccamera.h.

TorcSegmentedRingBuffer* TorcCameraDevice::m_ringBuffer
protected

Definition at line 110 of file torccamera.h.

QReadWriteLock TorcCameraDevice::m_ringBufferLock
protected

Definition at line 111 of file torccamera.h.

TorcAverage<double> TorcCameraDevice::m_shortAverage
protected

Definition at line 114 of file torccamera.h.

QList<QPair<quint32, uint8_t*> > TorcCameraDevice::m_stillsBuffers
protected

Definition at line 120 of file torccamera.h.

uint TorcCameraDevice::m_stillsExpected
protected

Definition at line 119 of file torccamera.h.

uint TorcCameraDevice::m_stillsRequired
protected

Definition at line 118 of file torccamera.h.

int TorcCameraDevice::m_videoStream
protected

Definition at line 106 of file torccamera.h.


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