Class CodecTags

Namespace
CHDSharp.Encoder
Assembly
CHDSharpLib.dll

Defines CHD v5 codec tag constants and conversion utilities.

public static class CodecTags
Inheritance
CodecTags
Inherited Members

Fields

Avhu

A/V Huffman (laserdisc) codec tag.

public const uint Avhu = 1635149941

Field Value

uint

Cdfl

CD FLAC codec tag (implemented by the encoder; CD-sized hunks only).

public const uint Cdfl = 1667524204

Field Value

uint

Cdlz

CD LZMA codec tag (recognized but not implemented by the encoder yet).

public const uint Cdlz = 1667525754

Field Value

uint

Cdzl

CD zlib codec tag (recognized but not implemented by the encoder yet).

public const uint Cdzl = 1667529324

Field Value

uint

Cdzs

CD Zstandard codec tag (recognized but not implemented by the encoder yet).

public const uint Cdzs = 1667529331

Field Value

uint

Flac

FLAC (audio) codec tag (recognized but not implemented by the encoder yet).

public const uint Flac = 1718378851

Field Value

uint

Huff

Huffman (MAME generic) codec tag (recognized but not implemented by the encoder yet).

public const uint Huff = 1752524390

Field Value

uint

Lzma

LZMA compression codec tag.

public const uint Lzma = 1819962721

Field Value

uint

None

No-compression codec tag (recognized but not supported by the encoder yet).

public const uint None = 0

Field Value

uint

Zlib

Zlib (deflate) compression codec tag.

public const uint Zlib = 2053925218

Field Value

uint

Zstd

Zstandard compression codec tag.

public const uint Zstd = 2054386788

Field Value

uint

Methods

FromName(string)

Converts a codec name ("zlib", "huff", ...) to its tag.

public static uint FromName(string name)

Parameters

name string

The codec name.

Returns

uint

The codec tag.

Exceptions

ArgumentException

An unknown codec name was supplied.

ToString(uint)

Converts a 32-bit codec tag to a four-character ASCII string.

public static string ToString(uint tag)

Parameters

tag uint

The codec tag value.

Returns

string

A 4-character string representation of the tag.