diff options
author | 2012-04-06 13:24:30 +0000 | |
---|---|---|
committer | 2012-04-06 13:24:30 +0000 | |
commit | 7818ba99ea894304b5c6e804c3e1f87327f21fcd (patch) | |
tree | d55a9796db591512a800295a09339960b47f5564 /src/lib/util/cdrom.h | |
parent | e48e63d68419576bb2d9ca9b73d164d904f727dc (diff) |
Added code to cdrom.c to compute and verify ECC codes for mode 1/2
sectors. [David Haywood]
Added CD compressor template which separates subcode data from sector
data, removes redundant ECC data prior to compression, and uses
separate compressors for each part. Defined LZMA and ZLib CD
compressors based on this and made them the default for CDs.
[Aaron Giles]
(Sadly couldn't wrap the FLAC compressor here because it would have
produced incompatible output with previous versions.)
Diffstat (limited to 'src/lib/util/cdrom.h')
-rw-r--r-- | src/lib/util/cdrom.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/util/cdrom.h b/src/lib/util/cdrom.h index 6a2832e21f8..82818e37b67 100644 --- a/src/lib/util/cdrom.h +++ b/src/lib/util/cdrom.h @@ -161,6 +161,11 @@ const char *cdrom_get_subtype_string(UINT32 subtype); chd_error cdrom_parse_metadata(chd_file *chd, cdrom_toc *toc); chd_error cdrom_write_metadata(chd_file *chd, const cdrom_toc *toc); +// ECC utilities +bool ecc_verify(const UINT8 *sector); +void ecc_generate(UINT8 *sector); +void ecc_clear(UINT8 *sector); + /*************************************************************************** |