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