How to convert 24bit to 32 bit in Python?

162 Views Asked by At

How to convert 24bit to 32bit in Python?

I have a binary file with 24i24q, meaning 24bits for each sample.

They are big endian.

I thought about open the file and save each sample to a Numpy array.

Then taking each item from the Numpy array and convert it from 24bits to float 32bits. Then return Numpy array with each array is a pair of float32, so each item (pair of i+q) is Numpy.complex64, am I correct?

Thanks in advance.

I try to look on other sources on the internet but nothing was the same as the problem I have if I'm not wrong.

0

There are 0 best solutions below