imap_processing.codice.decompress.decompress#

imap_processing.codice.decompress.decompress(compressed_bytes: bytes, algorithm: IntEnum) list[int]#

Perform decompression on a byte stream into a list of integers.

Apply the appropriate decompression algorithm(s) based on the value of the algorithm attribute. One or more individual algorithms may be applied to a given compressed value.

Parameters:
  • compressed_bytes (bytes) – The compressed byte stream.

  • algorithm (int) – The algorithm to apply. Supported algorithms are provided in the codice_utils.CoDICECompression class.

Returns:

decompressed_values – The 24- or 32-bit decompressed values.

Return type:

list[int]