options: modify parse_timestring(), make public
[mplayer/glamo.git] / stream / stream_dvd.h
blobf0f0b5d08f4e6a0139431763bc39b5bf8512e354
1 /*
2 * This file is part of MPlayer.
4 * MPlayer is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * MPlayer is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #ifndef MPLAYER_STREAM_DVD_H
20 #define MPLAYER_STREAM_DVD_H
22 #include "config.h"
23 #include <stdint.h>
24 #include <dvdread/dvd_reader.h>
25 #include <dvdread/ifo_types.h>
26 #include <dvdread/ifo_read.h>
27 #include <dvdread/nav_read.h>
28 #include "stream.h"
29 #include "m_option.h"
31 typedef struct {
32 dvd_reader_t *dvd;
33 dvd_file_t *title;
34 ifo_handle_t *vmg_file;
35 tt_srpt_t *tt_srpt;
36 ifo_handle_t *vts_file;
37 vts_ptt_srpt_t *vts_ptt_srpt;
38 pgc_t *cur_pgc;
40 int cur_title;
41 int cur_cell;
42 int last_cell;
43 int cur_pack;
44 int cell_last_pack;
45 int cur_pgc_idx;
46 // Navi:
47 int packs_left;
48 dsi_t dsi_pack;
49 int angle_seek;
50 unsigned int *cell_times_table;
51 // audio datas
52 int nr_of_channels;
53 stream_language_t audio_streams[32];
54 // subtitles
55 int nr_of_subtitles;
56 stream_language_t subtitles[32];
57 } dvd_priv_t;
59 int dvd_number_of_subs(stream_t *stream);
60 int dvd_lang_from_aid(stream_t *stream, int id);
61 int dvd_lang_from_sid(stream_t *stream, int id);
62 int dvd_aid_from_lang(stream_t *stream, const unsigned char* lang);
63 int dvd_sid_from_lang(stream_t *stream, const unsigned char* lang);
64 int dvd_chapter_from_cell(dvd_priv_t *dvd,int title,int cell);
66 #endif /* MPLAYER_STREAM_DVD_H */