3#include "../../global.hpp"
5#include "../stream_image.hpp"
7#include "decl_stream.hpp"
23 class RingBufferImage :
public StreamImage
28 RingBufferImage(
const RingBufferImage &other) =
delete;
29 RingBufferImage &operator=(
const RingBufferImage &other) =
delete;
30 RingBufferImage(RingBufferImage &&other) =
delete;
31 RingBufferImage &operator=(RingBufferImage &&other) =
delete;
68 CExports::RBGetRingBufferInfo(
ParentDevice()->
Handle(), bufferIndex_, CExports::RINGBUFFER_INFO_TIMESTAMP,
77 , bufferIndex_(bufferIndex)
23 class RingBufferImage :
public StreamImage {
…};
Stream image that is returned, when the ring buffer interface is available on a device.
Definition decl_ring_buffer_image.hpp:24
int BufferIndex() const noexcept
Gets the index of this buffer in the parent device's ring buffer.
Definition decl_ring_buffer_image.hpp:45
DevicePtr ParentDevice() const noexcept
Gets the parent device for this image.
Definition detail_ring_buffer_image.hpp:35
void Unlock()
Unlocks the ring buffer.
Definition detail_ring_buffer_image.hpp:40
double RawTimestamp() const noexcept override
Gets the raw timestamp as reported by the driver.
Definition decl_ring_buffer_image.hpp:65
virtual ~RingBufferImage()
Destructor of ring buffer unlocks the buffer if it is locked.
Definition detail_ring_buffer_image.hpp:16
Base class of all stream related images.
Definition stream_image.hpp:32
void * Handle() const noexcept
Classic API image handle.
Definition decl_image.hpp:237
Namespace for driver or device related operations.
Definition decl_composite.hpp:28
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17
std::shared_ptr< Device > DevicePtr
Convenience shared pointer for Device.
Definition global.hpp:98