48 PVideoOutputDevice_SDL();
52 ~PVideoOutputDevice_SDL();
119 struct SDL_Overlay * m_overlay;
125 void UpdateContent();
126 void CreateOverlay(
struct SDL_Surface * surface);
128 void PostEvent(
unsigned codei,
bool wait);
130 friend class PSDL_Window;
134 typedef PVideoOutputDevice_SDL PSDLVideoDevice;
139 #endif // PTLIB_VSDL_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 PINDEX GetMaxFrameBytes()=0
Get the maximum frame size in bytes.
This is an array collection class of PString objects.
Definition: pstring.h:2024
BOOL PBoolean
Definition: object.h:102
virtual PBoolean IsOpen()=0
Determine if the device is currently open.
The character string class.
Definition: pstring.h:108
virtual PStringArray GetDeviceNames() const =0
Get a list of all of the drivers available.
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:771
This class defines a video output device.
Definition: videoio.h:703
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.
This class defines a thread synchronisation object.
Definition: syncpoint.h:67