Commit graph

458 commits

Author SHA1 Message Date
sagudev
81efcb0271 bit_depth for iff and ape 2022-01-23 07:35:24 +01:00
sagudev
9deb7f27f0 fix flac bit depth 2022-01-22 21:28:09 +01:00
sagudev
29378f53a5 bit_depth prototype 2022-01-22 19:54:42 +01:00
Alex
d034782a27
Fix test assertion 2022-01-22 11:01:27 -05:00
localthomas
b9c469173a negative multiply made more readable 2022-01-21 18:15:05 +01:00
localthomas
a326788819 implemented clippy suggestions 2022-01-21 17:42:01 +01:00
localthomas
e1a8e08a3f return type of guess_inner is now std::io::Result 2022-01-21 17:34:49 +01:00
localthomas
134d91d61a refactor after code review 2022-01-21 17:31:14 +01:00
localthomas
47a28402db
added frame sync search for MP3 reading
The first MP3 frame behind metadata blocks is found by searching for frame sync bits.
This skips junk bytes between any metadata blocks and the first MP3 frame.
2022-01-21 14:52:32 +01:00
localthomas
0e8ad5759c
added searching for frame sync bits when file type probing
When a file contains an ID3 block, the following data might be an MP3 frame.
The frame might be prepended by junk bytes, which are skipped with this commit.
2022-01-21 13:55:28 +01:00
Serial
c27264f50b
Verify ID3 Frame contents prior to writing 2022-01-13 14:42:34 -05:00
Serial
cefc383123 Fix some doc comments 2022-01-09 09:57:43 -05:00
Serial
42688daee8 Fix feature issues 2022-01-08 11:22:38 -05:00
Serial
a82621dfe7 Cleanup ID3 find functions 2022-01-08 11:06:11 -05:00
Serial
1824c086e4 Cleanup id3::v2 2022-01-08 08:45:27 -05:00
Serial
f42dfb50bf Add ItemKey mappings for new AIFF chunks 2022-01-08 07:42:28 -05:00
Serial
3f0d6d8b00 Update ogg_pager 2022-01-07 13:02:48 -05:00
Serial
5389efa386 Add real world ID3v2 tests for all versions 2022-01-06 21:06:02 -05:00
Serial
8bfca44fb1 Add GeneralEncapsulatedObject tests 2022-01-06 18:15:47 -05:00
Serial
e640eb0d42 Add SynchronizedText tests 2022-01-06 18:00:33 -05:00
Serial
a49a655f55 Add unstable rustfmt options 2022-01-05 13:26:56 -05:00
Serial
cc6d5a9be8 Fix doc comment 2022-01-05 12:54:20 -05:00
Serial
7942a5bd84 Add tests for dump_to 2022-01-05 12:52:29 -05:00
Serial
94e5ed635f Add Tag::dump_to 2022-01-05 12:50:54 -05:00
Serial
9ffa1b4e0d Fix AIFF COMT writing 2022-01-05 12:12:30 -05:00
Serial
ae20700915 Fix AIFF chunk precedence and writing 2022-01-04 22:06:27 -05:00
Serial
6e61f07538 Cleanup chunk reading 2022-01-04 21:38:52 -05:00
Serial
76e788243f Read AIFF COMT chunks 2022-01-04 15:03:24 -05:00
Serial
d49a06888f fmt 2022-01-04 13:07:35 -05:00
Serial
7a036f3ff9 Cleanup AIFF 2022-01-04 13:06:14 -05:00
Serial
8952834bee Add Tag::get_items for specific ItemValues 2022-01-04 13:02:02 -05:00
Serial
a5039e4198 Read AIFF ANNO chunks 2022-01-03 21:15:48 -05:00
Serial
d7872c671e Allow multi-item insertion for Tag, add Tag::take 2022-01-03 21:13:51 -05:00
Serial
77971ef9b0 fmt 2022-01-03 08:52:51 -05:00
Serial
a8e0edc16d Fix OOM in Picture::from_flac_bytes 2022-01-03 08:48:39 -05:00
Serial
010b60b889 Fix MP3 panic, add fuzz targets 2022-01-02 20:53:26 -05:00
Serial
6670ea9cd5 Fix panic 2022-01-02 20:35:29 -05:00
Serial
612a8b062e Preserve track/disc numbers when converting Ilst 2022-01-02 17:12:16 -05:00
Serial
aa1c306f76 Add accessors for ilst int pairs, convert gnre when reading 2022-01-02 16:08:12 -05:00
Serial
075e0e692f Add FileType::primary_tag_type 2021-12-31 14:34:54 -05:00
Serial
b42b423c50 Fix FLAC writing 2021-12-31 09:13:48 -05:00
Serial
bec96a139b Don't allow writing empty items in Vorbis Comments 2021-12-31 02:11:53 -05:00
Serial
dc501c1b62 Merge remote-tracking branch 'origin/main' 2021-12-30 23:20:20 -05:00
Serial
d312f48406 Fix Tag -> Id3v2Tag conversion 2021-12-30 23:20:08 -05:00
Alex
5808d44aa9
Clippy 2021-12-29 22:31:03 -05:00
Alex
27057e5bac
Fix FLAC max size 2021-12-29 22:26:36 -05:00
Serial
6491aadab2 Remove Mp3File::read_properties 2021-12-29 16:57:27 -05:00
Serial
af37013e54 Improve speed of MP3 property reading
This also adds Mp3File::read_properties, which will eventually be added to all files.
2021-12-29 16:36:37 -05:00
Serial
b805af3a0c Add Id3v2Tag::{unsync_text, comments} 2021-12-29 15:20:00 -05:00
Serial
76bfc60c97 fmt 2021-12-24 13:17:48 -05:00
Serial
17f771d8a8 Add some QOL methods 2021-12-24 13:16:27 -05:00
Serial
8021ca924c Finalize docs 2021-12-23 10:00:54 -05:00
Serial
c29b0012ed Fix METADATA_BLOCK_PICTURE parsing/writing 2021-12-22 17:21:15 -05:00
Serial
f7ab03ce47 Fix privacy issue 2021-12-22 10:06:22 -05:00
Serial
8f2f7ba484 Restructure project 2021-12-22 09:49:43 -05:00
Serial
e61f63e63b Finish resolving feature issues 2021-12-21 20:54:16 -05:00
Serial
a7d9deaa14 Make property reading optional 2021-12-21 20:20:24 -05:00
Serial
e5d2c4dc1f Resolve feature issues 2021-12-21 17:28:18 -05:00
Serial
ea0f3007e8 Add tag_writer example 2021-12-20 10:56:32 -05:00
Serial
2273e4608f Add Id3v2Tag::genre 2021-12-20 09:54:01 -05:00
Serial
555a28d5b2 Fix ID3v2 text decoding; Clippy 2021-12-20 09:46:44 -05:00
Serial
9e8a04826b Make tags Clone 2021-12-19 11:32:20 -05:00
Serial
76ee2a55af Do a better job recognizing picture magic signatures 2021-12-19 11:32:02 -05:00
Serial
64362615cf Add simplified getters/setters and tag reader example 2021-12-12 12:47:26 -05:00
Serial
2a0da87074 Support ID3v2 unsynchronisation, add extra ID3v2 tests 2021-12-11 12:24:10 -05:00
Serial
ca0ee7d6b8 Cleanup 2021-12-10 18:43:34 -05:00
Serial
2b4bf99b75 Fix ID3v2 -> Tag conversion, fix docs 2021-12-07 16:35:09 -05:00
Serial
379042cd10 More work on docs 2021-12-06 20:04:22 -05:00
Serial
12451b2df9 Continue working on docs 2021-12-06 07:18:07 -05:00
Serial
175ff1de0b Clippy 2021-12-05 18:11:13 -05:00
Serial
45fd0c7ed9 Start documentation 2021-12-05 18:05:14 -05:00
Serial
733710f8ca Overhaul Probe 2021-12-05 17:02:22 -05:00
Serial
afdfc09873 Reorganize file tests 2021-12-01 21:00:12 -05:00
Serial
c72857c3d7 Add tag conversion tests 2021-11-28 12:55:11 -05:00
Serial
5638326ff2 Add tests for reading individual tag formats 2021-11-27 13:28:40 -05:00
Serial
f7bb543f36 Fix docs 2021-11-26 15:33:28 -05:00
Serial
60e1579bb2 Add overall bitrate, create file property tests 2021-11-26 15:17:02 -05:00
Serial
72641e2f25 Add missing picture preservation 2021-11-26 07:08:55 -05:00
Serial
20a596b80b Preserve pictures in Tag -> Id3v2Tag 2021-11-26 06:56:19 -05:00
Serial
75767fa99e Fix Frame equality and documentation 2021-11-26 06:49:15 -05:00
Serial
db1c8726c2 Remove ItemValue::UInt 2021-11-26 06:17:32 -05:00
Serial
49b49a5254 Make the original version accessible for Id3v2Tag 2021-11-26 05:56:29 -05:00
Serial
a47e3fc1e3 Create LanguageFrames in Tag -> Id3v2Tag 2021-11-24 18:09:45 -05:00
Serial
c0d130512b Remove references to pictures module 2021-11-24 17:09:12 -05:00
Serial
8b8e8eedbb Remove pictures module 2021-11-24 17:03:53 -05:00
Serial
4d7d1d43bd Fix ID3v2 restrictions docs 2021-11-24 16:56:31 -05:00
Serial
41ddc51bd4 Simplify structure, start improving documentation 2021-11-24 16:51:35 -05:00
Serial
39aec03a1e fmt 2021-11-24 15:34:12 -05:00
Serial
99f1c5cf8d Add rough ItemValue::UInt 2021-11-24 15:32:32 -05:00
Serial
eba7efc013 Add tests for Picture -> bytes methods 2021-11-23 19:29:07 -05:00
Serial
a8a6b27ff9 Add tests for format specific Picture parsers 2021-11-23 18:54:57 -05:00
Serial
1113e711ba Add Picture::from_reader, remove Picture::new 2021-11-23 12:41:57 -05:00
Serial
37806ec612 Start documenting pictures.rs 2021-11-23 11:26:08 -05:00
Serial
c527716a8e fmt 2021-11-22 19:28:08 -05:00
Serial
9878e89b33 Add PictureInformation tests 2021-11-22 17:14:02 -05:00
Serial
bae894ccef Add PictureInformation parsing for PNG and JPEG, remove PictureInformation from Picture 2021-11-22 08:31:54 -05:00
Serial
34b6cd9179 Write APE tag's read_only flag 2021-11-22 06:26:22 -05:00
Serial
b6ec17671e fmt 2021-11-22 05:14:29 -05:00
Serial
ee6584d776 Further cleanup chunk reading 2021-11-22 04:33:58 -05:00
Serial
667d0e3bbf Cleanup chunk reading 2021-11-22 04:24:07 -05:00