24 #ifndef __FIREVISION_FVWIDGETS_IMAGE_DISPLAY_H_ 25 #define __FIREVISION_FVWIDGETS_IMAGE_DISPLAY_H_ 27 #include <fvutils/color/colorspaces.h> 29 typedef struct SDL_Surface SDL_Surface;
30 typedef struct SDL_Overlay SDL_Overlay;
31 typedef struct SDL_Rect SDL_Rect;
41 ImageDisplay(
unsigned int width,
unsigned int height,
const char* title = 0);
44 void show(colorspace_t colorspace,
unsigned char *buffer);
45 void show(
unsigned char *yuv422_planar_buffer);
51 SDL_Surface *_surface;
52 SDL_Overlay *_overlay;
void process_events(unsigned int max_num_events=10)
Process a few SDL events.
~ImageDisplay()
Destructor.
void loop_until_quit()
Process SDL events until quit.
void show(colorspace_t colorspace, unsigned char *buffer)
Show image from given colorspace.
ImageDisplay(unsigned int width, unsigned int height, const char *title=0)
Constructor.