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