summaryrefslogtreecommitdiff
path: root/spuencoder.h
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2009-09-01 14:31:24 +0200
committerChristian Gmeiner <christian.gmeiner@gmail.com>2009-09-01 14:31:24 +0200
commit3bd41879d4a8929ff0686ebb53c9c7c4016c9d32 (patch)
treecd361786822446ac88b00725e7bef9efb0f389d2 /spuencoder.h
parenta484bd02a29cc5856c3c9a0e93b5eddced7c9b09 (diff)
downloadvdr-plugin-dxr3-3bd41879d4a8929ff0686ebb53c9c7c4016c9d32.tar.gz
vdr-plugin-dxr3-3bd41879d4a8929ff0686ebb53c9c7c4016c9d32.tar.bz2
add method writeNibble and all needed members to cSpuEncoder
Diffstat (limited to 'spuencoder.h')
-rw-r--r--spuencoder.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/spuencoder.h b/spuencoder.h
index 56e5dee..61cda17 100644
--- a/spuencoder.h
+++ b/spuencoder.h
@@ -27,9 +27,22 @@
#ifndef SPUENCODER_H
#define SPUENCODER_H
+#include <stdint.h>
+
+static const int MAX_SPU_DATA = 65220; // TODO vaidate this value
+
class cSpuEncoder {
public:
void clearOsd();
+
+private:
+ uint8_t spu[MAX_SPU_DATA];
+ uint8_t *p; // pointer to current spu data
+ uint8_t nholder; // nibble holder
+ uint32_t ncnt; // nibble count
+ int32_t written; // how much data are written
+
+ void writeNibble(uint8_t val);
};
#endif // SPUENCODER_H