// SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute // SPDX-License-Identifier: GPL-3.0-only #pragma once // LZ4_NO_SHUFFLE is READ-ONLY: HDF5 filter 32004, plain LZ4 with no bit shuffle, written by DECTRIS // Eiger firmware 1.x. Nothing here produces it. It is last so the values of the others do not move - // the enum crosses the CBOR stream. // // CBF_BYTE_OFFSET is READ-ONLY too, and never leaves the process: it is how the miniCBF reader hands // over a frame as the file stores it, so that the GPU path can upload those bytes and decode them on // the device. The image's mode is what it decodes to (Int32). enum class CompressionAlgorithm {BSHUF_LZ4, BSHUF_ZSTD, BSHUF_ZSTD_RLE, BSHUF_ZSTD_RLE_HUFF, NO_COMPRESSION, LZ4_NO_SHUFFLE, CBF_BYTE_OFFSET};