diff options
-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]; |