Class AvHuffCodec
MAME A/V Huffman codec ('avhu'), matching chd_avhuff_compressor: each hunk is one
raw 'chav' A/V frame (assembled by EncodeLaserDisc(string, string, uint, IReadOnlyList<uint>?, ChdEncodeOptions?, long, long?, CancellationToken)) compressed as
delta-RLE Huffman video + per-channel mono FLAC audio via CHDSharp.Encoder.AvHuffEncoder.
Multi-frame hunks (hunkBytes > bytesPerFrame) are stored raw, matching MAME's codec-chain
behavior where the avhuff compress fails on already-encoded data.
Decodable by CHDSharpLib's ChdReaders.AvHuff and chdman.
public sealed class AvHuffCodec : IChdCodec
- Inheritance
-
AvHuffCodec
- Implements
- Inherited Members
Properties
Tag
The four-character codec tag (see CodecTags).
public uint Tag { get; }
Property Value
Methods
Compress(byte[])
Compresses a full hunk. Returns null when the codec does not reduce the size.
public byte[]? Compress(byte[] data)
Parameters
databyte[]
Returns
- byte[]