diff --git a/src/lib/eyd_uncompressor.cpp b/src/lib/eyd_uncompressor.cpp index 13a88df..cbbba13 100644 --- a/src/lib/eyd_uncompressor.cpp +++ b/src/lib/eyd_uncompressor.cpp @@ -1,17 +1,17 @@ -#include "eyd_uncompressor.hh" +#include "eyd_uncompressor_rle1.hh" namespace EydLib { /* - class BitUncompressor { + class BitUncompressorRle1 { private: BitGroup _last_group; int _last_count; std::list _uncompressed; public: - BitUncompressor(); + BitUncompressorRle1(); void clear(); void append(BitGroup bg); @@ -20,19 +20,19 @@ namespace EydLib { }; */ - BitUncompressor::BitUncompressor(int size) : _rle(size) { + BitUncompressorRle1::BitUncompressorRle1(int size) : _rle(size) { _group_size = size; _last_count = 0; _status = UNCOMPRESSOR_STATUS_NORMAL; } - void BitUncompressor::clear(){ + void BitUncompressorRle1::clear(){ // we clear everything _last_count = 0; _uncompressed.clear(); } - void BitUncompressor::append(BitGroup data){ + void BitUncompressorRle1::append(BitGroup data){ switch (_status){ case UNCOMPRESSOR_STATUS_NORMAL: printf("STATUS NORMAL : %s\n", data.toString().c_str()); @@ -72,7 +72,7 @@ namespace EydLib { } } - std::list BitUncompressor::flush(){ + std::list BitUncompressorRle1::flush(){ // we add the data from _last* to the outlist std::list result; result = _uncompressed; @@ -80,7 +80,7 @@ namespace EydLib { return result; } - bool BitUncompressor::hasContent(){ + bool BitUncompressorRle1::hasContent(){ return (!_uncompressed.empty()); } }