diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-09-01 21:08:41 +0200 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-09-01 21:08:41 +0200 |
commit | fb26356711da077ff968ff17611c174c3c99a075 (patch) | |
tree | ac1d2019f12c49e46a7a027cf1d5e3cea33a93d3 | |
parent | 5ed8081f340460a233e361173564ed18d9feef20 (diff) | |
download | vdr-plugin-dxr3-fb26356711da077ff968ff17611c174c3c99a075.tar.gz vdr-plugin-dxr3-fb26356711da077ff968ff17611c174c3c99a075.tar.bz2 |
add a storage for encoded rle data and fix compilation
-rw-r--r-- | spuencoder.c | 2 | ||||
-rw-r--r-- | spuencoder.h | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/spuencoder.c b/spuencoder.c index 79c76fe..d6d20e5 100644 --- a/spuencoder.c +++ b/spuencoder.c @@ -78,7 +78,7 @@ void cSpuEncoder::encode(cBitmap *bmap, int top, int left) // get needed informations about used colors colors = bitmap->Colors(numColors); - dsyslog("[dxr3-spuencoder] num colors %d", num); + dsyslog("[dxr3-spuencoder] num colors %d", numColors); // generate and upload color palette diff --git a/spuencoder.h b/spuencoder.h index e370612..c881dc6 100644 --- a/spuencoder.h +++ b/spuencoder.h @@ -32,6 +32,13 @@ static const int MAX_SPU_DATA = 65220; // TODO vaidate this value +struct sRle { + uint8_t top[MAX_SPU_DATA]; + uint8_t bottom[MAX_SPU_DATA]; + uint16_t topLen; + uint16_t bottomLen; +}; + class cSpuEncoder { public: void clearOsd(); @@ -46,6 +53,8 @@ private: uint32_t ncnt; // nibble count int32_t written; // how much data are written + sRle rleData; // storage for encoded data + int numColors; // len of tColor array of current bitmap const tColor* colors; // pointer to tColor array from current bitmap tColor opacity[16]; |