diff options
author | Andreas Regel <andreas.regel@powarman.de> | 2004-06-13 23:00:00 +0200 |
---|---|---|
committer | Andreas Regel <andreas.regel@powarman.de> | 2004-06-13 23:00:00 +0200 |
commit | 1df133b2a0565a35c3b07e043bd04b449869a0cb (patch) | |
tree | 7e29cb4b4e7ed2143a96b06a114cf68320ca9a2e /osd.h | |
parent | 2e17045cd1b8abe771d136cbc3a815b547d32280 (diff) | |
download | vdr-plugin-osdpip-1df133b2a0565a35c3b07e043bd04b449869a0cb.tar.gz vdr-plugin-osdpip-1df133b2a0565a35c3b07e043bd04b449869a0cb.tar.bz2 |
Release version 0.0.5v0.0.5
- added support for VDR version 1.3.7 and later (VDR 1.2.6 is still
supported, no guarantee for 1.3.0-1.3.6)
- no patching required any longer with 1.3.7 and later
- fixed info window colors if palette patch is not applied (VDR up to 1.3.6,
index patch must be applied)
- added german translations
- added finnish translations (thanks to Rolf Ahrenberg)
Diffstat (limited to 'osd.h')
-rw-r--r-- | osd.h | 43 |
1 files changed, 18 insertions, 25 deletions
@@ -7,15 +7,6 @@ #ifndef VDR_OSDPIP_OSD_H #define VDR_OSDPIP_OSD_H -extern "C" -{ -#ifdef HAVE_FFMPEG_STATIC -# include <avcodec.h> -#else -# include <ffmpeg/avcodec.h> -#endif -} - #include <sys/time.h> #include <vdr/osd.h> @@ -23,53 +14,55 @@ extern "C" #include <vdr/status.h> #include <vdr/receiver.h> +#include "decoder.h" + class cRingBufferFrame; class cOsdPipReceiver; class cQuantize; class cOsdPipObject: public cOsdObject, public cThread, public cStatus { private: +#if VDRVERSNUM >= 10307 + cOsd *m_Osd; +#else cOsdBase *m_Osd; + tWindowHandle m_Window; + tWindowHandle m_WindowInfo; +#endif cRingBufferFrame *m_ESBuffer; cOsdPipReceiver *m_Receiver; const cChannel *m_Channel; - tWindowHandle m_Window; cBitmap * m_Bitmap; - tWindowHandle m_WindowInfo; cBitmap * m_BitmapInfo; +#if VDRVERSNUM >= 10307 + int m_InfoX; + int m_InfoY; +#endif time_t m_ShowTime; bool m_ShowInfo; bool m_Active; bool m_Ready; +#if VDRVERSNUM >= 10307 + bool m_Reset; +#endif int m_Width, m_Height; int m_FrameDrop; - AVCodec * m_Codec; - AVCodecContext * m_Context; - AVFrame * m_PicDecoded; - AVFrame * m_PicResample; - AVFrame * m_PicConvert; - unsigned char * m_BufferResample; - unsigned char * m_BufferConvert; - unsigned int m_AlphaBase; unsigned int m_Palette[256]; int m_PaletteStart; - unsigned char m_PaletteLookup[256]; + cDecoder decoder; cQuantize * quantizer; - int Decode(unsigned char * data, int length); - int Resample(); - int ConvertToRGB(); void ProcessImage(unsigned char * data, int length); - void ShowChannelInfo(const cChannel * channel); + void ShowChannelInfo(const cChannel * channel, bool show = true); protected: virtual void Action(void); - virtual void ChannelSwitch(const cDevice * device, int channelNumber); + virtual void ChannelSwitch(const cDevice * device, int channelNumber); public: cOsdPipObject(cDevice *Device, const cChannel *Channel); |