0

I need to compress monochromatic bitmap with modified huffman algorithm

here's the algorithm: http://www.iet.unipi.it/m.luise/HTML...n%20Coding.htm

as you see i need to replace pixel (bits) sequence with some bits sequence variable length

so im not sure which type to use for bits manipulation

iI found this class for bits http://www.codeguru.com/cpp/cpp/cpp_...nipulation.htm

and this for bits array http://www.codeguru.com/cpp/cpp/cpp_...ms-of-Bits.htm

so the dificult part is that all those are variable length i need to work with

should I use:

vector<vector<CBitPointer>>

or

CByteArray array;

CBitStream stream(array);

any help is appreciated!