|
vdr-plugin-softhddevice-drm-gles 1.6.4-d0291bb
|
Plugin OSD provider. More...
#include <softhdosdprovider.h>
Public Member Functions | |
| cSoftOsdProvider (cSoftHdDevice *) | |
| Create a new OSD provider. | |
| virtual | ~cSoftOsdProvider () |
| Delete the OSD provider and stop the OpenGL thread if running. | |
| virtual cOsd * | CreateOsd (int, int, uint) |
| Create a new OSD. | |
| virtual bool | ProvidesTrueColor (void) |
| void | RequestStopOpenGlThread (void) |
| Initiate a stop of the OpenGL thread without waiting. | |
| void | StopOpenGlThread (void) |
| Stop the OpenGL thread and cancel it if necessary. | |
| bool | LockOpenGlThread (void) |
| Lock the OpenGL thread. | |
| void | UnlockOpenGlThread (void) |
| Unlock the OpenGL thread. | |
| const cImage * | GetImageData (int ImageHandle) |
| Get stored image data. | |
| void | OsdSizeChanged (void) |
| Stop the OpenGL thread, if the osd size changed and update the size. | |
Protected Member Functions | |
| virtual int | StoreImageData (const cImage &Image) |
| Store image data. | |
| virtual void | DropImageData (int ImageHandle) |
| Drop stored image data. | |
Private Member Functions | |
| bool | StartOpenGlThread (void) |
| Start the OpenGL thread. | |
Private Attributes | |
| cOsd * | m_pOsd |
| pointer to single OSD (currently not really used in cSoftOsdProvider?) | |
| cSoftHdDevice * | m_pDevice |
| pointer to the cSoftHdDevice object | |
| std::shared_ptr< cOglThread > | m_pOglThread |
| OpenGL OSD thread. | |
Plugin OSD provider.
Definition at line 33 of file softhdosdprovider.h.
| cSoftOsdProvider::cSoftOsdProvider | ( | cSoftHdDevice * | device | ) |
Create a new OSD provider.
Definition at line 34 of file softhdosdprovider.cpp.
|
virtual |
Delete the OSD provider and stop the OpenGL thread if running.
Definition at line 44 of file softhdosdprovider.cpp.
References cSoftHdDevice::IsOsdProviderSet(), L_OSD, LOGDEBUG2, m_pDevice, cSoftHdDevice::OglOsdIsDisabled(), cSoftHdDevice::ResetOsdProvider(), and StopOpenGlThread().
Create a new OSD.
Create either a hardware accelerated (cOglOsd), software based (cSoftOsd) or dummy OSD (if detached)
| left | x-coordinate of OSD |
| top | y-coordinate of OSD |
| level | layer level of OSD |
Definition at line 66 of file softhdosdprovider.cpp.
References cSoftHdDevice::IsDetached(), L_OSD, LOGDEBUG, LOGDEBUG2, m_pDevice, m_pOglThread, m_pOsd, cSoftHdDevice::OglOsdIsDisabled(), cSoftHdDevice::SetDisableOglOsd(), and StartOpenGlThread().
Drop stored image data.
Definition at line 204 of file softhdosdprovider.cpp.
References m_pOglThread, and StartOpenGlThread().
Get stored image data.
Definition at line 197 of file softhdosdprovider.cpp.
Lock the OpenGL thread.
Definition at line 162 of file softhdosdprovider.cpp.
References L_OPENGL, LOGDEBUG2, and m_pOglThread.
Referenced by cSoftHdDevice::OnEventReceived().
Stop the OpenGL thread, if the osd size changed and update the size.
Definition at line 102 of file softhdosdprovider.cpp.
References m_pDevice, cSoftHdDevice::OglOsdIsDisabled(), and StopOpenGlThread().
Definition at line 39 of file softhdosdprovider.h.
Initiate a stop of the OpenGL thread without waiting.
Definition at line 141 of file softhdosdprovider.cpp.
References L_OPENGL, LOGDEBUG2, and m_pOglThread.
Referenced by cSoftHdDevice::OnEnteringState().
Start the OpenGL thread.
Definition at line 112 of file softhdosdprovider.cpp.
References L_OPENGL, LOGDEBUG2, LOGINFO, m_pDevice, m_pOglThread, cSoftHdDevice::MaxSizeGPUImageCache(), and cSoftHdDevice::OglOsdIsDisabled().
Referenced by CreateOsd(), DropImageData(), and StoreImageData().
Stop the OpenGL thread and cancel it if necessary.
Definition at line 151 of file softhdosdprovider.cpp.
References L_OPENGL, LOGDEBUG2, and m_pOglThread.
Referenced by cSoftHdDevice::OnEnteringState(), OsdSizeChanged(), and ~cSoftOsdProvider().
Store image data.
Definition at line 185 of file softhdosdprovider.cpp.
References m_pOglThread, and StartOpenGlThread().
Unlock the OpenGL thread.
Definition at line 175 of file softhdosdprovider.cpp.
References L_OPENGL, LOGDEBUG2, and m_pOglThread.
Referenced by cSoftHdDevice::OnEnteringState(), and cSoftHdDevice::OnEventReceived().
|
private |
pointer to the cSoftHdDevice object
Definition at line 51 of file softhdosdprovider.h.
Referenced by CreateOsd(), OsdSizeChanged(), StartOpenGlThread(), and ~cSoftOsdProvider().
|
private |
OpenGL OSD thread.
Definition at line 53 of file softhdosdprovider.h.
Referenced by CreateOsd(), DropImageData(), LockOpenGlThread(), RequestStopOpenGlThread(), StartOpenGlThread(), StopOpenGlThread(), StoreImageData(), and UnlockOpenGlThread().
|
private |
pointer to single OSD (currently not really used in cSoftOsdProvider?)
Definition at line 50 of file softhdosdprovider.h.
Referenced by CreateOsd().