Mercurial > mplayer.hg
annotate libmpdemux/dvdnav_stream.h @ 12945:e6b756046bf5
avoid outoptimization of static variables patch by ismail d«Ónmez <ismail.donmez at gmail.com>
author | faust3 |
---|---|
date | Tue, 03 Aug 2004 18:54:26 +0000 |
parents | 348c7d83e710 |
children | cb7da1894b00 |
rev | line source |
---|---|
5471
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
1 #ifndef _MPLAYER_DVDNAV_STREAM_H |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
2 #define _MPLAYER_DVDNAV_STREAM_H |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
3 |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
4 #include <dvdnav.h> |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
5 |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
6 typedef struct { |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
7 int event; /* event number fromd dvdnav_events.h */ |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
8 void * details; /* event details */ |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
9 int len; /* bytes in details */ |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
10 } dvdnav_event_t; |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
11 |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
12 typedef struct { |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
13 dvdnav_t * dvdnav; /* handle to libdvdnav stuff */ |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
14 char * filename; /* path */ |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
15 int ignore_timers; /* should timers be skipped? */ |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
16 int sleeping; /* are we sleeping? */ |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
17 unsigned int sleep_until; /* timer */ |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
18 int started; /* Has mplayer initialization finished? */ |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
19 unsigned char prebuf[STREAM_BUFFER_SIZE]; /* prefill buffer */ |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
20 int prelen; /* length of prefill buffer */ |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
21 } dvdnav_priv_t; |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
22 |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
23 extern int dvd_nav_still; |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
24 extern int dvd_nav_skip_opening; |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
25 extern char dvd_nav_text[50]; |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
26 extern int osd_show_dvd_nav_delay; |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
27 extern int osd_show_dvd_nav_highlight; |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
28 extern int osd_show_dvd_nav_sx; |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
29 extern int osd_show_dvd_nav_ex; |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
30 extern int osd_show_dvd_nav_sy; |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
31 extern int osd_show_dvd_nav_ey; |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
32 |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
33 dvdnav_priv_t * new_dvdnav_stream(char * filename); |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
34 int dvdnav_stream_reset(dvdnav_priv_t * dvdnav_priv); |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
35 void free_dvdnav_stream(dvdnav_priv_t * dvdnav_priv); |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
36 |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
37 void dvdnav_stream_ignore_timers(dvdnav_priv_t * dvdnav_priv, int ignore); |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
38 void dvdnav_stream_read(dvdnav_priv_t * dvdnav_priv, unsigned char *buf, int *len); |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
39 |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
40 void dvdnav_stream_sleep(dvdnav_priv_t *dvdnav_priv, int seconds); |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
41 int dvdnav_stream_sleeping(dvdnav_priv_t * dvdnav_priv); |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
42 |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
43 void dvdnav_stream_fullstart(dvdnav_priv_t *dvdnav_priv); |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
44 unsigned int * dvdnav_stream_get_palette(dvdnav_priv_t * dvdnav_priv); |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
45 |
348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
arpi
parents:
diff
changeset
|
46 #endif |