#ifndef videooverlay_h
#define videooverlay_h

#include <stdint.h>

#define VideoOverlay_Create        0x59cc0
#define VideoOverlay_Destroy       0x59cc1
#define VideoOverlay_DisplayBuffer 0x59cc2
#define VideoOverlay_MapBuffer     0x59cc3
#define VideoOverlay_UnmapBuffer   0x59cc4
#define VideoOverlay_DiscardBuffer 0x59cc5
#define VideoOverlay_Vet           0x59cc6
#define VideoOverlay_SetScale      0x59cc7
#define VideoOverlay_SetWindow     0x59cc8
#define VideoOverlay_SetPosition   0x59cc9
#define VideoOverlay_RedrawWindow  0x59cca

/* Mode selector layout that we use */
typedef struct {
  uint32_t flags;
  uint32_t width;
  uint32_t height;
  uint32_t log2bpp;
  int32_t framerate;
  uint32_t modeflags_varnum;
  uint32_t modeflags;
  uint32_t ncolour_varnum;
  uint32_t ncolour;
  uint32_t nbuffers_varnum;
  uint32_t nbuffers;
  int32_t terminator;
} gvoverlaydesc_t;

typedef struct {
  uint8_t *ba;
  int stride;
} gvoverlayplane_t;

#endif
