forked from zillevdr/vdr-plugin-softhddevice-drm
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsofthdosdprovider.h
More file actions
64 lines (54 loc) · 1.45 KB
/
softhdosdprovider.h
File metadata and controls
64 lines (54 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// SPDX-License-Identifier: AGPL-3.0-or-later
/**
* @file softhdosdprovider.h
* OSD Provider Header File
*
* @copyright 2011, 2014 by Johns. All Rights Reserved.
* @copyright 2018 - 2019 zille. All Rights Reserved.
* @copyright 2025 - 2026 by Andreas Baierl. All Rights Reserved.
*
* @license{AGPL-3.0-or-later}
*/
#ifndef __SOFTOSDPROVIDER_H
#define __SOFTOSDPROVIDER_H
#ifdef USE_GLES
#include <memory>
#endif
#include <vdr/osd.h>
#ifdef USE_GLES
class cOglThread;
#endif
class cSoftHdDevice;
/**
* Plugin OSD provider
*
* @ingroup osd
*/
class cSoftOsdProvider:public cOsdProvider {
public:
cSoftOsdProvider(cSoftHdDevice *);
virtual ~cSoftOsdProvider();
virtual cOsd * CreateOsd(int, int, uint);
virtual bool ProvidesTrueColor(void) { return true; };
#ifdef USE_GLES
void RequestStopOpenGlThread(void);
void StopOpenGlThread(void);
bool LockOpenGlThread(void);
void UnlockOpenGlThread(void);
const cImage *GetImageData(int ImageHandle);
void OsdSizeChanged(void);
#endif
private:
cOsd *m_pOsd; ///< pointer to single OSD (currently not really used in cSoftOsdProvider?)
cSoftHdDevice *m_pDevice; ///< pointer to the cSoftHdDevice object
#ifdef USE_GLES
std::shared_ptr<cOglThread> m_pOglThread; ///< OpenGL OSD thread
bool StartOpenGlThread(void);
#endif
protected:
#ifdef USE_GLES
virtual int StoreImageData(const cImage &Image);
virtual void DropImageData(int ImageHandle);
#endif
};
#endif