26 #include <fvutils/readers/fvraw.h>
27 #include <fvwidgets/image_display.h>
28 #include <fvwidgets/sdl_keeper.h>
35 using namespace firevision;
38 main(
int argc,
char **argv)
44 printf(
"Usage: %s <raw image file>\n", argv[0]);
49 unsigned char *buffer =
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.
static void quit()
Conditionally quit SDL.
static void init(unsigned int flags)
Init SDL.