comparison libmpdemux/stream_dvd.h @ 18681:303506bac0b5

moved stream_dvd's interface to stream_dvd.h
author nicodvb
date Sun, 11 Jun 2006 21:26:35 +0000
parents
children
comparison
equal deleted inserted replaced
18680:dbd99e1435bb 18681:303506bac0b5
1
2 #ifdef USE_DVDREAD
3
4 #ifdef USE_MPDVDKIT
5 #include "libmpdvdkit2/dvd_reader.h"
6 #include "libmpdvdkit2/ifo_types.h"
7 #include "libmpdvdkit2/ifo_read.h"
8 #include "libmpdvdkit2/nav_read.h"
9 #else
10 #include <dvdread/dvd_reader.h>
11 #include <dvdread/ifo_types.h>
12 #include <dvdread/ifo_read.h>
13 #include <dvdread/nav_read.h>
14 #endif
15
16 typedef struct {
17 dvd_reader_t *dvd;
18 dvd_file_t *title;
19 ifo_handle_t *vmg_file;
20 tt_srpt_t *tt_srpt;
21 ifo_handle_t *vts_file;
22 vts_ptt_srpt_t *vts_ptt_srpt;
23 pgc_t *cur_pgc;
24 //
25 int cur_title;
26 int cur_cell;
27 int last_cell;
28 int cur_pack;
29 int cell_last_pack;
30 // Navi:
31 int packs_left;
32 dsi_t dsi_pack;
33 int angle_seek;
34 // audio datas
35 int nr_of_channels;
36 stream_language_t audio_streams[32];
37 // subtitles
38 int nr_of_subtitles;
39 stream_language_t subtitles[32];
40 } dvd_priv_t;
41
42 int dvd_number_of_subs(stream_t *stream);
43 int dvd_lang_from_sid(stream_t *stream, int id);
44 int dvd_aid_from_lang(stream_t *stream, unsigned char* lang);
45 int dvd_sid_from_lang(stream_t *stream, unsigned char* lang);
46 int dvd_chapter_from_cell(dvd_priv_t *dvd,int title,int cell);
47
48 #endif