1 /*****************************************************************************
2 * input_dvdread.h: thread structure of the DVD plugin
3 *****************************************************************************
4 * Copyright (C) 1999-2001 VideoLAN
5 * $Id: input_dvdread.h,v 1.8 2002/04/03 16:22:23 sam Exp $
7 * Author: Stéphane Borel <stef@via.ecp.fr>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
22 *****************************************************************************/
24 /*****************************************************************************
26 *****************************************************************************/
28 /* Logical block size for DVD-VIDEO */
29 #define LB2OFF(x) ((off_t)(x) * (off_t)(DVD_VIDEO_LB_LEN))
30 #define OFF2LB(x) ((x) >> 11)
32 /*****************************************************************************
33 * thread_dvd_data_t: extension of input_thread_t for DVD specificity.
34 *****************************************************************************/
35 typedef struct thread_dvd_data_s
37 dvd_reader_t * p_dvdread;
40 ifo_handle_t * p_vmg_file;
41 ifo_handle_t * p_vts_file;
48 tt_srpt_t * p_tt_srpt;
55 unsigned int i_pack_len;
56 unsigned int i_cur_block;
57 unsigned int i_next_vobu;
58 unsigned int i_end_block;