diff --git a/src/lib/eyd_compressor.hh b/src/lib/eyd_compressor.hh index 0276a56..ae531fe 100644 --- a/src/lib/eyd_compressor.hh +++ b/src/lib/eyd_compressor.hh @@ -20,11 +20,12 @@ namespace EydLib { BitGroup _rle; BitGroup _last_group; int _last_count; + int _group_size; std::list _compressed; public: - BitCompressor(); + BitCompressor::BitCompressor(int size); void clear(); void append(BitGroup bg); diff --git a/src/tools/bitcompress.cpp b/src/tools/bitcompress.cpp index f846c56..f746dca 100644 --- a/src/tools/bitcompress.cpp +++ b/src/tools/bitcompress.cpp @@ -28,7 +28,7 @@ int main(int argc, char ** argv){ unsigned char c = (unsigned char)cell_size; bitwrite.writeDirect(&c, 1); - EydLib::BitCompressor compressor; + EydLib::BitCompressor compressor(cell_size); printf("File opened\n");