Mercurial > mplayer.hg
annotate stream/stream_dvdnav.h @ 19938:f862045246a9
Aggregate multiple small EOSD textures into one large since hundreds of
texture creates are very slow.
Might cause artefacts with scaled OSD since large textures are not cleared each
time.
author | reimar |
---|---|
date | Fri, 22 Sep 2006 20:23:17 +0000 |
parents | ae5618f5f517 |
children | a11a208925b9 |
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 { | |
13 dvdnav_t * dvdnav; /* handle to libdvdnav stuff */ | |
14 char * filename; /* path */ | |
15 int ignore_timers; /* should timers be skipped? */ | |
16 int sleeping; /* are we sleeping? */ | |
17 unsigned int sleep_until; /* timer */ | |
18 int started; /* Has mplayer initialization finished? */ | |
19 unsigned char prebuf[STREAM_BUFFER_SIZE]; /* prefill buffer */ | |
20 int prelen; /* length of prefill buffer */ | |
19453
087d4a916ea3
implemented STREAM_CTRL_GET_TIME_LENGTH (duration of the pgc playing)
nicodvb
parents:
19302
diff
changeset
|
21 unsigned int duration; /* in milliseconds */ |
19912
3fdb44285fe7
introduced new MP_CMD_DVDNAV_MOUSECLICK command (bound to mouse0);
nicodvb
parents:
19851
diff
changeset
|
22 int mousex, mousey; |
19302 | 23 } dvdnav_priv_t; |
24 | |
25 extern int dvd_nav_still; | |
26 extern int dvd_nav_skip_opening; | |
27 extern char dvd_nav_text[50]; | |
28 extern int osd_show_dvd_nav_delay; | |
29 extern int osd_show_dvd_nav_highlight; | |
30 extern int osd_show_dvd_nav_sx; | |
31 extern int osd_show_dvd_nav_ex; | |
32 extern int osd_show_dvd_nav_sy; | |
33 extern int osd_show_dvd_nav_ey; | |
34 | |
19774
109e241c0cca
in mp_dvdnav_handle_input() assign the currently selected button, shown in the OSD by main()
nicodvb
parents:
19768
diff
changeset
|
35 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
|
36 void mp_dvdnav_update_mouse_pos(stream_t *stream, int32_t x, int32_t y, int* button); |
19302 | 37 |
38 #endif |