Matteo Cypriani
21ab587686
Update copyright dates
2018-05-06 00:10:23 +02:00
Matteo Cypriani
e22af5b392
metadata: structs now derive Copy & Clone
2018-05-04 17:23:45 +02:00
Matteo Cypriani
56c7003468
Improve "unhandled chunks" message
2016-12-22 14:28:52 -05:00
Matteo Cypriani
3faf42e2a7
Read track number & index as BCD-encoded bytes
...
The track number and track index from the CUEX chunk are BCD-encoded
(Binary-Coded Decimal). Reading them as binary led to wrong track
numbers starting with track 10.
There is doubt whereas the index number is BCD or not, but two-digit
indices are seldom seen.
2016-12-08 20:57:28 -05:00
Matteo Cypriani
2b8f4a98d3
Use getopts to parse command-line
2016-12-08 20:57:28 -05:00
Matteo Cypriani
d5d83ab03e
metadata: simplify read_nrg_chunks()
2016-12-08 20:57:28 -05:00
Matteo Cypriani
e801140625
Handle 2448-byte sectors
...
Handle images that have 2448-byte sectors, i.e. 2352 audio bytes + 96
sub-channel bytes.
2016-12-08 20:57:28 -05:00
Matteo Cypriani
0f42459d7b
Add minimalistic integration tests
2016-12-08 13:03:33 -05:00
Matteo Cypriani
5a6feec1d6
Add description strings for some errors
2016-12-08 13:03:33 -05:00
Matteo Cypriani
2bf7a1db2d
Refactor {first,last}_audio_byte()
2016-12-08 13:03:33 -05:00
Matteo Cypriani
00c88153b2
Rework read_sized_string(): truncate null bytes
2016-12-07 17:51:59 -05:00
Matteo Cypriani
3f03a6c37b
Add copyright & license
2016-12-06 22:52:31 -05:00
Matteo Cypriani
54b5967411
Write cue sheet to file
2016-12-06 19:27:07 -05:00
Matteo Cypriani
5973a06c1b
Add basic cue sheet handling
...
The cue sheet is printed to stdout.
2016-12-06 18:06:13 -05:00
Matteo Cypriani
00ed1196d6
Improve rustdoc comments
...
Also, mark the binary "doc = false" in Cargo.toml.
2016-12-06 15:53:09 -05:00
Matteo Cypriani
c3584042cc
Open fd in main()
...
main() now opens the NRG image, instead of letting parse_nrg_metadata()
do it.
parse_nrg_metadata() was renamed read_nrg_metadata().
2016-12-06 15:06:45 -05:00
Matteo Cypriani
423aec0a63
Better handling of unknown chunks
2016-12-06 15:06:45 -05:00
Matteo Cypriani
e2a41e6282
Move metadata-related modules into metadata
2016-12-06 15:06:45 -05:00