Mercurial > mplayer.hg
comparison libmpdemux/dvdnav_stream.h @ 5471:348c7d83e710
dvdnav_stream functions - dvdnav patch by Kees Cook <mplayer@outflux.net>
author | arpi |
---|---|
date | Wed, 03 Apr 2002 17:50:48 +0000 |
parents | |
children | cb7da1894b00 |
comparison
equal
deleted
inserted
replaced
5470:e80d66b5e4a7 | 5471:348c7d83e710 |
---|---|
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 */ | |
21 } dvdnav_priv_t; | |
22 | |
23 extern int dvd_nav_still; | |
24 extern int dvd_nav_skip_opening; | |
25 extern char dvd_nav_text[50]; | |
26 extern int osd_show_dvd_nav_delay; | |
27 extern int osd_show_dvd_nav_highlight; | |
28 extern int osd_show_dvd_nav_sx; | |
29 extern int osd_show_dvd_nav_ex; | |
30 extern int osd_show_dvd_nav_sy; | |
31 extern int osd_show_dvd_nav_ey; | |
32 | |
33 dvdnav_priv_t * new_dvdnav_stream(char * filename); | |
34 int dvdnav_stream_reset(dvdnav_priv_t * dvdnav_priv); | |
35 void free_dvdnav_stream(dvdnav_priv_t * dvdnav_priv); | |
36 | |
37 void dvdnav_stream_ignore_timers(dvdnav_priv_t * dvdnav_priv, int ignore); | |
38 void dvdnav_stream_read(dvdnav_priv_t * dvdnav_priv, unsigned char *buf, int *len); | |
39 | |
40 void dvdnav_stream_sleep(dvdnav_priv_t *dvdnav_priv, int seconds); | |
41 int dvdnav_stream_sleeping(dvdnav_priv_t * dvdnav_priv); | |
42 | |
43 void dvdnav_stream_fullstart(dvdnav_priv_t *dvdnav_priv); | |
44 unsigned int * dvdnav_stream_get_palette(dvdnav_priv_t * dvdnav_priv); | |
45 | |
46 #endif |