dvd.h 2.69 KB
Newer Older
1 2 3 4
/*****************************************************************************
 * dvd.h: thread structure of the DVD plugin
 *****************************************************************************
 * Copyright (C) 1999-2001 VideoLAN
5
 * $Id: dvd.h,v 1.2 2002/12/06 16:34:04 sam Exp $
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
 *
 * Author: Stéphane Borel <stef@via.ecp.fr>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
 *****************************************************************************/

/*****************************************************************************
 * Preamble
 *****************************************************************************/
/* Logical block size for DVD-VIDEO */
#define DVD_LB_SIZE 2048
#define LB2OFF(x) ((off_t)(x) * (off_t)(DVD_LB_SIZE))
#define OFF2LB(x) ((x) >> 11)

/*****************************************************************************
 * thread_dvd_data_t: extension of input_thread_t for DVD specificity.
 *****************************************************************************/
typedef struct thread_dvd_data_s
{
    dvdcss_handle           dvdhandle;                   /* libdvdcss handle */

39 40
    unsigned int            i_audio_nb;
    unsigned int            i_spu_nb;
41 42

    /* Navigation information */
43 44
    unsigned int            i_title;
    unsigned int            i_title_id;
45

46 47
    unsigned int            i_chapter_nb;
    unsigned int            i_chapter;
48 49
    vlc_bool_t              b_new_chapter;

50 51
    unsigned int            i_angle_nb;
    unsigned int            i_angle;
52

53 54 55
    unsigned int            i_map_cell;   /* cell index in adress map */
    unsigned int            i_prg_cell;   /* cell index in program map */
    unsigned int            i_angle_cell; /* cell index in the current angle */
56

57 58 59
    unsigned int            i_vts_start;  /* offset to beginning of vts */
    unsigned int            i_vts_lb;     /* sector in vts */
    unsigned int            i_last_lb;    /* last sector of current cell */
60 61 62 63 64 65

    /* Structure that contains all information of the DVD */
    struct ifo_s *          p_ifo;

} thread_dvd_data_t;