24#ifndef _FIREVISION_FVWIDGETS_IMAGE_DISPLAY_H_
25#define _FIREVISION_FVWIDGETS_IMAGE_DISPLAY_H_
27#include <fvutils/color/colorspaces.h>
29typedef struct SDL_Surface SDL_Surface;
30typedef struct SDL_Overlay SDL_Overlay;
31typedef struct SDL_Rect SDL_Rect;
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;
~ImageDisplay()
Destructor.
ImageDisplay(unsigned int width, unsigned int height, const char *title=0)
Constructor.
void loop_until_quit()
Process SDL events until quit.
void show(colorspace_t colorspace, unsigned char *buffer)
Show image from given colorspace.
void process_events(unsigned int max_num_events=10)
Process a few SDL events.