TwiceAsNice  2019-02-18
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | Friends | List of all members
Basda::AvtVinoDevice< Type >::RingbufferWorker Class Reference
Inheritance diagram for Basda::AvtVinoDevice< Type >::RingbufferWorker:
Inheritance graph
Collaboration diagram for Basda::AvtVinoDevice< Type >::RingbufferWorker:
Collaboration graph

Public Member Functions

 RingbufferWorker (const Nice::JointPtr &_joint, const std::string _name="goush")
 
virtual ~RingbufferWorker ()
 
virtual void run ()
 
virtual void terminate ()
 
virtual void startImageRead (int _num=-1)
 
virtual void stopImageRead ()
 
virtual void pauseImageRead ()
 
virtual void setImageHeader (const ImageHeader &_imgh)
 
virtual const Nice::Size channels ()
 
 RingbufferWorker (const Nice::JointPtr &_joint, const std::string _name="goush")
 
virtual ~RingbufferWorker ()
 
virtual void run ()
 
virtual void terminate ()
 
virtual void startImageRead (int _num=-1)
 
virtual void stopImageRead ()
 
virtual void pauseImageRead ()
 
virtual void setImageHeader (const ImageHeader &_imgh)
 
virtual const Nice::Size channels ()
 
- Public Member Functions inherited from Nice::Thread
 Thread ()
 
virtual ~Thread ()
 
IceUtil::ThreadControl start (size_t _stackSize=0, int prio=-1, int schedpolicy=-1, cpu_set_t *mask=0)
 
virtual bool terminated ()
 
virtual void cancel ()
 cancels a thread - this will throw an unknown exception More...
 
virtual void wait ()
 
virtual void sleep (const Nice::Time &_t)
 
virtual void yield ()
 
virtual void wakeupAt (const Nice::Time &_t)
 
 Thread ()
 
virtual ~Thread ()
 
IceUtil::ThreadControl start (size_t _stackSize=0, int prio=-1, int schedpolicy=-1, cpu_set_t *mask=0)
 
virtual bool terminated ()
 
virtual void cancel ()
 cancels a thread - this will throw an unknown exception More...
 
virtual void wait ()
 
virtual void sleep (const Nice::Time &_t)
 
virtual void yield ()
 
virtual void wakeupAt (const Nice::Time &_t)
 

Protected Member Functions

void setRingBuffer (size_t _size, const ImageHeader &_imageHeader)
 
void setRingBuffer (size_t _size, const ImageHeader &_imageHeader)
 

Protected Attributes

Nice::Monitor m_monitor
 
RingbufferImplPtr m_ringbuffer
 
Nice::Time m_expotime
 
Nice::U16 m_framerate
 
tPvHandle m_camHandle
 
tPvFrame m_frame
 
std::string m_exposureMode
 
std::string m_gainMode
 
Nice::U32 m_packetSize
 
- Protected Attributes inherited from Nice::Thread
Nice::Atomic< boolm_terminated
 

Private Attributes

Nice::JointPtr m_config
 
std::string m_name
 
int m_program
 
Nice::SeqString m_programTypes
 
size_t m_imageCounter
 
Nice::U16 m_gain
 
ImageHeader m_imageHeader
 
size_t m_ringbufferSize
 

Friends

class AvtVinoDevice
 

Additional Inherited Members

- Protected Types inherited from Nice::Thread
enum  STATE {
  VALID, TERMINATED, CANCELED, VALID,
  TERMINATED, CANCELED
}
 
enum  STATE {
  VALID, TERMINATED, CANCELED, VALID,
  TERMINATED, CANCELED
}
 

Constructor & Destructor Documentation

◆ RingbufferWorker() [1/2]

template<typename Type>
Basda::AvtVinoDevice< Type >::RingbufferWorker::RingbufferWorker ( const Nice::JointPtr _joint,
const std::string  _name = "goush" 
)
inline

◆ ~RingbufferWorker() [1/2]

template<typename Type>
virtual Basda::AvtVinoDevice< Type >::RingbufferWorker::~RingbufferWorker ( )
inlinevirtual

◆ RingbufferWorker() [2/2]

template<typename Type>
Basda::AvtVinoDevice< Type >::RingbufferWorker::RingbufferWorker ( const Nice::JointPtr _joint,
const std::string  _name = "goush" 
)
inline

◆ ~RingbufferWorker() [2/2]

template<typename Type>
virtual Basda::AvtVinoDevice< Type >::RingbufferWorker::~RingbufferWorker ( )
inlinevirtual

Member Function Documentation

◆ channels() [1/2]

template<typename Type>
virtual const Nice::Size Basda::AvtVinoDevice< Type >::RingbufferWorker::channels ( )
inlinevirtual

◆ channels() [2/2]

template<typename Type>
virtual const Nice::Size Basda::AvtVinoDevice< Type >::RingbufferWorker::channels ( )
inlinevirtual

◆ pauseImageRead() [1/2]

template<typename Type >
void Basda::AvtVinoDevice< Type >::RingbufferWorker::pauseImageRead ( )
virtual

◆ pauseImageRead() [2/2]

template<typename Type>
virtual void Basda::AvtVinoDevice< Type >::RingbufferWorker::pauseImageRead ( )
virtual

◆ run() [1/2]

template<typename Type>
virtual void Basda::AvtVinoDevice< Type >::RingbufferWorker::run ( )
virtual

◆ run() [2/2]

template<typename Type >
void Basda::AvtVinoDevice< Type >::RingbufferWorker::run ( )
virtual

check if device is activated, otherwise due to no ringbuffer - boom!

◆ setImageHeader() [1/2]

template<typename Type>
virtual void Basda::AvtVinoDevice< Type >::RingbufferWorker::setImageHeader ( const ImageHeader _imgh)
inlinevirtual

◆ setImageHeader() [2/2]

template<typename Type>
virtual void Basda::AvtVinoDevice< Type >::RingbufferWorker::setImageHeader ( const ImageHeader _imgh)
inlinevirtual

◆ setRingBuffer() [1/2]

template<typename Type >
void Basda::AvtVinoDevice< Type >::RingbufferWorker::setRingBuffer ( size_t  _size,
const ImageHeader _imageHeader 
)
protected

◆ setRingBuffer() [2/2]

template<typename Type>
void Basda::AvtVinoDevice< Type >::RingbufferWorker::setRingBuffer ( size_t  _size,
const ImageHeader _imageHeader 
)
protected

◆ startImageRead() [1/2]

template<typename Type >
void Basda::AvtVinoDevice< Type >::RingbufferWorker::startImageRead ( int  _num = -1)
virtual

◆ startImageRead() [2/2]

template<typename Type>
virtual void Basda::AvtVinoDevice< Type >::RingbufferWorker::startImageRead ( int  _num = -1)
virtual

◆ stopImageRead() [1/2]

template<typename Type>
virtual void Basda::AvtVinoDevice< Type >::RingbufferWorker::stopImageRead ( )
virtual

◆ stopImageRead() [2/2]

template<typename Type >
void Basda::AvtVinoDevice< Type >::RingbufferWorker::stopImageRead ( )
virtual

◆ terminate() [1/2]

template<typename Type>
virtual void Basda::AvtVinoDevice< Type >::RingbufferWorker::terminate ( )
virtual

Reimplemented from Nice::Thread.

◆ terminate() [2/2]

template<typename Type >
void Basda::AvtVinoDevice< Type >::RingbufferWorker::terminate ( )
virtual

Reimplemented from Nice::Thread.

Friends And Related Function Documentation

◆ AvtVinoDevice

template<typename Type>
AvtVinoDevice
friend

Member Data Documentation

◆ m_camHandle

template<typename Type>
tPvHandle Basda::AvtVinoDevice< Type >::RingbufferWorker::m_camHandle
protected

◆ m_config

template<typename Type>
Nice::JointPtr Basda::AvtVinoDevice< Type >::RingbufferWorker::m_config
private

◆ m_exposureMode

template<typename Type>
std::string Basda::AvtVinoDevice< Type >::RingbufferWorker::m_exposureMode
protected

◆ m_expotime

template<typename Type>
Nice::Time Basda::AvtVinoDevice< Type >::RingbufferWorker::m_expotime
protected

◆ m_frame

template<typename Type>
tPvFrame Basda::AvtVinoDevice< Type >::RingbufferWorker::m_frame
protected

◆ m_framerate

template<typename Type>
Nice::U16 Basda::AvtVinoDevice< Type >::RingbufferWorker::m_framerate
protected

◆ m_gain

template<typename Type>
Nice::U16 Basda::AvtVinoDevice< Type >::RingbufferWorker::m_gain
private

◆ m_gainMode

template<typename Type>
std::string Basda::AvtVinoDevice< Type >::RingbufferWorker::m_gainMode
protected

◆ m_imageCounter

template<typename Type>
size_t Basda::AvtVinoDevice< Type >::RingbufferWorker::m_imageCounter
private

◆ m_imageHeader

template<typename Type>
ImageHeader Basda::AvtVinoDevice< Type >::RingbufferWorker::m_imageHeader
private

◆ m_monitor

template<typename Type>
Nice::Monitor Basda::AvtVinoDevice< Type >::RingbufferWorker::m_monitor
protected

◆ m_name

template<typename Type>
std::string Basda::AvtVinoDevice< Type >::RingbufferWorker::m_name
private

◆ m_packetSize

template<typename Type>
Nice::U32 Basda::AvtVinoDevice< Type >::RingbufferWorker::m_packetSize
protected

◆ m_program

template<typename Type>
int Basda::AvtVinoDevice< Type >::RingbufferWorker::m_program
private

◆ m_programTypes

template<typename Type>
Nice::SeqString Basda::AvtVinoDevice< Type >::RingbufferWorker::m_programTypes
private

◆ m_ringbuffer

template<typename Type>
RingbufferImplPtr Basda::AvtVinoDevice< Type >::RingbufferWorker::m_ringbuffer
protected

◆ m_ringbufferSize

template<typename Type>
size_t Basda::AvtVinoDevice< Type >::RingbufferWorker::m_ringbufferSize
private

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