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;
33 namespace firevision {
38 ImageDisplay(
unsigned int width,
unsigned int height,
const char *title = 0);
41 void show(colorspace_t colorspace,
unsigned char *buffer);
42 void show(
unsigned char *yuv422_planar_buffer);
48 SDL_Surface *_surface;
49 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.