34 #ifndef PTLIB_PVFILEDEV_H
35 #define PTLIB_PVFILEDEV_H
63 Channel_PlayAndClose = 0,
64 Channel_PlayAndRepeat = 1,
65 Channel_PlayAndKeepLast = 2,
66 Channel_PlayAndShowBlack = 3,
72 PVideoInputDevice_YUVFile();
76 virtual ~PVideoInputDevice_YUVFile();
111 {
return GetInputDeviceNames(); }
133 PINDEX * bytesReturned = NULL
142 PINDEX * bytesReturned = NULL
152 VideoFormat videoFormat
199 unsigned & minHeight,
218 unsigned m_frameRateAdjust;
235 PVideoOutputDevice_YUVFile();
239 virtual ~PVideoOutputDevice_YUVFile();
246 {
return GetOutputDeviceNames(); }
307 #endif // PTLIB_PVFILEDEV_H
#define PCLASSINFO(cls, par)
Declare all the standard PTLib class information.
Definition: object.h:1049
virtual PBoolean Open(const PString &deviceName, PBoolean startImmediate=true)=0
Open the device given the device name.
virtual PBoolean SetFrameRate(unsigned rate)
Set the video frame rate to be used on the device.
virtual PINDEX GetMaxFrameBytes()=0
Get the maximum frame size in bytes.
This is an array collection class of PString objects.
Definition: pstring.h:2024
virtual PBoolean Start()
Start the video device I/O display.
Definition: videoio.h:788
virtual PBoolean Stop()=0
Stop the video device I/O capture.
BOOL PBoolean
Definition: object.h:102
virtual PBoolean Stop()
Stop the video device I/O display.
Definition: videoio.h:792
virtual PBoolean IsOpen()=0
Determine if the device is currently open.
virtual int GetNumChannels()
Get the number of video channels available on the device.
virtual PBoolean Start()=0
Start the video device I/O capture.
The character string class.
Definition: pstring.h:108
virtual PStringArray GetDeviceNames() const =0
Get a list of all of the drivers available.
Class for implementing an "adaptive" delay.
Definition: delaychan.h:52
virtual PBoolean SetFrameSize(unsigned width, unsigned height)
Set the frame size to be used.
virtual PBoolean SetColourFormat(const PString &colourFormat)
Set the colour format to be used.
virtual PBoolean Close()
Close the device.
Definition: videoio.h:784
This class defines a video output device.
Definition: videoio.h:716
virtual PBoolean SetChannel(int channelNumber)
Set the video channel to be used on the device.
virtual PBoolean SetFrameData(unsigned x, unsigned y, unsigned width, unsigned height, const BYTE *data, PBoolean endFrame=true)=0
Set a section of the output frame buffer.
virtual PBoolean GetFrameSizeLimits(unsigned &minWidth, unsigned &minHeight, unsigned &maxWidth, unsigned &maxHeight)
Get the minimum & maximum size of a frame on the device.
virtual PBoolean SetVideoFormat(VideoFormat videoFormat)
Set the video format to be used.