Enum CompressionType
Represents the compression type for a hunk in the V5 CHD format.
public enum CompressionType
Fields
Compressionerror = 101Internal error state indicating an unknown or invalid compression type.
Compressionmini = 100Mini compression type used in V3/V4 formats (offset stores raw data).
Compressionnone = 4No compression applied; implicit length equals the hunk size.
Compressionparent = 6Data is identical to the corresponding hunk in the parent CHD.
Compressionparent0 = 12Same as the most recent Compressionparent block.
Compressionparent1 = 13Same as the most recent Compressionparent block plus one.
Compressionparentself = 11Same block as in the parent CHD.
Compressionrlelarge = 8Start of a long RLE run (8-bit length prefix).
Compressionrlesmall = 7Start of a short RLE run (4-bit length prefix).
Compressionself = 5Data is identical to another block within the same CHD.
Compressionself0 = 9Same as the most recent Compressionself block.
Compressionself1 = 10Same as the most recent Compressionself block plus one.
Compressiontype0 = 0Decompress using codec #0.
Compressiontype1 = 1Decompress using codec #1.
Compressiontype2 = 2Decompress using codec #2.
Compressiontype2Nd = 103Secondary compressed hunk in V3/V4 CHDs (type 6 map entry). Decompressed using the secondary codec (typically FLAC for CDDA audio).
Compressiontype3 = 3Decompress using codec #3.
Compressionzero = 102Unallocated hunk that reads as all zero bytes (uncompressed V5 map entry 0 with no parent).