summaryrefslogtreecommitdiff
path: root/logo.h
diff options
context:
space:
mode:
Diffstat (limited to 'logo.h')
-rw-r--r--logo.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/logo.h b/logo.h
new file mode 100644
index 0000000..d331c1d
--- /dev/null
+++ b/logo.h
@@ -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