26 #ifndef __FIREVISION_CAMS_FILELOADER_H_ 27 #define __FIREVISION_CAMS_FILELOADER_H_ 29 #include <fvcams/camera.h> 37 class CameraArgumentParser;
41 #if defined(__GLIBC__) || defined(__FreeBSD__) 42 friend int file_select(
const struct dirent*);
44 friend int file_select(
struct dirent*);
50 FileLoader(colorspace_t cspace,
const char* filename,
unsigned int width,
unsigned int height);
65 virtual unsigned char *
buffer();
84 unsigned char* file_buffer;
91 static char *extension;
94 struct dirent **file_list;
FileLoader(const char *filename)
Constructor.
virtual colorspace_t colorspace()
Colorspace of returned image.
Camera interface for image aquiring devices in FireVision.
virtual void capture()
Capture an image.
virtual void flush()
Flush image queue.
virtual void stop()
Stop image transfer from the camera.
virtual unsigned int pixel_height()
Height of image in pixels.
virtual void dispose_buffer()
Dispose current buffer.
virtual unsigned int buffer_size()
Size of buffer.
virtual void open()
Open the camera.
void set_colorspace(colorspace_t c)
Set the colorspace of the image.
virtual void print_info()
Print out camera information.
virtual unsigned char * buffer()
Get access to current image buffer.
virtual bool ready()
Camera is ready for taking pictures.
virtual unsigned int pixel_width()
Width of image in pixels.
void set_pixel_width(unsigned int w)
Set width.
virtual void set_image_number(unsigned int n)
Set image number to retrieve.
void set_pixel_height(unsigned int h)
Set height.
virtual void start()
Start image transfer from the camera.
virtual void close()
Close camera.