Fawkes API
Fawkes Development Version
|
26 #ifndef _FIREVISION_CAMS_FILELOADER_H_
27 #define _FIREVISION_CAMS_FILELOADER_H_
29 #include <fvcams/camera.h>
33 namespace firevision {
35 class 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;
virtual unsigned int buffer_size()
Size of buffer.
void set_pixel_width(unsigned int w)
Set width.
void set_pixel_height(unsigned int h)
Set height.
void set_colorspace(colorspace_t c)
Set the colorspace of the image.
virtual void flush()
Flush image queue.
virtual void set_image_number(unsigned int n)
Set image number to retrieve.
virtual void capture()
Capture an image.
virtual void start()
Start image transfer from the camera.
virtual bool ready()
Camera is ready for taking pictures.
virtual unsigned int pixel_height()
Height of image in pixels.
virtual void close()
Close camera.
virtual void dispose_buffer()
Dispose current buffer.
virtual void open()
Open the camera.
virtual colorspace_t colorspace()
Colorspace of returned image.
virtual unsigned char * buffer()
Get access to current image buffer.
virtual void stop()
Stop image transfer from the camera.
virtual void print_info()
Print out camera information.
virtual unsigned int pixel_width()
Width of image in pixels.
Camera interface for image aquiring devices in FireVision.
FileLoader(const char *filename)
Constructor.