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> 36 class CameraArgumentParser;
57 virtual unsigned char*
buffer();
85 unsigned char *__deep_buffer;
virtual unsigned int pixel_width()
Width of image in pixels.
~SharedMemoryCamera()
Destructor.
virtual void stop()
Stop image transfer from the camera.
virtual void print_info()
Print out camera information.
Camera interface for image aquiring devices in FireVision.
A class for handling time.
virtual void flush()
Flush image queue.
virtual bool ready()
Camera is ready for taking pictures.
virtual void unlock()
Unlock buffer.
virtual void capture()
Capture an image.
virtual void dispose_buffer()
Dispose current buffer.
virtual bool try_lock_for_write()
Try to lock for reading.
virtual void close()
Close camera.
virtual colorspace_t colorspace()
Colorspace of returned image.
Shared memory image buffer.
virtual void set_image_number(unsigned int n)
Set image number to retrieve.
virtual bool try_lock_for_read()
Try to lock for reading.
virtual void lock_for_write()
Lock image for writing.
virtual unsigned char * buffer()
Get access to current image buffer.
SharedMemoryImageBuffer * shared_memory_image_buffer()
Get the shared memory image buffer.
virtual unsigned int buffer_size()
Size of buffer.
virtual void start()
Start image transfer from the camera.
virtual unsigned int pixel_height()
Height of image in pixels.
virtual fawkes::Time * capture_time()
Get the Time of the last successfully captured image.
virtual void open()
Open the camera.
virtual void lock_for_read()
Lock image for reading.
SharedMemoryCamera(const char *image_id, bool deep_copy=false)
Constructor.