diff options
Diffstat (limited to 'dxr3osd.h')
-rw-r--r-- | dxr3osd.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/dxr3osd.h b/dxr3osd.h new file mode 100644 index 0000000..234689e --- /dev/null +++ b/dxr3osd.h @@ -0,0 +1,42 @@ +#ifndef _DXR3_OSD_H_ +#define _DXR3_OSD_H_ + +#include "dxr3vdrincludes.h" +#include "dxr3interface_spu_encoder.h" + +#if VDRVERSNUM >= 10307 + +// ================================== +// osd plugin provider +class cDxr3OsdProvider : public cOsdProvider +{ +public: + cDxr3OsdProvider() {} + virtual cOsd *CreateOsd(int Left, int Top); +}; + +#else /*VDRVERSNUM*/ + +// ================================== +// osd interface for =< vdr1,3,7 +class cDxr3Osd : public cOsdBase +{ +private: + cSPUEncoder* Spu; + + bool SetWindow(cWindow*); + +public: + cDxr3Osd(int x, int y); + ~cDxr3Osd(); + + virtual bool OpenWindow(cWindow *Window); + virtual void CommitWindow(cWindow *Window); + virtual void ShowWindow(cWindow *Window); + virtual void HideWindow(cWindow *Window, bool Hide); + virtual void CloseWindow(cWindow *Window); + virtual void MoveWindow(cWindow *Window, int x, int y); +}; + +#endif /*VDRVERSNUM*/ +#endif /*_DXR3_OSD_H_*/ |