]> git.sesse.net Git - vlc/blob - plugins/dvdread/input_dvdread.h
* ./extras/MacOSX_dvdioctl: removed outdated files.
[vlc] / plugins / dvdread / input_dvdread.h
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.6 2002/03/04 01:53:56 stef Exp $
6  *
7  * Author: Stéphane Borel <stef@via.ecp.fr>
8  *
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.
13  *
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.
18  *
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  *****************************************************************************/
23
24 /*****************************************************************************
25  * Preamble
26  *****************************************************************************/
27
28 /* dvdread includes */
29 #include "dvd_reader.h"
30 #include "ifo_types.h"
31 #include "ifo_read.h"
32 #include "dvd_udf.h"
33 #include "nav_read.h"
34 #include "nav_print.h"
35
36 /* Logical block size for DVD-VIDEO */
37 #define LB2OFF(x) ((off_t)(x) * (off_t)(DVD_VIDEO_LB_LEN))
38 #define OFF2LB(x) ((x) >> 11)
39
40 /*****************************************************************************
41  * thread_dvd_data_t: extension of input_thread_t for DVD specificity.
42  *****************************************************************************/
43 typedef struct thread_dvd_data_s
44 {
45     dvd_reader_t *          p_dvdread;
46     dvd_file_t *            p_title;
47
48     ifo_handle_t *          p_vmg_file;
49     ifo_handle_t *          p_vts_file;
50             
51     int                     i_title;
52     int                     i_chapter;
53     int                     i_angle;
54     int                     i_angle_nb;
55
56     tt_srpt_t *             p_tt_srpt;
57     pgc_t *                 p_cur_pgc;
58
59     dsi_t                   dsi_pack;
60
61     int                     i_ttn;
62     
63     unsigned int            i_pack_len;
64     unsigned int            i_cur_block;
65     unsigned int            i_next_vobu;
66     unsigned int            i_end_block;
67
68     int                     i_cur_cell;
69     int                     i_next_cell;
70     boolean_t               b_eoc;
71 } thread_dvd_data_t;
72