Mercurial > mplayer.hg
annotate stream/stream_dvd.h @ 29798:93289dea4d15
Reuse the init_error exit path also for init_best_audio_codec errors.
author | reimar |
---|---|
date | Fri, 06 Nov 2009 16:08:00 +0000 |
parents | 83266d299072 |
children | ce0122361a39 |
rev | line source |
---|---|
26029 | 1 #ifndef MPLAYER_STREAM_DVD_H |
2 #define MPLAYER_STREAM_DVD_H | |
25553
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
25112
diff
changeset
|
3 |
27043 | 4 #include "config.h" |
26184
7ee4ae1648e6
Add missing header #includes to fix 'make checkheaders'.
diego
parents:
26029
diff
changeset
|
5 #include <stdint.h> |
27466
ea01824701a5
Rename internal libdvdread fork from dvdread to libdvdread
rathann
parents:
27341
diff
changeset
|
6 #include <dvdread/dvd_reader.h> |
ea01824701a5
Rename internal libdvdread fork from dvdread to libdvdread
rathann
parents:
27341
diff
changeset
|
7 #include <dvdread/ifo_types.h> |
ea01824701a5
Rename internal libdvdread fork from dvdread to libdvdread
rathann
parents:
27341
diff
changeset
|
8 #include <dvdread/ifo_read.h> |
ea01824701a5
Rename internal libdvdread fork from dvdread to libdvdread
rathann
parents:
27341
diff
changeset
|
9 #include <dvdread/nav_read.h> |
26184
7ee4ae1648e6
Add missing header #includes to fix 'make checkheaders'.
diego
parents:
26029
diff
changeset
|
10 #include "stream.h" |
18681 | 11 |
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; | |
20 // | |
21 int cur_title; | |
22 int cur_cell; | |
23 int last_cell; | |
24 int cur_pack; | |
25 int cell_last_pack; | |
20746
a40246d0c941
implemented STREAM_CTRL_GET_CURRENT_TIME and STREAM_CTRL_SEEK_TO_TIME (precise seeking)
nicodvb
parents:
20635
diff
changeset
|
26 int cur_pgc_idx; |
18681 | 27 // Navi: |
28 int packs_left; | |
29 dsi_t dsi_pack; | |
30 int angle_seek; | |
20746
a40246d0c941
implemented STREAM_CTRL_GET_CURRENT_TIME and STREAM_CTRL_SEEK_TO_TIME (precise seeking)
nicodvb
parents:
20635
diff
changeset
|
31 unsigned int *cell_times_table; |
18681 | 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; | |
39 | |
40 int dvd_number_of_subs(stream_t *stream); | |
20156 | 41 int dvd_lang_from_aid(stream_t *stream, int id); |
18681 | 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); | |
25553
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
25112
diff
changeset
|
46 |
26029 | 47 #endif /* MPLAYER_STREAM_DVD_H */ |