2
reads input data from cdrom
3
Copyright (C) 1999 Martin Vogt
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU Library General Public License as published by
7
the Free Software Foundation.
9
For more information look at the file COPYRIGHT in this package
15
#ifndef __VIDEOCDINPUTSTREAM_H
16
#define __VIDEOCDINPUTSTREAM_H
20
#include "inputStream.h"
24
#define _CDROM_FRAMES 75
25
#define _CDROM_SECS 60
29
This is necessary because CD-I or VCD disks are not correctly
30
mounted by the linux kernel.
31
Windows seems to do it correct (sometimes, the other time it nearly crash)
32
During my test I found out that CD-I and VCD seems to be different.
33
One works with the CD-I loader the other with the VCD loader.
35
This class tries to find out if its a CD-I / VCD stream.
36
Then you can set the interface and load from this interface.
38
This class depends on the reader routines from xreadcdi/ xreadvcd,
39
Author: Ales Makarov <xmakarov@sun.felk.cvut.cz>
40
FTP : ftp://mca.sh.cvut.cz/pub/readvcd/
42
The code is used in a few other packages, in which I looked as well.
49
class CDRomInputStream : public InputStream{
51
CDRomRawAccess* cdRomRawAccess;
66
int open(const char* dest);
71
int read(char* ptr,int size);
72
int seek(long bytePos);
75
long getBytePosition();
80
long getBytePos(int min,int sec);
82
int setTimePos(int posInTime);