77 inline dc1394video_frame_t *
front() {
return q.front(); }
83 inline dc1394video_frame_t *
back() {
return q.back(); }
107 std::queue<dc1394video_frame_t*>
q;
utils::Mutex mutex
queue mutex
Definition: DCFrameQueue.h:110
dc1394video_frame_t * back()
returns the newest frame in the queue
Definition: DCFrameQueue.h:83
undocument this line if you encounter any issues!
Definition: Any.h:37
void unlock()
unlocks the mutex
Definition: Mutex.h:111
ICLIO_API ~DCFrameQueue()
releases the internal camera using icl::dc::release_dc_cam()
Utility struct for DC Camera device options.
Definition: DCDeviceOptions.h:39
dc1394camera_t * m_poCam
associated camera
Definition: DCFrameQueue.h:113
ICLIO_API void resetBus()
calls dc1394_reset_bus (not save!)
std::queue< dc1394video_frame_t * > q
wrapped queue structure
Definition: DCFrameQueue.h:107
ICLIO_API DCFrameQueue(dc1394camera_t *c, DCDeviceOptions *options, int nDMABuffers=5, int nQueuedBuffers=1)
Creates a new DCFrameQueue objects with given camera, DMABuffer size and count of queued buffers.
ICLIO_API dc1394video_frame_t * pop()
pops the oldest frame from the front of the internal queue (auto lock()/unlock())
ICLIO_API void push(dc1394video_frame_t *f)
pushes a new frame to the back of the internal queue (auto lock()/unlock())
#define ICLIO_API
Definition: CompatMacros.h:176
void unlock()
unlocks the queue
Definition: DCFrameQueue.h:89
ICLIO_API void step()
performs a new step
Internal used utility class for fast handling of DMA buffers.
Definition: DCFrameQueue.h:55
void lock()
locks the queue
Definition: DCFrameQueue.h:86
ICLIO_API void showDetails() const
shows some debugging information for the wrapped camera
Mutex class of the ICL.
Definition: Mutex.h:54
dc1394video_frame_t * front()
returns the oldest frame in the queue
Definition: DCFrameQueue.h:77
int m_iBuffers
count of internal used DMA buffers
Definition: DCFrameQueue.h:116
void lock()
locks the mutex
Definition: Mutex.h:91
int m_iQueuedBuffers
count of queued buffers
Definition: DCFrameQueue.h:119