24 #ifndef _FIREVISION_CAMS_SHMEM_H_
25 #define _FIREVISION_CAMS_SHMEM_H_
27 #include <fvcams/camera.h>
28 #include <fvutils/color/colorspaces.h>
29 #include <fvutils/ipc/shm_image.h>
31 namespace firevision {
33 class CameraArgumentParser;
52 virtual unsigned char *
buffer();
80 unsigned char *deep_buffer_;
A class for handling time.
Camera interface for image aquiring devices in FireVision.
virtual unsigned int pixel_width()
Width of image in pixels.
~SharedMemoryCamera()
Destructor.
virtual void lock_for_read()
Lock image for reading.
virtual unsigned int buffer_size()
Size of buffer.
virtual void stop()
Stop image transfer from the camera.
virtual void flush()
Flush image queue.
virtual colorspace_t colorspace()
Colorspace of returned image.
virtual bool try_lock_for_read()
Try to lock for reading.
virtual void dispose_buffer()
Dispose current buffer.
virtual void close()
Close camera.
virtual void print_info()
Print out camera information.
virtual void unlock()
Unlock buffer.
virtual void set_image_number(unsigned int n)
Set image number to retrieve.
virtual void start()
Start image transfer from the camera.
virtual void capture()
Capture an image.
virtual void open()
Open the camera.
virtual bool ready()
Camera is ready for taking pictures.
virtual unsigned char * buffer()
Get access to current image buffer.
SharedMemoryImageBuffer * shared_memory_image_buffer()
Get the shared memory image buffer.
virtual void lock_for_write()
Lock image for writing.
virtual fawkes::Time * capture_time()
Get the Time of the last successfully captured image.
virtual bool try_lock_for_write()
Try to lock for reading.
virtual unsigned int pixel_height()
Height of image in pixels.
SharedMemoryCamera(const char *image_id, bool deep_copy=false)
Constructor.
Shared memory image buffer.