diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-09-22 00:51:47 +0200 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-09-22 00:51:47 +0200 |
commit | ec3c948a30852562051022fa6bd3dc48501af416 (patch) | |
tree | 62e48268525675d33bddf2218eae6d835b19339e /spuencoder.h | |
parent | 2674ee01561d08865a99e25420cd6798227eaf42 (diff) | |
download | vdr-plugin-dxr3-ec3c948a30852562051022fa6bd3dc48501af416.tar.gz vdr-plugin-dxr3-ec3c948a30852562051022fa6bd3dc48501af416.tar.bz2 |
add method to write region information data and switch to a std::vector to hold regions
Diffstat (limited to 'spuencoder.h')
-rw-r--r-- | spuencoder.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spuencoder.h b/spuencoder.h index 7ef0b10..149ee5c 100644 --- a/spuencoder.h +++ b/spuencoder.h @@ -29,7 +29,7 @@ #include <stdint.h> #include <vdr/osd.h> -#include <queue> +#include <vector> #include "dxr3singleton.h" #include "spuregion.h" @@ -58,7 +58,7 @@ private: int32_t written; // how much data are written sRle rleData; // storage for encoded data - std::queue<cSpuRegion *> regions; + std::vector<cSpuRegion *> regions; int numColors; // len of tColor array of current bitmap const tColor* colors; // pointer to tColor array from current bitmap @@ -67,6 +67,7 @@ private: void writeNibble(uint8_t val); void writeColorAndAlpha(sSection &sec, bool withCMD); + void writeRegionInformation(); void generateColorPalette(); void generateSpuData(bool topAndBottom) throw (char const* ); |