imap_processing.codice.decompress.decompress#

imap_processing.codice.decompress.decompress(compressed_value: int, algorithm: IntEnum) int#

Decompress the value.

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_value (int) – The 8-bit compressed value to decompress

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

Returns:

decompressed_value – The 24- or 32-bit decompressed value

Return type:

int