summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/chdcd.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename *.c -> *.cpp in our source (nw) Miodrag Milanovic2015-11-081-1339/+0
|
* Cleanups and version bumpmame0163 Miodrag Milanovic2015-06-241-75/+75
|
* Licenses for Raphael Nabet (nw) Miodrag Milanovic2015-06-071-0/+159
|
* updating remaining for RB (nw) Miodrag Milanovic2015-05-211-2/+2
|
* few more resolved in lib/util (nw) Miodrag Milanovic2015-05-091-4/+1
|
* Missed lib for adding licenses (nw) Miodrag Milanovic2015-05-071-0/+2
|
* moved all to std::string (nw) Miodrag Milanovic2015-04-221-18/+18
|
* removed bool conversion and implicit empty check (nw) Miodrag Milanovic2015-04-191-2/+2
|
* There is no implicit conversion to char* in std::string (nw) Miodrag Milanovic2015-04-121-4/+4
|
* cstr() - > c_str() as preparation for move to std::string (nw) Miodrag Milanovic2015-04-111-7/+7
|
* moved assert replacement inside emucore.h so it is actually used / removed ↵ Oliver Stöneberg2015-03-201-0/+1
| | | | assert.h include from some headers and added it to lots of source
* chd updates: [MetalliC] R. Belmont2014-04-181-0/+2
| | | | | | | | | - Bugfixed byte order for GD-ROM audio tracks so FLAC compression is effective - Fixed uninitialized struct on MSVC (and possibly other) builds nw: this will change the SHA1s of every GD-ROM CHD in MAME; a patch to reflect that is pending (the old images still work, they just take a little more space than is necessary). "chdman copy" suffices to upgrade; no downloading is necessary.
* reverting, sorry for this vconv needs to be updated (nw) Miodrag Milanovic2014-03-311-1/+1
|
* VS2013 x64 is little bit more anal about signed/unsigned comparison (nw) Miodrag Milanovic2014-03-311-1/+1
|
* fixed reading of bits/sample in parse_wav_sample() on big-endian systems (nw) Oliver Stöneberg2014-03-061-1/+2
|
* Cleanups and version bumpmame0148u5 Miodrag Milanovic2013-05-201-2/+1
|
* Various CD-ROM / CHDMAN improvements: [R. Belmont] R. Belmont2013-05-181-3/+31
| | | | | | | | | | | | | - Correct import/export of bin/cue images in which the pregap sectors are present. - Normalized TOC handling; the start of a track is always the first pregap sector. - Finally allows reading and CDDA playing pregap sectors. Works even if the pregap sectors are not present in the file. nw part: Existing CHDs should work (or not) as before - previously non-working ones that were broken due to disc geometry should work if regenerated from source. I tested this on several known-touchy cases (including Saturn Black/Matrix Reprint cinemas and PCE-CD Prince of Persia) but there are likely others. Drivers that tried to fake around the previous lack of pregap reading on CDDA may need some adjustment.
* Cleanups and version bumpmame0148 Miodrag Milanovic2013-01-111-26/+26
|
* fixed some cppcheck warnings about format identifiers and duplicated enum (nw) Oliver Stöneberg2013-01-061-3/+3
|
* more chdcd.c errormessage enhancements / adapted error messages for ↵ Oliver Stöneberg2013-01-061-5/+8
| | | | emu/sound/samples.c / fixed GCC compile (nw)
* improved some error messages (nw) Oliver Stöneberg2013-01-061-3/+3
|
* corrected comment and log message in parse_wav_sample() about channels / ↵ Oliver Stöneberg2013-01-061-6/+6
| | | | corrected some format specifiers (nw)
* improved error reporting of parse_wav_sample() and fixed potential resource ↵ Oliver Stöneberg2013-01-061-24/+61
| | | | leaks / use more proper errorcodes when encountering an error when parsing an input file (nw)
* read ISO as binary as well (nw) Oliver Stöneberg2013-01-061-1/+1
|
* skip without reading (nw) smf-2013-01-051-4/+3
|
* fixed NRG reading for good (accidentally removed some non-debug code before ↵ Oliver Stöneberg2013-01-051-4/+5
| | | | commit) (nw)
* cleaned up some chdcd.c error messages (nw) Oliver Stöneberg2013-01-051-5/+5
|
* fixed reading of NRG images / bail out on unsupported tracks in NRG images / ↵ Oliver Stöneberg2013-01-051-13/+39
| | | | cleanups (nw)
* fixed filename set in NRG track parsing / added NRG test to chdman unit test ↵ Oliver Stöneberg2013-01-051-1/+1
| | | | (nw)
* Cleanups and version bumpmame0147u4 Miodrag Milanovic2012-12-171-2/+2
|
* Give error in cases when track size is not one of supported (no whatsnew) Miodrag Milanovic2012-12-061-2/+5
|
* Added .cdr as a synonym for .iso, as seen on e.g. archive.org (nw) Justin Kerk2012-12-061-1/+1
|
* Added ISO support to chdman and as mountable image device [Miodrag Milanovic] Miodrag Milanovic2012-12-051-0/+67
|
* chdman: Correct processing of GDI files, add ability to extractcd to .gdi, ↵ R. Belmont2012-03-041-30/+20
| | | | verified perfect checksum round-tripping on .GDI files. [R. Belmont]
* fixed several Visual Studio compiler warnings and 64-bit libflac compilation ↵ Miodrag Milanovic2012-02-291-2/+2
| | | | by Firewave, and idectrl change from Carl (no whatsnew)
* The right fix is to not compare against array index -1. Aaron Giles2012-02-191-19/+14
|
* compile fix (nw) Miodrag Milanovic2012-02-191-1/+1
|
* chdcd: Fix crash when parsing bin/cue [R. Belmont] R. Belmont2012-02-191-8/+13
|
* Major CHD/chdman update. The CHD version number has been increased Aaron Giles2012-02-161-132/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from 4 to 5. This means any diff CHDs will no longer work. If you absolutely need to keep the data for any existing ones you have, find both the diff CHD and the original CHD for the game in question and upgrade using these commands: rename diff\game.dif diff\game-old.dif chdman copy -i diff\game-old.dif -ip roms\game.chd -o diff\game.dif -op roms\game.chd -c none Specifics regarding this change: Defined a new CHD version 5. New features/behaviors of this version: - support for up to 4 codecs; each block can use 1 of the 4 - new LZMA codec, which tends to do better than zlib overall - new FLAC codec, primarily used for CDs (but can be applied anywhere) - upgraded AVHuff codec now uses FLAC for encoding audio - new Huffman codec, used to catch more nearly-uncompressable blocks - compressed CHDs now use a compressed map for significant savings - CHDs now are aware of a "unit" size; each hunk holds 1 or more units (in general units map to sectors for hard disks/CDs) - diff'ing against a parent now diffs at the unit level, greatly improving compression Rewrote and modernized chd.c. CHD versions prior to 3 are unsupported, and version 3/4 CHDs are only supported for reading. Creating a new CHD now leaves the file open. Added methods to read and write at the unit and byte level, removing the need to handle this manually. Added metadata access methods that pass astrings and dynamic_buffers to simplify the interfaces. A companion class chd_compressor now implements full multithreaded compression, analyzing and compressing multiple hunks independently in parallel. Split the codec implementations out into a separate file chdcodec.* Updated harddisk.c and cdrom.c to rely on the caching/byte-level read/ write capabilities of the chd_file class. cdrom.c (and chdman) now also pad CDs to 4-frame boundaries instead of hunk boundaries, ensuring that the same SHA1 hashes are produced regardless of the hunk size. Rewrote chdman.exe entirely, switching from positional parameters to proper options. Use "chdman help" to get a list of commands, and "chdman help <command>" to get help for any particular command. Many redundant commands were removed now that additional flexibility is available. Some basic mappings: Old: chdman -createblankhd <out.chd> <cyls> <heads> <secs> New: chdman createhd -o <out.chd> -chs <cyls>,<heads>,<secs> Old: chdman -createuncomphd <in.raw> <out.chd> .... New: chdman createhd -i <in.raw> -o <out.chd> -c none .... Old: chdman -verifyfix <in.chd> New: chdman verify -i <in.chd> -f Old: chdman -merge <parent.chd> <diff.chd> <out.chd> New: chdman copy -i <diff.chd> -ip <parent.chd> -o <out.chd> Old: chdman -diff <parent.chd> <compare.chd> <diff.chd> New: chdman copy -i <compare.chd> -o <diff.chd> -op <parent.chd> Old: chdman -update <in.chd> <out.chd> New: chdman copy -i <in.chd> -o <out.chd> Added new core file coretmpl.h to hold core template classes. For now just one class, dynamic_array<> is defined, which acts like an array of a given object but which can be appended to and/or resized. Also defines dynamic_buffer as dynamic_array<UINT8> for holding an arbitrary buffer of bytes. Expect to see these used a lot. Added new core helper hashing.c/.h which defines classes for each of the common hashing methods and creator classes to wrap the computation of these hashes. A future work item is to reimplement the core emulator hashing code using these. Split bit buffer helpers out into C++ classes and into their own public header in bitstream.h. Updated huffman.c/.h to C++, and changed the interface to make it more flexible to use in nonstandard ways. Also added huffman compression of the static tree for slightly better compression rates. Created flac.c/.h as simplified C++ wrappers around the FLAC interface. A future work item is to convert the samples sound device to a modern device and leverage this for reading FLAC files. Renamed avcomp.* to avhuff.*, updated to C++, and added support for FLAC as the audio encoding mechanism. The old huffman audio is still supported for decode only. Added a variant of core_fload that loads to a dynamic_buffer. Tweaked winwork.c a bit to not limit the maximum number of processors unless the work queue was created with the WORK_QUEUE_FLAG_HIGH_FREQ option. Further adjustments here are likely going to be necessary. Fixed bug in aviio.c which caused errors when reading some AVI files.
* chdman: don't be case sensitive on the input type extension [R. Belmont] R. Belmont2012-01-041-3/+10
|
* tokenize function makes trouble if linebuffer and token buffer size are not ↵ Miodrag Milanovic2011-12-211-2/+2
| | | | same (no whatsnew)
* Cleanups and version bump Angelo Salese2011-08-251-9/+9
|
* Added support for loading other image types to cdrom device, with use of ↵ Miodrag Milanovic2011-08-201-0/+1020
chdman part of code [Miodrag Milanovic]