34 #ifndef PTLIB_PVIDFILE_H
35 #define PTLIB_PVIDFILE_H
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(); }
91 PINDEX GetFrameBytes()
const {
return m_frameBytes; }
95 bool m_fixedFrameSize;
96 bool m_fixedFrameRate;
107 class PYUVFile :
public PVideoFile
119 virtual PBoolean WriteFrame(
const void * frame);
120 virtual PBoolean ReadFrame(
void * frame);
131 #endif // PTLIB_PVIDFILE_H
This class represents a disk file.
Definition: file.h:60
#define PCLASSINFO(cls, par)
Declare all the standard PTLib class information.
Definition: object.h:1049
virtual PBoolean SetFrameRate(unsigned rate)
Set the video frame rate to be used on the device.
This class describes a full description for a file on the particular platform.
Definition: filepath.h:65
File can be both read and written.
Definition: file.h:80
virtual PBoolean SetFrameSize(unsigned width, unsigned height)
Set the frame size to be used.
BOOL PBoolean
Definition: object.h:102
#define PFACTORY_LOAD(ConcreteType)
Definition: pfactory.h:431
FilePositionOrigin
Options for the origin in setting the file position.
Definition: file.h:457
File options depend on the OpenMode parameter.
Definition: file.h:95
Set position relative to start of file.
Definition: file.h:459
OpenMode
When a file is opened, it may restrict the access available to operations on the object instance...
Definition: file.h:77