synced with r24565
[mplayer/glamo.git] / stream / stream_dvdnav.h
blob41c55b1e715516d19994fce35a3afb90051d99ee
1 #ifndef MPLAYER_STREAM_DVDNAV_H
2 #define MPLAYER_STREAM_DVDNAV_H
4 #include <dvdnav.h>
6 typedef struct {
7 int event; /* event number fromd dvdnav_events.h */
8 void * details; /* event details */
9 int len; /* bytes in details */
10 } dvdnav_event_t;
12 typedef struct {
13 uint16_t sx, sy;
14 uint16_t ex, ey;
15 } nav_highlight_t;
17 typedef struct {
18 dvdnav_t * dvdnav; /* handle to libdvdnav stuff */
19 char * filename; /* path */
20 unsigned int duration; /* in milliseconds */
21 int mousex, mousey;
22 int title;
23 unsigned int spu_clut[16], spu_set;
24 dvdnav_highlight_event_t hlev;
25 } dvdnav_priv_t;
28 int dvdnav_number_of_subs(stream_t *stream);
29 int dvdnav_aid_from_lang(stream_t *stream, unsigned char *language);
30 int dvdnav_lang_from_aid(stream_t *stream, int id, unsigned char *buf);
31 int dvdnav_sid_from_lang(stream_t *stream, unsigned char *language);
32 int dvdnav_lang_from_sid(stream_t *stream, int sid, unsigned char *buf);
33 int mp_dvdnav_handle_input(stream_t *stream, int cmd, int *button);
34 void mp_dvdnav_update_mouse_pos(stream_t *stream, int32_t x, int32_t y, int* button);
35 void mp_dvdnav_get_highlight (stream_t *stream, nav_highlight_t *hl);
36 unsigned int *mp_dvdnav_get_spu_clut(stream_t *stream);
38 #endif