26#include <fvutils/readers/fvraw.h>
27#include <fvwidgets/image_display.h>
28#include <fvwidgets/sdl_keeper.h>
35using namespace firevision;
38main(
int argc,
char **argv)
44 printf(
"Usage: %s <raw image file>\n", argv[0]);
49 unsigned char *buffer =
58 SDLKeeper::init(SDL_INIT_EVENTTHREAD);
63 if (SDL_WaitEvent(&event)) {
65 case SDL_QUIT: quit =
true;
break;
FvRaw image reader implementation.
virtual void read()
Read data from file.
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.