2007-07-02 22:34:45 +00:00
|
|
|
#ifndef MPLAYER_STREAM_DVDNAV_H
|
|
|
|
#define MPLAYER_STREAM_DVDNAV_H
|
2002-04-03 17:50:48 +00:00
|
|
|
|
2008-03-10 19:28:42 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
#include "stream.h"
|
|
|
|
|
2002-04-03 17:50:48 +00:00
|
|
|
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;
|
|
|
|
|
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);
|
2008-01-26 11:51:34 +00:00
|
|
|
void 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);
|
2008-01-24 19:14:05 +00:00
|
|
|
void mp_dvdnav_switch_title(stream_t *stream, int title);
|
2008-01-26 11:51:34 +00:00
|
|
|
int mp_dvdnav_is_eof (stream_t *stream);
|
|
|
|
int mp_dvdnav_skip_still (stream_t *stream);
|
|
|
|
int mp_dvdnav_skip_wait (stream_t *stream);
|
|
|
|
void mp_dvdnav_read_wait (stream_t *stream, int mode, int automode);
|
|
|
|
int mp_dvdnav_cell_has_changed (stream_t *stream, int clear);
|
2008-01-26 16:17:44 +00:00
|
|
|
int mp_dvdnav_stream_has_changed (stream_t *stream);
|
2002-04-03 17:50:48 +00:00
|
|
|
|
2007-12-31 16:15:50 +00:00
|
|
|
#endif /* MPLAYER_STREAM_DVDNAV_H */
|