2010-01-30 22:26:47 +00:00
|
|
|
/*
|
|
|
|
* This file is part of MPlayer.
|
|
|
|
*
|
|
|
|
* MPlayer is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* MPlayer is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with MPlayer; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
|
|
|
|
2008-02-22 09:09:46 +00:00
|
|
|
#ifndef MPLAYER_STREAM_DVD_H
|
|
|
|
#define MPLAYER_STREAM_DVD_H
|
2008-01-01 21:35:58 +00:00
|
|
|
|
2008-06-16 08:40:01 +00:00
|
|
|
#include "config.h"
|
2008-03-10 19:28:42 +00:00
|
|
|
#include <stdint.h>
|
2008-08-30 12:22:21 +00:00
|
|
|
#include <dvdread/dvd_reader.h>
|
|
|
|
#include <dvdread/ifo_types.h>
|
|
|
|
#include <dvdread/ifo_read.h>
|
|
|
|
#include <dvdread/nav_read.h>
|
2008-03-10 19:28:42 +00:00
|
|
|
#include "stream.h"
|
2010-02-19 19:38:53 +00:00
|
|
|
#include "m_option.h"
|
2006-06-11 21:26:35 +00:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
dvd_reader_t *dvd;
|
|
|
|
dvd_file_t *title;
|
|
|
|
ifo_handle_t *vmg_file;
|
|
|
|
tt_srpt_t *tt_srpt;
|
|
|
|
ifo_handle_t *vts_file;
|
|
|
|
vts_ptt_srpt_t *vts_ptt_srpt;
|
|
|
|
pgc_t *cur_pgc;
|
|
|
|
//
|
|
|
|
int cur_title;
|
|
|
|
int cur_cell;
|
|
|
|
int last_cell;
|
|
|
|
int cur_pack;
|
|
|
|
int cell_last_pack;
|
2006-11-07 22:49:56 +00:00
|
|
|
int cur_pgc_idx;
|
2006-06-11 21:26:35 +00:00
|
|
|
// Navi:
|
|
|
|
int packs_left;
|
|
|
|
dsi_t dsi_pack;
|
|
|
|
int angle_seek;
|
2006-11-07 22:49:56 +00:00
|
|
|
unsigned int *cell_times_table;
|
2006-06-11 21:26:35 +00:00
|
|
|
// audio datas
|
|
|
|
int nr_of_channels;
|
|
|
|
stream_language_t audio_streams[32];
|
|
|
|
// subtitles
|
|
|
|
int nr_of_subtitles;
|
|
|
|
stream_language_t subtitles[32];
|
|
|
|
} dvd_priv_t;
|
|
|
|
|
|
|
|
int dvd_number_of_subs(stream_t *stream);
|
2011-02-18 14:32:40 +00:00
|
|
|
int dvd_aid_from_lang(stream_t *stream, char **lang);
|
|
|
|
int dvd_sid_from_lang(stream_t *stream, char **lang);
|
2006-06-11 21:26:35 +00:00
|
|
|
int dvd_chapter_from_cell(dvd_priv_t *dvd,int title,int cell);
|
2008-01-01 21:35:58 +00:00
|
|
|
|
2008-02-22 09:09:46 +00:00
|
|
|
#endif /* MPLAYER_STREAM_DVD_H */
|