Blame genisoimage/ifo_types.h

Packit 45fded
/*
Packit 45fded
 * This file has been modified for the cdrkit suite.
Packit 45fded
 *
Packit 45fded
 * The behaviour and appearence of the program code below can differ to a major
Packit 45fded
 * extent from the version distributed by the original author(s).
Packit 45fded
 *
Packit 45fded
 * For details, see Changelog file distributed with the cdrkit package. If you
Packit 45fded
 * received this file from another source then ask the distributing person for
Packit 45fded
 * a log of modifications.
Packit 45fded
 *
Packit 45fded
 */
Packit 45fded
Packit 45fded
/* @(#)ifo_types.h	1.2 04/03/02 joerg */
Packit 45fded
Packit 45fded
#ifndef	_IFO_TYPES_H
Packit 45fded
#define	_IFO_TYPES_H
Packit 45fded
/*
Packit 45fded
 * Copyright (C) 2001, 2002 Billy Biggs <vektor@dumbterm.net>,
Packit 45fded
 *			    Håkan Hjort <d95hjort@dtek.chalmers.se>,
Packit 45fded
 *			    Olaf Beck <olaf_sc@yahoo.com>
Packit 45fded
 *			    (I only did the cut down no other contribs)
Packit 45fded
 *			    Jörg Schilling <schilling@fokus.gmd.de>
Packit 45fded
 *			    (making the code portable)
Packit 45fded
 * This program is free software; you can redistribute it and/or modify
Packit 45fded
 * it under the terms of the GNU General Public License as published by
Packit 45fded
 * the Free Software Foundation; either version 2 of the License, or (at
Packit 45fded
 * your option) any later version.
Packit 45fded
 *
Packit 45fded
 * This program is distributed in the hope that it will be useful, but
Packit 45fded
 * WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 45fded
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 45fded
 * General Public License for more details.
Packit 45fded
 *
Packit 45fded
 * You should have received a copy of the GNU General Public License
Packit 45fded
 * along with this program; if not, write to the Free Software
Packit 45fded
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
Packit 45fded
 */
Packit 45fded
Packit 45fded
/*
Packit 45fded
 * NOTE: This is a cut down version of libdvdread for genisoimage, due
Packit 45fded
 * to portability issues with the current libdvdread according to
Packit 45fded
 * the maintainer of genisoimage.
Packit 45fded
 * This cut down version only reads from a harddisk file structure
Packit 45fded
 * and it only implements the functions necessary inorder to make
Packit 45fded
 * genisoimage produce valid DVD-Video images.
Packit 45fded
 * DON'T USE THIS LIBRARY IN ANY OTHER PROGRAM GET THE REAL
Packit 45fded
 * LIBDVDREAD INSTEAD
Packit 45fded
 */
Packit 45fded
Packit 45fded
#include "dvd_reader.h"
Packit 45fded
Packit 45fded
Packit 45fded
typedef struct {
Packit 45fded
	UInt32_t	title_set_sector; 	/* sector */
Packit 45fded
} title_info_t;
Packit 45fded
Packit 45fded
Packit 45fded
typedef struct {
Packit 45fded
	UInt16_t	nr_of_srpts;
Packit 45fded
	title_info_t *	title;			/* array of title info */
Packit 45fded
} tt_srpt_t;
Packit 45fded
Packit 45fded
typedef struct {
Packit 45fded
	UInt32_t	vmg_last_sector;	/*sector */
Packit 45fded
	UInt32_t	vmgi_last_sector;	/* sector */
Packit 45fded
	UInt16_t	vmg_nr_of_title_sets;
Packit 45fded
	UInt32_t	vmgm_vobs;		/* sector */
Packit 45fded
	UInt32_t	tt_srpt;		/* sector */
Packit 45fded
} vmgi_mat_t;
Packit 45fded
Packit 45fded
Packit 45fded
Packit 45fded
typedef struct {
Packit 45fded
	UInt32_t	vts_last_sector;	/* sector */
Packit 45fded
	UInt32_t	vtsi_last_sector;	/* sector */
Packit 45fded
	UInt32_t	vtsm_vobs;		/* sector */
Packit 45fded
	UInt32_t	vtstt_vobs;		/* sector */
Packit 45fded
} vtsi_mat_t;
Packit 45fded
Packit 45fded
Packit 45fded
typedef struct {
Packit 45fded
	/* VMGI */
Packit 45fded
	vmgi_mat_t *	vmgi_mat;
Packit 45fded
	tt_srpt_t  *	tt_srpt;
Packit 45fded
Packit 45fded
	/* VTSI */
Packit 45fded
	vtsi_mat_t *	vtsi_mat;
Packit 45fded
} ifo_handle_t;
Packit 45fded
Packit 45fded
Packit 45fded
#endif	/* _IFO_TYPES_H */