]> git.sesse.net Git - vlc/blob - modules/access/dvdplay/dvd.h
* ./modules/*: moved plugins to the new tree. Yet untested builds include
[vlc] / modules / access / dvdplay / dvd.h
1 /*****************************************************************************
2  * dvd.h: structure of the dvdplay plugin
3  *****************************************************************************
4  * Copyright (C) 1999-2001 VideoLAN
5  * $Id: dvd.h,v 1.1 2002/08/04 17:23:42 sam 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 #include <dvdread/dvd_reader.h>
28 #include <dvdread/ifo_types.h>
29 #include <dvdread/ifo_read.h>
30 #include <dvdread/nav_read.h>
31 #include <dvdread/nav_print.h>
32
33 #include <dvdplay/dvdplay.h>
34 #include <dvdplay/info.h>
35 #include <dvdplay/nav.h>
36 #include <dvdplay/state.h>
37
38 #define LB2OFF(x) ((off_t)(x) * (off_t)(DVD_VIDEO_LB_LEN))
39 #define OFF2LB(x) ((x) / DVD_VIDEO_LB_LEN)
40
41
42 /*****************************************************************************
43  * dvd_data_t: structure for communication between dvdplay access, demux
44  * and intf.
45  *****************************************************************************/
46 typedef struct
47 {
48     dvdplay_ptr             vmg;
49     intf_thread_t *         p_intf;
50
51     int                     i_audio_nb;
52     int                     i_spu_nb;
53
54     int                     i_still_time;
55     vlc_bool_t              b_end_of_cell;
56
57     dvdplay_event_t         event;
58     dvdplay_ctrl_t          control;   
59
60 } dvd_data_t;
61