24 #ifndef __FIREVISION_CAMS_V4L_H_ 25 #define __FIREVISION_CAMS_V4L_H_ 27 #include <fvcams/camera.h> 35 class CameraArgumentParser;
40 V4LCamera(
const char *device_name =
"/dev/video0");
53 virtual unsigned char*
buffer();
70 #endif //__FIREVISION_CAMS_V4L_H_ Camera interface for image aquiring devices in FireVision.
virtual unsigned int buffer_size()
Size of buffer.
virtual unsigned int pixel_width()
Width of image in pixels.
virtual void open()
Open the camera.
virtual void dispose_buffer()
Dispose current buffer.
virtual void capture()
Capture an image.
virtual void stop()
Stop image transfer from the camera.
General Video4Linux camera implementation.
V4LCamera(const char *device_name="/dev/video0")
Constructor.
virtual colorspace_t colorspace()
Colorspace of returned image.
virtual void set_image_number(unsigned int n)
Set image number to retrieve.
virtual ~V4LCamera()
Destructor.
virtual void print_info()
Print out camera information.
virtual unsigned int pixel_height()
Height of image in pixels.
virtual void close()
Close camera.
virtual void start()
Start image transfer from the camera.
virtual unsigned char * buffer()
Get access to current image buffer.
virtual bool ready()
Camera is ready for taking pictures.
virtual void flush()
Flush image queue.