summaryrefslogtreecommitdiff
path: root/spuencoder.h
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2009-09-01 21:08:41 +0200
committerChristian Gmeiner <christian.gmeiner@gmail.com>2009-09-01 21:08:41 +0200
commitfb26356711da077ff968ff17611c174c3c99a075 (patch)
treeac1d2019f12c49e46a7a027cf1d5e3cea33a93d3 /spuencoder.h
parent5ed8081f340460a233e361173564ed18d9feef20 (diff)
downloadvdr-plugin-dxr3-fb26356711da077ff968ff17611c174c3c99a075.tar.gz
vdr-plugin-dxr3-fb26356711da077ff968ff17611c174c3c99a075.tar.bz2
add a storage for encoded rle data and fix compilation
Diffstat (limited to 'spuencoder.h')
-rw-r--r--spuencoder.h9
1 files changed, 9 insertions, 0 deletions
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];