diff options
author | Andreas Mair <amair.sob@googlemail.com> | 2007-02-14 12:24:25 +0100 |
---|---|---|
committer | Andreas Mair <amair.sob@googlemail.com> | 2007-02-14 12:24:25 +0100 |
commit | 2ced4d35c533969fdb0ee6fa963a2fef26c50b79 (patch) | |
tree | b49facd42724fda2ad7c294479373d8f0f08a527 /logo.h | |
download | vdr-plugin-skinenigmang-2ced4d35c533969fdb0ee6fa963a2fef26c50b79.tar.gz vdr-plugin-skinenigmang-2ced4d35c533969fdb0ee6fa963a2fef26c50b79.tar.bz2 |
2007-02-14: Version 0.0.1v0.0.1
- Initial release.
Diffstat (limited to 'logo.h')
-rw-r--r-- | logo.h | 35 |
1 files changed, 35 insertions, 0 deletions
@@ -0,0 +1,35 @@ +/* + * logo.h: The 'EnigmaNG' VDR skin + * + * See the README file for copyright information and how to reach the author. + * + */ + +#ifndef __SKINENIGMA_LOGO_H +#define __SKINENIGMA_LOGO_H + +#include <map> +#include <string> +#include <vdr/osd.h> + +#define ChannelLogoWidth 80 +#define ChannelLogoHeight 80 + +class cEnigmaLogoCache { +private: + unsigned int cacheSizeM; + cBitmap *bitmapM; + std::map<std::string, cBitmap*> cacheMapM; + bool LoadXpm(const char *fileNameP); +public: + cEnigmaLogoCache(unsigned int cacheSizeP); + ~cEnigmaLogoCache(); + bool Resize(unsigned int cacheSizeP); + bool Load(const char *fileNameP); + cBitmap& Get(void); + bool Flush(void); +}; + +extern cEnigmaLogoCache EnigmaLogoCache; + +#endif // __SKINENIGMA_LOGO_H |