Mercurial > mplayer.hg
annotate stream/stream_dvdnav.h @ 19790:9c54d979c2bc
Clarify binary codecs section.
author | diego |
---|---|
date | Mon, 11 Sep 2006 09:15:42 +0000 |
parents | 109e241c0cca |
children | adfd08588514 |
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 */ |
19302 | 22 } dvdnav_priv_t; |
23 | |
24 extern int dvd_nav_still; | |
25 extern int dvd_nav_skip_opening; | |
26 extern char dvd_nav_text[50]; | |
27 extern int osd_show_dvd_nav_delay; | |
28 extern int osd_show_dvd_nav_highlight; | |
29 extern int osd_show_dvd_nav_sx; | |
30 extern int osd_show_dvd_nav_ex; | |
31 extern int osd_show_dvd_nav_sy; | |
32 extern int osd_show_dvd_nav_ey; | |
33 | |
34 dvdnav_priv_t * new_dvdnav_stream(char * filename); | |
35 int dvdnav_stream_reset(dvdnav_priv_t * dvdnav_priv); | |
36 void free_dvdnav_stream(dvdnav_priv_t * dvdnav_priv); | |
37 | |
38 void dvdnav_stream_ignore_timers(dvdnav_priv_t * dvdnav_priv, int ignore); | |
39 int dvdnav_stream_read(dvdnav_priv_t * dvdnav_priv, unsigned char *buf, int *len); | |
40 | |
41 void dvdnav_stream_sleep(dvdnav_priv_t *dvdnav_priv, int seconds); | |
42 int dvdnav_stream_sleeping(dvdnav_priv_t * dvdnav_priv); | |
43 | |
44 void dvdnav_stream_fullstart(dvdnav_priv_t *dvdnav_priv); | |
45 unsigned int * dvdnav_stream_get_palette(dvdnav_priv_t * dvdnav_priv); | |
19774
109e241c0cca
in mp_dvdnav_handle_input() assign the currently selected button, shown in the OSD by main()
nicodvb
parents:
19768
diff
changeset
|
46 int mp_dvdnav_handle_input(stream_t *stream, int cmd, int *button); |
19302 | 47 |
48 #endif |