luma.core.util
¶
-
luma.core.util.
bytes_to_nibbles
(data)[source]¶ Utility function to take a list of bytes (8 bit values) and turn it into a list of nibbles (4 bit values)
- Parameters
data (list) – a list of 8 bit values that will be converted
- Returns
a list of 4 bit values
- Return type
New in version 1.16.0.
-
luma.core.util.
from_16_to_8
(data)[source]¶ Utility function to take a list of 16 bit values and turn it into a list of 8 bit values
- Parameters
data (list) – list of 16 bit values to convert
- Returns
a list of 8 bit values
- Return type
New in version 1.16.0.
-
luma.core.util.
from_8_to_16
(data)[source]¶ Utility function to take a list of 8 bit values and turn it into a list of signed 16 bit integers
- Parameters
data (list) – list of 8 bit values to convert
- Returns
a list of 16 bit values
- Return type
New in version 1.16.0.