From da711d47f121b937d2ec4a15a7e607af9f528ce5 Mon Sep 17 00:00:00 2001 From: Eduard Hasenleithner Date: Mon, 13 Aug 2001 12:52:33 +0000 Subject: major rewrite of the subpicture mechanism in order to support menus. CVS patchset: 416 CVS date: 2001/08/13 12:52:33 --- src/libspudec/spu_decoder_api.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/libspudec/spu_decoder_api.h') diff --git a/src/libspudec/spu_decoder_api.h b/src/libspudec/spu_decoder_api.h index e30a4cd11..a7d75511a 100644 --- a/src/libspudec/spu_decoder_api.h +++ b/src/libspudec/spu_decoder_api.h @@ -44,6 +44,8 @@ struct spu_decoder_s { void (*decode_data) (spu_decoder_t *this, buf_element_t *buf); + void (*event) (spu_decoder_t *this, spu_event_t *event); + void (*close) (spu_decoder_t *this); char* (*get_identifier) (void); @@ -70,4 +72,20 @@ struct spudec_s { }; +#define SPU_EVENT_BUTTON 0x100 +typedef struct spu_button_s spu_button_t; +struct spu_button_s { + int show; + uint8_t color[4]; + uint8_t trans[4]; + int left, right; + int top, bottom; +}; + +#define SPU_EVENT_CLUT 0x101 +typedef struct spu_cltbl_s spu_cltbl_t; +struct spu_cltbl_s { + uint32_t clut[16]; +}; + #endif /* HAVE_SPUDEC_H */ -- cgit v1.2.3