SimuPoLAS / blocky

blocky compression algorithm implementation in c++ for OpenFOAM
GNU General Public License v3.0
1 stars 3 forks source link

the decompression issue #11

Open UgiNyaa opened 6 years ago

UgiNyaa commented 6 years ago

Compressing is almost completely working, but on the decompression side, there is still much to do.

We have already discussed many things regarding this topic. The method I liked the most was also the one with the least work. Although it's not efficient, it would just get the decompression working for now.

When the buffer is initialized and it is known, that its going to be used for reading, we can just decompress the ".data" file and fill up the memory with the blockynumbers, and when an underflow is called, just push that numbers into the buffer.

The keywords here is "fill up the memory", which could be a problem when dealing with larger files, but for now, lets ignore this aspect and concentrate on getting it to work.

So the underflow method would be just filling up the buffer with the content of the ".meta" file, but when it reaches a point marked in the meta header (where blockydata compression has occured), it would fill up with the already decompressed blockynumbers instead.

This has very high priority!

ghost commented 6 years ago

the general decompression concept is up and running, however there are still some other issues to be taken care of before we can call blocky a finished project, update explaining the decompression will probably follow whenever I take the time to write it up