2002-04-03 17:50:48 +00:00
|
|
|
#ifndef _MPLAYER_DVDNAV_STREAM_H
|
|
|
|
#define _MPLAYER_DVDNAV_STREAM_H
|
|
|
|
|
|
|
|
#include <dvdnav.h>
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int event; /* event number fromd dvdnav_events.h */
|
|
|
|
void * details; /* event details */
|
|
|
|
int len; /* bytes in details */
|
|
|
|
} dvdnav_event_t;
|
|
|
|
|
2006-11-25 13:03:51 +00:00
|
|
|
typedef struct {
|
|
|
|
uint16_t sx, sy;
|
|
|
|
uint16_t ex, ey;
|
|
|
|
} nav_highlight_t;
|
|
|
|
|
2002-04-03 17:50:48 +00:00
|
|
|
typedef struct {
|
|
|
|
dvdnav_t * dvdnav; /* handle to libdvdnav stuff */
|
|
|
|
char * filename; /* path */
|
|
|
|
int ignore_timers; /* should timers be skipped? */
|
|
|
|
int sleeping; /* are we sleeping? */
|
|
|
|
unsigned int sleep_until; /* timer */
|
|
|
|
int started; /* Has mplayer initialization finished? */
|
2006-08-19 19:41:04 +00:00
|
|
|
unsigned int duration; /* in milliseconds */
|
2006-09-19 23:50:21 +00:00
|
|
|
int mousex, mousey;
|
2006-10-23 21:04:31 +00:00
|
|
|
int title;
|
2006-12-09 19:23:35 +00:00
|
|
|
unsigned int spu_clut[16], spu_set;
|
2006-11-25 17:44:22 +00:00
|
|
|
dvdnav_highlight_event_t hlev;
|
2002-04-03 17:50:48 +00:00
|
|
|
} dvdnav_priv_t;
|
|
|
|
|
|
|
|
|
2006-11-25 12:17:34 +00:00
|
|
|
int dvdnav_number_of_subs(stream_t *stream);
|
2006-12-14 22:11:43 +00:00
|
|
|
int dvdnav_aid_from_lang(stream_t *stream, unsigned char *language);
|
2006-12-14 23:08:09 +00:00
|
|
|
int dvdnav_lang_from_aid(stream_t *stream, int id, unsigned char *buf);
|
2006-11-25 12:17:34 +00:00
|
|
|
int dvdnav_sid_from_lang(stream_t *stream, unsigned char *language);
|
2006-12-10 17:25:54 +00:00
|
|
|
int dvdnav_lang_from_sid(stream_t *stream, int sid, unsigned char *buf);
|
2006-09-09 22:40:22 +00:00
|
|
|
int mp_dvdnav_handle_input(stream_t *stream, int cmd, int *button);
|
2006-09-16 15:25:31 +00:00
|
|
|
void mp_dvdnav_update_mouse_pos(stream_t *stream, int32_t x, int32_t y, int* button);
|
2006-11-25 17:44:22 +00:00
|
|
|
void mp_dvdnav_get_highlight (stream_t *stream, nav_highlight_t *hl);
|
2006-12-09 19:23:35 +00:00
|
|
|
unsigned int *mp_dvdnav_get_spu_clut(stream_t *stream);
|
2002-04-03 17:50:48 +00:00
|
|
|
|
|
|
|
#endif
|