Module chd::codecs

source ·
Available on codec_api only.
Expand description

Implementations of decompression codecs used in MAME CHD.

Each codec may have restrictions on the hunk size, lengths and contents of the buffer. If decompress is called with buffers that do not satisfy the constraints, it may return CompressionError, or panic, especially if the output buffer does not satisfy length requirements.

Because codecs are allowed to be used outside of a hunk-sized granularity, such as in CD-ROM wrapped codecs that use Deflate to decompress subcode data, the codec implementations do not check the length of the output buffer against the hunk size. It is up to the caller of decompress to uphold length invariants.

Structs§

  • MAME AV Huffman (avhu) decompression codec.
  • CD-ROM wrapper decompression codec (cdfl) using the FLAC for decompression of sector data and the Deflate codec for decompression of subcode data.
  • The result of a chunk decompression operation.
  • MAME 8-bit Huffman (huff) decompression codec.
  • LZMA (lzma) decompression codec.
  • None/copy codec that does a byte-for-byte copy of the input buffer.
  • Raw FLAC (flac) decompression codec.
  • Deflate (zlib) decompression codec.
  • Zstandard (zstd) decompression codec.

Traits§

Type Aliases§