24 #ifndef _FIREVISION_UTILS_READERS_FVRAW_READER_H_
25 #define _FIREVISION_UTILS_READERS_FVRAW_READER_H_
27 #include <fvutils/readers/reader.h>
28 #include <fvutils/writers/fvraw.h>
32 namespace firevision {
40 virtual void set_buffer(
unsigned char *yuv422planar_buffer);
46 static bool is_FvRaw(
const char *filename);
50 unsigned char *buffer;
53 unsigned int buffer_size;
FvRaw image reader implementation.
virtual void read()
Read data from file.
static bool is_FvRaw(const char *filename)
Check if given file contains FvRaw image.
FvRawReader(const char *filename)
Constructor.
virtual ~FvRawReader()
Destructor.
virtual unsigned int pixel_width()
Get width of read image in pixels.
virtual colorspace_t colorspace()
Get colorspace from the just read image.
virtual void set_buffer(unsigned char *yuv422planar_buffer)
Set buffer that the read image should be written to.
virtual unsigned int pixel_height()
Get height of read image in pixels.