Mercurial > mplayer.hg
annotate stream/stream_dvd.h @ 26877:4ab1cfcee430
Add a slave command to stop stream playback.
Mostly useful when used with -idle mode.
Patch by Mathieu Schroeter ( mathieu dot schroeter at gamesover dot ch )
author | ben |
---|---|
date | Tue, 27 May 2008 18:39:57 +0000 |
parents | 7ee4ae1648e6 |
children | bae68d1afda2 |
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 |
26184
7ee4ae1648e6
Add missing header #includes to fix 'make checkheaders'.
diego
parents:
26029
diff
changeset
|
4 #include <stdint.h> |
20635
9ed557ae1383
Streamline and simplify internal vs external libdvdread handling.
diego
parents:
20615
diff
changeset
|
5 #ifdef USE_DVDREAD_INTERNAL |
20981
22cb9d5f1e21
Rename libdvdread to dvdread. We really only include only the dvdread
diego
parents:
20746
diff
changeset
|
6 #include "dvdread/dvd_reader.h" |
22cb9d5f1e21
Rename libdvdread to dvdread. We really only include only the dvdread
diego
parents:
20746
diff
changeset
|
7 #include "dvdread/ifo_types.h" |
22cb9d5f1e21
Rename libdvdread to dvdread. We really only include only the dvdread
diego
parents:
20746
diff
changeset
|
8 #include "dvdread/ifo_read.h" |
22cb9d5f1e21
Rename libdvdread to dvdread. We really only include only the dvdread
diego
parents:
20746
diff
changeset
|
9 #include "dvdread/nav_read.h" |
18681 | 10 #else |
11 #include <dvdread/dvd_reader.h> | |
12 #include <dvdread/ifo_types.h> | |
13 #include <dvdread/ifo_read.h> | |
14 #include <dvdread/nav_read.h> | |
15 #endif | |
26184
7ee4ae1648e6
Add missing header #includes to fix 'make checkheaders'.
diego
parents:
26029
diff
changeset
|
16 #include "stream.h" |
18681 | 17 |
18 typedef struct { | |
19 dvd_reader_t *dvd; | |
20 dvd_file_t *title; | |
21 ifo_handle_t *vmg_file; | |
22 tt_srpt_t *tt_srpt; | |
23 ifo_handle_t *vts_file; | |
24 vts_ptt_srpt_t *vts_ptt_srpt; | |
25 pgc_t *cur_pgc; | |
26 // | |
27 int cur_title; | |
28 int cur_cell; | |
29 int last_cell; | |
30 int cur_pack; | |
31 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
|
32 int cur_pgc_idx; |
18681 | 33 // Navi: |
34 int packs_left; | |
35 dsi_t dsi_pack; | |
36 int angle_seek; | |
20746
a40246d0c941
implemented STREAM_CTRL_GET_CURRENT_TIME and STREAM_CTRL_SEEK_TO_TIME (precise seeking)
nicodvb
parents:
20635
diff
changeset
|
37 unsigned int *cell_times_table; |
18681 | 38 // audio datas |
39 int nr_of_channels; | |
40 stream_language_t audio_streams[32]; | |
41 // subtitles | |
42 int nr_of_subtitles; | |
43 stream_language_t subtitles[32]; | |
44 } dvd_priv_t; | |
45 | |
46 int dvd_number_of_subs(stream_t *stream); | |
20156 | 47 int dvd_lang_from_aid(stream_t *stream, int id); |
18681 | 48 int dvd_lang_from_sid(stream_t *stream, int id); |
49 int dvd_aid_from_lang(stream_t *stream, unsigned char* lang); | |
50 int dvd_sid_from_lang(stream_t *stream, unsigned char* lang); | |
51 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
|
52 |
26029 | 53 #endif /* MPLAYER_STREAM_DVD_H */ |