]> git.sesse.net Git - vlc/blob - modules/access/vcdx/cdrom.h
* modules/codec/svcdsub.c,cvdsub.c: fixed Cr/Cb inversion in palette.
[vlc] / modules / access / vcdx / cdrom.h
1 /****************************************************************************
2  * cdrom.h: cdrom tools header
3  *****************************************************************************
4  * Copyright (C) 1998-2001 VideoLAN
5  * $Id$
6  *
7  * Authors: Johan Bilien <jobi@via.ecp.fr>
8  *          Gildas Bazin <gbazin@netcourrier.com>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  * 
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
23  *****************************************************************************/
24
25 #ifndef VCDX_CDROM_H
26 #define VCDX_CDROM_H
27
28 #include <cdio/cdio.h>
29 #include <cdio/logging.h>
30
31 /*****************************************************************************
32  * The cddev structure
33  *****************************************************************************/
34 typedef struct cddev_s
35 {
36     int    *p_sectors;                           /* tracks layout on the vcd */
37     CdIo  *cdio;                                /* libcdio uses this to read */
38
39 } cddev_t;
40
41 /*****************************************************************************
42  * Prototypes
43  *****************************************************************************/
44 cddev_t  *ioctl_Open         ( vlc_object_t *, const char * );
45 void      ioctl_Close        ( cddev_t * );
46 track_t   ioctl_GetTracksMap ( vlc_object_t *, const CdIo *, lsn_t ** );
47 int       ioctl_ReadSector   ( vlc_object_t *, const cddev_t *,
48                                int, byte_t * );
49 #endif /*VCDX_CDROM_H*/