Hi, I am completely new in data compression. I look for helps with my work described in the following.
I need to implement Elias Gamma Encoder/Decoder for a sequence of integers, using the C programming language. My main confuse is how people do the bit-level programmng in the process of encoding and decoding.
Because the number of bits for representing each integer is different and all operations deal with bits, should I just apply for a large chunk of memory, which stores the bit stream from the encoding of the integer sequence ? Should I then work on bit by bit in that memory space during the process of encoding and decoding ? Or is there any C library function that I can use to easy the bit-level operations ?
Is there any sample C code for the Elias Gamma Encoder/Decoder ? What I can find on wiki is C++ code, using some high-level pre-constructed classes for the bit-level operations, without the details on the actual bit-level operations.
I am a postdoc researcher and working on implementing compressed data structures, where this Gamma coding is a component. I am not a student looking for homework solutions here.
Thank you very much !