> if you need to read lots of 12-bit values, you can create a simple bitstream
> generator:
in private mail, Michal told me that his files were quite large, and that
the bitstream approach wasn't fast enough.
another way to do this is to use PIL's "bit" decoder:
import Image
im = Image.f
Michal Szpadzik wrote:
> I have some problems with bits data reading. I have binary data file where
> data is written as
> 12bits pack. I need to read it becouse there are saved values which have to
> processed later by my
> program. I was wandering about reading 3bytes=24bits and split it by