]> git.sesse.net Git - vlc/blobdiff - plugins/dvd/input_dvd.h
* Ported Glide and MGA plugins to the new module API. MGA never worked,
[vlc] / plugins / dvd / input_dvd.h
index 3f15d7f48feac421a11ea8db3af23d9bbff3b866..669e1d6abcd15fbce90cf3ebee237eebc793add4 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+/* Logical block size for DVD-VIDEO */
 #define DVD_LB_SIZE 2048
 
 /*****************************************************************************
- * thread_dvd_data_t: extension of input_thread_t for DVD specificity
+ * thread_dvd_data_t: extension of input_thread_t for DVD specificity.
  *****************************************************************************/
 typedef struct thread_dvd_data_s
 {
     int                     i_fd;               // File descriptor of device
     boolean_t               b_encrypted;        // CSS encryption
     int                     i_read_once;        // NB of bytes read by DVDRead
-    int                     i_title;            // Current Title
+
+    int                     i_start_byte;
+    int                     i_start_cell;
+    int                     i_end_cell;
+
     /* Scrambling Information */
-#if defined( HAVE_SYS_DVDIO_H ) || defined( LINUX_DVD )
+#if defined( HAVE_SYS_DVDIO_H ) || defined( LINUX_DVD ) || defined( SYS_BEOS )
     struct css_s            css;
 #endif
+
     /* Structure that contains all information of the DVD */
     struct ifo_s            ifo;
+
 } thread_dvd_data_t;
 
 /*****************************************************************************
  * Prototypes in dvd_ifo.c
  *****************************************************************************/
 struct ifo_s    IfoInit( int );
+int             IfoReadVTS( struct ifo_s * );
 void            IfoRead( struct ifo_s * );
 void            IfoEnd( ifo_t * );
 
 /*****************************************************************************
  * Prototypes in dvd_css.c
  *****************************************************************************/
-#if defined( HAVE_SYS_DVDIO_H ) || defined( LINUX_DVD )
+#if defined( HAVE_SYS_DVDIO_H ) || defined( LINUX_DVD ) || defined( SYS_BEOS )
 int             CSSTest     ( int );
 struct css_s    CSSInit     ( int );
-int             CSSGetKeys  ( struct css_s * );
+int             CSSGetKey   ( struct css_s * );
 int             CSSDescrambleSector( u8 * , u8 * );
 
 #endif