44 PVideoOutputDevice_SDL();
48 ~PVideoOutputDevice_SDL();
102 virtual bool ApplicationMain();
106 struct SDL_Window * m_window;
107 struct SDL_Renderer * m_renderer;
108 struct SDL_Texture * m_texture;
113 void InternalClose();
114 void InternalSetFrameSize();
115 void InternalSetFrameData();
116 void PostEvent(
unsigned code,
bool wait);
118 friend class PSDL_System;
122 typedef PVideoOutputDevice_SDL PSDLVideoDevice;
127 #endif // PTLIB_VSDL_H
#define PCLASSINFO(cls, par)
Declare all the standard PTLib class information.
Definition: object.h:2164
virtual PBoolean Open(const PString &deviceName, PBoolean startImmediate=true)=0
Open the device given the device name.
This is an array collection class of PString objects.
Definition: pstring.h:2365
#define PDECLARE_MUTEX(...)
Definition: mutex.h:200
virtual PBoolean IsOpen()=0
Determine if the device is currently open.
bool PBoolean
Definition: object.h:174
The character string class.
Definition: pstring.h:108
virtual PStringArray GetDeviceNames() const =0
Get a list of all of the drivers available.
virtual PBoolean SetFrameData(const FrameData &frameData)=0
Set a section of the output frame buffer.
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:785
This class defines a video output device.
Definition: videoio.h:712
This class defines a thread synchronisation object.
Definition: syncpoint.h:63