diff options
author | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2014-03-15 13:52:14 +0100 |
---|---|---|
committer | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2014-03-15 13:52:14 +0100 |
commit | 0cd8136a9a58501332ed808c7d92bd1ffcd57c01 (patch) | |
tree | 143d421d37ca4f22238155789de8e34751a2a50a /imagecache.h | |
parent | 26ea9ceb9851ba99029bd9fdf2ed33ce9585870b (diff) | |
download | skin-flatplus-0cd8136a9a58501332ed808c7d92bd1ffcd57c01.tar.gz skin-flatplus-0cd8136a9a58501332ed808c7d92bd1ffcd57c01.tar.bz2 |
add pre load cache, menu entr to show amount of cached images, fix topbar channel logo in program menu
Diffstat (limited to 'imagecache.h')
-rw-r--r-- | imagecache.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/imagecache.h b/imagecache.h index edeb8f41..00ee007d 100644 --- a/imagecache.h +++ b/imagecache.h @@ -4,6 +4,10 @@ #include <string> #define MAX_IMAGE_CACHE 999 +#define LOGO_PRE_CACHE 200 +// note MAX_LOGO_PRE_CACHE is used twice +// one for displaychannel and one for menu +// you must double the value for the real amount of pre cached logos class cImageCache { private: @@ -13,13 +17,18 @@ private: int CacheHeight[MAX_IMAGE_CACHE]; int InsertIndex; + bool Overflow; public: cImageCache(); ~cImageCache(); void Create(void); void Clear(void); - + + int getCacheCount(void) { if(Overflow) return MAX_IMAGE_CACHE; return InsertIndex+1; } + cImage *GetImage(std::string Name, int Width, int Height); void InsertImage(cImage *Image, std::string Name, int Width, int Height); + + void PreLoadImage(void); }; |