68 virtual size_t bufsize()
const override;
86 virtual size_t readio(
void *data,
size_t size)
override;
91 virtual int error()
const override;
97 virtual int64_t
duration()
const override;
102 virtual size_t size()
const override;
107 virtual size_t tell()
const override;
122 virtual int seek(int64_t offset,
int whence)
override;
127 virtual bool eof()
const override;
131 virtual void closeio()
override;
LPVIRTUALFILE virtualfile()
Get virtual file object.
Video CD and Super Video CD I/O class.
virtual ~VcdIO()
Free VcdIO object.
bool m_full_title
If true, ignore m_chapter_no and provide full track.
virtual int seek(int64_t offset, int whence) override
Seek to position in file.
virtual size_t size() const override
Get the file size.
virtual void closeio() override
Close virtual file.
VcdIO()
Create VcdIO object.
int m_chapter_no
Chapter number (1..)
void pvt_close()
Close virtual file. Non-virtual version to be safely called from constructor/destructor.
uint64_t m_end_pos
End offset in bytes (not including this byte)
virtual int openio(LPVIRTUALFILE virtualfile) override
Open a virtual file.
FILE * m_fpi
File pointer to source media.
int m_track_no
Track number (1..)
virtual int64_t duration() const override
Get the duration of the file, in AV_TIME_BASE fractional seconds.
virtual size_t readio(void *data, size_t size) override
Read data from file.
uint64_t m_start_pos
Start offset in bytes.
virtual VIRTUALTYPE type() const override
Get type of the virtual file.
virtual bool eof() const override
Check if at end of file.
virtual int error() const override
Get last error.
virtual size_t bufsize() const override
Get the ideal buffer size.
virtual size_t tell() const override
Get current read position.
VIRTUALTYPE
Virtual file types enum.