#include <videoio.h>
Inheritance diagram for PVideoOutputDeviceRGB:
Public Member Functions | |
PVideoOutputDeviceRGB () | |
virtual BOOL | SetColourFormat (const PString &colourFormat) |
virtual BOOL | SetFrameSize (unsigned width, unsigned height) |
virtual PINDEX | GetMaxFrameBytes () |
virtual BOOL | SetFrameData (unsigned x, unsigned y, unsigned width, unsigned height, const BYTE *data, BOOL endFrame=TRUE) |
virtual BOOL | FrameComplete ()=0 |
Protected Attributes | |
PMutex | mutex |
PBYTEArray | frameStore |
PINDEX | bytesPerPixel |
PINDEX | scanLineWidth |
bool | swappedRedAndBlue |
|
Create a new video output device. |
|
Indicate frame may be displayed. |
|
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 PVideoDevice. |
|
Set a section of the output frame buffer. Implements PVideoOutputDevice. |
|
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.
Reimplemented from PVideoDevice. |
|
|
|
|
|
|
|
|
|
|