2010-01-30 22:26:47 +00:00
|
|
|
/*
|
|
|
|
* This file is part of MPlayer.
|
|
|
|
*
|
|
|
|
* MPlayer is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* MPlayer is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with MPlayer; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
|
|
|
|
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"
|
|
|
|
|
2006-11-25 13:03:51 +00:00
|
|
|
typedef struct {
|
|
|
|
uint16_t sx, sy;
|
|
|
|
uint16_t ex, ey;
|
2008-06-07 10:30:49 +00:00
|
|
|
uint32_t palette;
|
2006-11-25 13:03:51 +00:00
|
|
|
} nav_highlight_t;
|
|
|
|
|
2008-06-07 12:57:23 +00:00
|
|
|
int mp_dvdnav_number_of_subs(stream_t *stream);
|
2008-06-07 13:06:27 +00:00
|
|
|
int mp_dvdnav_aid_from_audio_num(stream_t *stream, int audio_num);
|
2011-02-18 14:32:40 +00:00
|
|
|
int mp_dvdnav_aid_from_lang(stream_t *stream, char **language);
|
2008-06-07 12:57:23 +00:00
|
|
|
int mp_dvdnav_lang_from_aid(stream_t *stream, int id, unsigned char *buf);
|
2011-02-18 14:32:40 +00:00
|
|
|
int mp_dvdnav_sid_from_lang(stream_t *stream, char **language);
|
2008-06-07 12:57:23 +00:00
|
|
|
int mp_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-06-07 12:37:32 +00:00
|
|
|
int mp_dvdnav_audio_has_changed (stream_t *stream, int clear);
|
2008-06-07 12:42:00 +00:00
|
|
|
int mp_dvdnav_spu_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 */
|