Mercurial > mplayer.hg
annotate stream/stream_dvdnav.h @ 21387:8621736097f8
Move initialization of sh_audio/sh_video members to aviheader
where possible so that all a_streams[]/v_streams[] are initialized
and switching becomes simpler.
author | reimar |
---|---|
date | Thu, 30 Nov 2006 17:48:00 +0000 |
parents | 8258747951d7 |
children | c9b6588932b5 |
rev | line source |
---|---|
19302 | 1 #ifndef _MPLAYER_DVDNAV_STREAM_H |
2 #define _MPLAYER_DVDNAV_STREAM_H | |
3 | |
4 #include <dvdnav.h> | |
5 | |
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; | |
11 | |
12 typedef struct { | |
21200 | 13 uint16_t sx, sy; |
14 uint16_t ex, ey; | |
15 } nav_highlight_t; | |
16 | |
17 typedef struct { | |
19302 | 18 dvdnav_t * dvdnav; /* handle to libdvdnav stuff */ |
19 char * filename; /* path */ | |
20 int ignore_timers; /* should timers be skipped? */ | |
21 int sleeping; /* are we sleeping? */ | |
22 unsigned int sleep_until; /* timer */ | |
23 int started; /* Has mplayer initialization finished? */ | |
19453
087d4a916ea3
implemented STREAM_CTRL_GET_TIME_LENGTH (duration of the pgc playing)
nicodvb
parents:
19302
diff
changeset
|
24 unsigned int duration; /* in milliseconds */ |
19912
3fdb44285fe7
introduced new MP_CMD_DVDNAV_MOUSECLICK command (bound to mouse0);
nicodvb
parents:
19851
diff
changeset
|
25 int mousex, mousey; |
20405
a11a208925b9
don't play any other title other than N when N is specified (with dvdnav://N)
nicodvb
parents:
19913
diff
changeset
|
26 int title; |
21219 | 27 dvdnav_highlight_event_t hlev; |
19302 | 28 } dvdnav_priv_t; |
29 | |
30 | |
21197
7ecd9de03435
added code to identify subs language and count; needed for forthcoming support for -slang
nicodvb
parents:
20405
diff
changeset
|
31 int dvdnav_number_of_subs(stream_t *stream); |
7ecd9de03435
added code to identify subs language and count; needed for forthcoming support for -slang
nicodvb
parents:
20405
diff
changeset
|
32 int dvdnav_sid_from_lang(stream_t *stream, unsigned char *language); |
19774
109e241c0cca
in mp_dvdnav_handle_input() assign the currently selected button, shown in the OSD by main()
nicodvb
parents:
19768
diff
changeset
|
33 int mp_dvdnav_handle_input(stream_t *stream, int cmd, int *button); |
19851
adfd08588514
report mouse coordinates after movement to dvdnav; this permits to enable button selection using the mouse; patch by Jonas Jermann and me
nicodvb
parents:
19774
diff
changeset
|
34 void mp_dvdnav_update_mouse_pos(stream_t *stream, int32_t x, int32_t y, int* button); |
21219 | 35 void mp_dvdnav_get_highlight (stream_t *stream, nav_highlight_t *hl); |
19302 | 36 |
37 #endif |