34 #ifndef PTLIB_PVIDFILE_H
35 #define PTLIB_PVIDFILE_H
62 PFile::OpenOptions opts = PFile::ModeDefault
65 virtual PBoolean IsOpen()
const {
return m_file.IsOpen(); }
66 virtual PBoolean Close() {
return m_file.Close(); }
68 virtual PBoolean WriteFrame(
const void * frame);
69 virtual PBoolean ReadFrame(
void * frame);
71 virtual off_t GetLength()
const;
76 virtual off_t GetPosition()
const;
90 const PFilePath & GetFilePath()
const {
return m_file.GetFilePath(); }
94 PINDEX GetFrameBytes()
const {
return m_frameBytes; }
98 bool m_fixedFrameSize;
99 bool m_fixedFrameRate;
101 off_t m_headerOffset;
102 off_t m_frameHeaderLen;
111 class PYUVFile :
public PVideoFile
120 PFile::OpenOptions opts = PFile::ModeDefault
123 virtual PBoolean WriteFrame(
const void * frame);
124 virtual PBoolean ReadFrame(
void * frame);
135 #endif // PTLIB_PVIDFILE_H