#include <videoio.h>
Inheritance diagram for PVideoOutputDeviceRGB:
Public Member Functions | |
PVideoOutputDeviceRGB () | |
Create a new video output device. | |
virtual PBoolean | SetColourFormat (const PString &colourFormat) |
Set the colour format to be used. | |
virtual PBoolean | SetFrameSize (unsigned width, unsigned height) |
Set the frame size to be used. | |
virtual PINDEX | GetMaxFrameBytes () |
Get the maximum frame size in bytes. | |
virtual PBoolean | SetFrameData (unsigned x, unsigned y, unsigned width, unsigned height, const BYTE *data, PBoolean endFrame=true) |
Set a section of the output frame buffer. | |
virtual PBoolean | FrameComplete ()=0 |
Indicate frame may be displayed. | |
Protected Attributes | |
PMutex | mutex |
PINDEX | bytesPerPixel |
PINDEX | scanLineWidth |
bool | swappedRedAndBlue |
PVideoOutputDeviceRGB::PVideoOutputDeviceRGB | ( | ) |
Create a new video output device.
virtual PBoolean PVideoOutputDeviceRGB::FrameComplete | ( | ) | [pure virtual] |
Indicate frame may be displayed.
virtual PINDEX PVideoOutputDeviceRGB::GetMaxFrameBytes | ( | ) | [virtual] |
Get the maximum frame size in bytes.
Note a particular device may be able to provide variable length frames (eg motion JPEG) so will be the maximum size of all frames.
Implements PVideoDevice.
Set the colour format to be used.
Note that this function does not do any conversion. If it returns true then the video device does the colour format in native mode.
To utilise an internal converter use the SetColourFormatConverter() function.
Default behaviour sets the value of the colourFormat variable and then returns true.
Reimplemented from PVideoFrameInfo.
virtual PBoolean PVideoOutputDeviceRGB::SetFrameSize | ( | unsigned | width, | |
unsigned | height | |||
) | [virtual] |
Set the frame size to be used.
Note that devices may not be able to produce the requested size, and this function will fail. See SetFrameSizeConverter().
Default behaviour sets the frameWidth and frameHeight variables and returns true.
width | New width of frame |
height | New height of frame |
Reimplemented from PVideoDevice.
PINDEX PVideoOutputDeviceRGB::bytesPerPixel [protected] |
PMutex PVideoOutputDeviceRGB::mutex [protected] |
PINDEX PVideoOutputDeviceRGB::scanLineWidth [protected] |
bool PVideoOutputDeviceRGB::swappedRedAndBlue [protected] |