"MPlayer - The Movie Player" should be used as the player name.
[mplayer/glamo.git] / stream / stream_dvd.h
blobeffd5b3d67edc5edf7a0310f0d2da5a40cf70acb
1 #ifndef MPLAYER_STREAM_DVD_H
2 #define MPLAYER_STREAM_DVD_H
4 #include "config.h"
5 #include <stdint.h>
6 #include <dvdread/dvd_reader.h>
7 #include <dvdread/ifo_types.h>
8 #include <dvdread/ifo_read.h>
9 #include <dvdread/nav_read.h>
10 #include "stream.h"
12 typedef struct {
13 dvd_reader_t *dvd;
14 dvd_file_t *title;
15 ifo_handle_t *vmg_file;
16 tt_srpt_t *tt_srpt;
17 ifo_handle_t *vts_file;
18 vts_ptt_srpt_t *vts_ptt_srpt;
19 pgc_t *cur_pgc;
21 int cur_title;
22 int cur_cell;
23 int last_cell;
24 int cur_pack;
25 int cell_last_pack;
26 int cur_pgc_idx;
27 // Navi:
28 int packs_left;
29 dsi_t dsi_pack;
30 int angle_seek;
31 unsigned int *cell_times_table;
32 // audio datas
33 int nr_of_channels;
34 stream_language_t audio_streams[32];
35 // subtitles
36 int nr_of_subtitles;
37 stream_language_t subtitles[32];
38 } dvd_priv_t;
40 int dvd_number_of_subs(stream_t *stream);
41 int dvd_lang_from_aid(stream_t *stream, int id);
42 int dvd_lang_from_sid(stream_t *stream, int id);
43 int dvd_aid_from_lang(stream_t *stream, unsigned char* lang);
44 int dvd_sid_from_lang(stream_t *stream, unsigned char* lang);
45 int dvd_chapter_from_cell(dvd_priv_t *dvd,int title,int cell);
47 #endif /* MPLAYER_STREAM_DVD_H */