56 virtual size_t bufsize()
const override;
72 virtual size_t readio(
void *data,
size_t size)
override;
77 virtual int error()
const override;
82 virtual int64_t
duration()
const override;
87 virtual size_t size()
const override;
92 virtual size_t tell()
const override;
106 virtual int seek(int64_t offset,
int whence)
override;
111 virtual bool eof()
const override;
115 virtual void closeio()
override;
virtual int openio(LPVIRTUALFILE virtualfile) override
Open a file.
virtual int seek(int64_t offset, int whence) override
Seek to position in file.
virtual int64_t duration() const override
Get the duration of the file, in AV_TIME_BASE fractional seconds.
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 void closeio() override
Close virtual file.
virtual size_t readio(void *data, size_t size) override
Read data from file.
void pvt_close()
Close virtual file. Non-virtual version to be safely called from constructor/destructor.
FILE * m_fpi
File pointer to source media.
virtual size_t size() const override
Get the file size.
virtual size_t tell() const override
Get current read position.
LPVIRTUALFILE virtualfile()
Get virtual file object.
VIRTUALTYPE
Virtual file types enum.