diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2001-09-27 02:11:16 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2001-09-27 02:11:16 +0000 |
commit | 5bb8e3e9446a5212dcc0010d57c46e87e88598e0 (patch) | |
tree | 2d0cd3d419b5abee7386709889b91028db64c30d /src/libspudec/spu.h | |
parent | b0b0b35a2ffb59f2d4c62daee08a84fffd0e278f (diff) | |
download | xine-lib-5bb8e3e9446a5212dcc0010d57c46e87e88598e0.tar.gz xine-lib-5bb8e3e9446a5212dcc0010d57c46e87e88598e0.tar.bz2 |
discover the colors used by the subtitles
and assign a "readable" pallete to them
CVS patchset: 701
CVS date: 2001/09/27 02:11:16
Diffstat (limited to 'src/libspudec/spu.h')
-rw-r--r-- | src/libspudec/spu.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/libspudec/spu.h b/src/libspudec/spu.h index 42de3a9ea..95145d1b3 100644 --- a/src/libspudec/spu.h +++ b/src/libspudec/spu.h @@ -19,7 +19,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: spu.h,v 1.4 2001/08/16 12:33:00 ehasenle Exp $ + * $Id: spu.h,v 1.5 2001/09/27 02:11:16 miguelfreitas Exp $ * * This file was originally part of the OMS program. * @@ -35,6 +35,12 @@ #include <inttypes.h> #include "video_out.h" +#ifdef __GNUC__ +#define CLUT_Y_CR_CB_INIT(_y,_cr,_cb) {y: (_y), cr: (_cr), cb: (_cb)} +#else +#define CLUT_Y_CR_CB_INIT(_y,_cr,_cb) { (_cb), (_cr), (_y) } +#endif + typedef struct spu_clut_struct { #ifdef WORDS_BIGENDIAN uint8_t entry0 : 4; @@ -75,6 +81,8 @@ typedef struct { int visible; /* Must the sub-picture be shown? */ int menu; /* This overlay is a menu */ int b_show; /* is a button shown? */ + int need_clut; /* doesn't have the right clut yet */ + int cur_colors[4];/* current 4 colors been used */ uint32_t clut[16]; } spu_state_t; @@ -83,6 +91,7 @@ int spuReassembly (spu_seq_t *seq, int start, uint8_t *pkt_data, u_int pkt_len); int spuNextEvent (spu_state_t *state, spu_seq_t* seq, int pts); void spuDoCommands (spu_state_t *state, spu_seq_t* seq, vo_overlay_t *ovl); void spuDrawPicture (spu_state_t *state, spu_seq_t* seq, vo_overlay_t *ovl); +void spuDiscoverClut (spu_state_t *state, vo_overlay_t *ovl); void spuUpdateMenu (spu_state_t *state, vo_overlay_t *ovl); #endif |