dvdnav: Support for image highlights for dvdnav menus.
[mplayer/glamo.git] / stream / stream_dvdnav.h
blob656d1b8e627beb47b6b1fb829d0d2e8dbdcfd1ea
1 /*
2 * This file is part of MPlayer.
4 * MPlayer is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * MPlayer is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #ifndef MPLAYER_STREAM_DVDNAV_H
20 #define MPLAYER_STREAM_DVDNAV_H
22 #include <stdint.h>
23 #include "stream.h"
25 typedef struct {
26 uint16_t sx, sy;
27 uint16_t ex, ey;
28 uint32_t palette;
29 } nav_highlight_t;
31 int mp_dvdnav_number_of_subs(stream_t *stream);
32 int mp_dvdnav_aid_from_audio_num(stream_t *stream, int audio_num);
33 int mp_dvdnav_aid_from_lang(stream_t *stream, unsigned char *language);
34 int mp_dvdnav_lang_from_aid(stream_t *stream, int id, unsigned char *buf);
35 int mp_dvdnav_sid_from_lang(stream_t *stream, unsigned char *language);
36 int mp_dvdnav_lang_from_sid(stream_t *stream, int sid, unsigned char *buf);
37 void mp_dvdnav_handle_input(stream_t *stream, int cmd, int *button);
38 void mp_dvdnav_update_mouse_pos(stream_t *stream, int32_t x, int32_t y, int* button);
39 void mp_dvdnav_get_highlight (stream_t *stream, nav_highlight_t *hl);
40 unsigned int *mp_dvdnav_get_spu_clut(stream_t *stream);
41 void mp_dvdnav_switch_title(stream_t *stream, int title);
42 int mp_dvdnav_is_eof (stream_t *stream);
43 int mp_dvdnav_skip_still (stream_t *stream);
44 int mp_dvdnav_skip_wait (stream_t *stream);
45 void mp_dvdnav_read_wait (stream_t *stream, int mode, int automode);
46 int mp_dvdnav_cell_has_changed (stream_t *stream, int clear);
47 int mp_dvdnav_audio_has_changed (stream_t *stream, int clear);
48 int mp_dvdnav_spu_has_changed (stream_t *stream, int clear);
49 int mp_dvdnav_stream_has_changed (stream_t *stream);
51 #endif /* MPLAYER_STREAM_DVDNAV_H */