26 #include <fvwidgets/image_display.h> 27 #include <fvwidgets/sdl_keeper.h> 28 #include <fvutils/readers/fvraw.h> 39 main(
int argc,
char **argv)
45 printf(
"Usage: %s <raw image file>\n", argv[0]);
51 unsigned char *buffer = malloc_buffer(fvraw->
colorspace(),
65 if ( SDL_WaitEvent(&event) ) {
static void init(unsigned int flags)
Init SDL.
virtual void set_buffer(unsigned char *yuv422planar_buffer)
Set buffer that the read image should be written to.
virtual void read()
Read data from file.
static void quit()
Conditionally quit SDL.
virtual unsigned int pixel_width()
Get width of read image in pixels.
virtual colorspace_t colorspace()
Get colorspace from the just read image.
virtual unsigned int pixel_height()
Get height of read image in pixels.
FvRaw image reader implementation.
void show(colorspace_t colorspace, unsigned char *buffer)
Show image from given colorspace.