]> git.sesse.net Git - vlc/blob - plugins/vcd/linux_cdrom_tools.h
85c6615f22424fdd17e8b6d443c4413b8f30723b
[vlc] / plugins / vcd / linux_cdrom_tools.h
1 /****************************************************************************
2  * linux_cdrom_tools.h: linux cdrom tools header
3  *****************************************************************************
4  * Copyright (C) 1998-2001 VideoLAN
5  *
6  * Author: Johan Bilien <jobi@via.ecp.fr>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  * 
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
21  *****************************************************************************/
22
23 #if defined(HAVE_BSD_DVD_STRUCT) || defined(DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H) || defined(DVD_STRUCT_IN_DVD_H)
24 #   include <dvd.h>
25 #else
26 #   include <linux/cdrom.h>
27 #endif
28
29 /* where the data start on a VCD sector */
30 #define VCD_DATA_START 24
31 /* size of the availablr data on a VCD sector */
32 #define VCD_DATA_SIZE 2324
33 /* size of a VCD sector, header and tail included */
34 #define VCD_SECTOR_SIZE 2352
35
36 /******************************************************************************
37 * Prototypes                                                                  *
38 ******************************************************************************/
39 int VCDReadToc    ( struct thread_vcd_data_s * );
40 int VCDReadSector ( struct thread_vcd_data_s *, byte_t * );
41