Enum CompressionType

Namespace
CHDSharp.Models
Assembly
CHDSharpLib.dll

Represents the compression type for a hunk in the V5 CHD format.

public enum CompressionType

Fields

Compressionerror = 101

Internal error state indicating an unknown or invalid compression type.

Compressionmini = 100

Mini compression type used in V3/V4 formats (offset stores raw data).

Compressionnone = 4

No compression applied; implicit length equals the hunk size.

Compressionparent = 6

Data is identical to the corresponding hunk in the parent CHD.

Compressionparent0 = 12

Same as the most recent Compressionparent block.

Compressionparent1 = 13

Same as the most recent Compressionparent block plus one.

Compressionparentself = 11

Same block as in the parent CHD.

Compressionrlelarge = 8

Start of a long RLE run (8-bit length prefix).

Compressionrlesmall = 7

Start of a short RLE run (4-bit length prefix).

Compressionself = 5

Data is identical to another block within the same CHD.

Compressionself0 = 9

Same as the most recent Compressionself block.

Compressionself1 = 10

Same as the most recent Compressionself block plus one.

Compressiontype0 = 0

Decompress using codec #0.

Compressiontype1 = 1

Decompress using codec #1.

Compressiontype2 = 2

Decompress using codec #2.

Compressiontype2Nd = 103

Secondary compressed hunk in V3/V4 CHDs (type 6 map entry). Decompressed using the secondary codec (typically FLAC for CDDA audio).

Compressiontype3 = 3

Decompress using codec #3.

Compressionzero = 102

Unallocated hunk that reads as all zero bytes (uncompressed V5 map entry 0 with no parent).