1
1
mirror of https://github.com/wader/fq.git synced 2024-11-23 00:57:15 +03:00
Commit Graph

956 Commits

Author SHA1 Message Date
Mattias Iko Mattsson
6e13b4b550 jpeg: Add parsing of DHT parameters 2024-04-25 13:17:08 +02:00
Mattias Wadman
b482556025 jpeg: Fix EOI description 2024-04-19 15:26:10 +02:00
Mattias Wadman
ee2ee24dbb decode: Cleanup io panic a bit 2024-04-12 17:23:03 +02:00
Mattias Wadman
d04a846f10
Merge pull request #928 from wader/jp2c-faster-probe
jp2c: Fail probe faster
2024-04-11 00:13:37 +02:00
Mattias Wadman
79992b341a jp2c: Fail probe faster 2024-04-10 23:54:22 +02:00
Mattias Wadman
70b1b0d6a3 mp4: Decode uinf box 2024-04-10 22:17:39 +02:00
Mattias Wadman
a3f5e29d8f
Merge pull request #926 from wader/mp4-jp-box
mp4: Decode jP box
2024-04-10 21:59:57 +02:00
Mattias Wadman
4f90a2eaae mp4: Decode jP box 2024-04-10 21:50:55 +02:00
Mattias Wadman
63f7d79c32 jp2c: Support probe 2024-04-10 21:44:14 +02:00
Mattias Wadman
ebffb3be7b jp2c: Add jpeg2000 codestream format 2024-04-10 16:24:14 +02:00
Mattias Wadman
87b6c4dd6a mp4: Fix jp2 test 2024-04-09 22:59:47 +02:00
Mattias Wadman
5cbda8fbb0
Merge pull request #921 from wader/mp4-jp2-boxes
mp4: JPEG200 boxes jp2h and ihdr
2024-04-09 20:43:26 +02:00
Mattias Wadman
8009b6f661 mp4: JPEG200 boxes jp2h and ihdr 2024-04-09 20:34:53 +02:00
Mattias Wadman
1784c43824 mp4,avi: Trim spaces for type 2024-04-09 20:09:12 +02:00
Mattias Wadman
c8f9cdc9d7 interp: Add string_truncate option
Was hardcoded to 50, now confiugurable also used affected by dd, dv etc
2024-04-08 17:45:10 +02:00
Mattias Wadman
ed6851163f icc_profile: Strip whitespace in header and tag strings 2024-04-03 10:09:31 +02:00
Mattias Wadman
bf7fa07c41 fq: Use go 1.20 and cleanup
Also rename *ex packages to *x
2024-04-01 19:14:10 +02:00
Mattias Wadman
b542ff1d6c lint: More linters and some fixes 2024-04-01 18:24:41 +02:00
Mattias Wadman
80bccc91ed opus,vorbis: More sym snake_case 2024-03-27 18:30:27 +01:00
Mattias Wadman
2ea70c42ac mp4: Add thmb box support 2024-03-19 17:44:37 +01:00
Mattias Wadman
ed3a126f0a mp4: Turns out for qt brand hdlr component name might be zero bytes
From QuickTime File Format specification:
A (counted) string that specifies the name of the component—that is, the media handler used
when this media was created. This field may contain a zero-length (empty) string.
2024-03-19 17:06:21 +01:00
Mikael Lofjärd
f3b54042b1 nes: Add support for iNES/NES 2.0 ROM files 2024-03-16 19:18:21 +01:00
Mattias Wadman
87052733e6 pssh_playready: Use snake_case sym values 2024-03-11 17:00:26 +01:00
Mattias Wadman
7500a8b767 fq: Sort formats 2024-02-18 16:33:39 +01:00
Mikael Lofjärd
225fd50783 fit: Skip array fields on pre read messages 2024-02-12 16:31:27 +01:00
Mikael Lofjärd
f7b067b6ba Fixed subfield referencing fields below self in message 2024-02-12 15:28:42 +01:00
Mattias Wadman
76307e4d33 fit: Formatted date/time description for timestamp fields 2024-02-11 00:43:00 +01:00
Mattias Wadman
788088f84d fit: Show crc as hex, lower case "invalid" and some style harmonization 2024-02-10 16:24:16 +01:00
Mikael Lofjärd
6219d57c35 fit: Added support for dynamic subfields 2024-02-10 01:09:40 +01:00
Mikael Lofjärd
33e5851d03 fit: Fix field casing to snake_case. Misc cleanup. 2024-02-10 01:09:16 +01:00
Mikael Lofjärd
88622804f7 fit: Made long/lat present as float64 2024-02-10 01:09:15 +01:00
Mikael Lofjärd
54c6f0cdc1 fit: Added support for "invalid" value checking.
Added support for array values.
Added documentation and tests.
2024-02-10 01:08:02 +01:00
Mikael Lofjärd
46dbf5b7da fit: Added support for ANT+ FIT format (used by Garmin devices) 2024-02-10 01:08:01 +01:00
Mattias Wadman
8999c84e6c
Merge pull request #860 from wader/pcapnp-all-section-header-cleanup
pcapng: Decode all section headers
2024-02-06 01:26:49 +01:00
Mattias Wadman
e3af46702c pcapng: Decode all section headers, clenaup descriptions
Some refactor also
2024-02-06 01:06:59 +01:00
Mattias Wadman
e51c746db4 aac_frame: CPE: Decode instance tag and common window flag 2024-01-29 12:13:19 +01:00
Mattias Wadman
b0421dfc31 webp: Decode width, height and flags for lossless webp 2024-01-20 17:14:27 +01:00
Mattias Wadman
38b4412ad4 png: Type flags were off-by-one bit 2024-01-05 16:53:05 +01:00
Mattias Wadman
3b7cc1f4f0 tls: Fix field name typos 2023-12-25 00:32:42 +01:00
Mattias Wadman
56c47229f0
Merge pull request #834 from wader/mp4-track-dref
mp4: Don't decode samples if track has external data reference
2023-12-11 15:11:06 +01:00
Mattias Wadman
0d06e0a4cb mp4: Don't decode samples if track has external data reference
Also add field for data reference url

Fixes FileFormatConformance/data/file_features/published/isobmff/02_dref_edts_img.mp4
2023-12-11 14:55:10 +01:00
Mattias Wadman
d2c5ce5575 mp4: Use box structure instead of track id to keep track for sample table data
Fixes issue with mp4s where tkhd is after sample table boxes
2023-12-11 14:48:54 +01:00
Mattias Wadman
b05c7ec54f
Merge pull request #824 from mikez/leveldb
leveldb: Add LevelDB support
2023-12-09 16:47:43 +01:00
Michael B.
08e3d2d2a6 leveldb: improve stringify by preallocating result 2023-12-09 15:23:45 +01:00
Michael B.
2f5f183106 leveldb: decode unfragmented .log files further; fix UTF8 decoding
decode unfragmented .log files:

 - break leveldb_log.go into leveldb_log_blocks.go and leveldb_log.go;
   the former is used by both .MANIFEST (descriptor) and .LOG.
 - in leveldb_log, introduce readBatch that decodes further

 fix UTF8 decoding:

 - introduce fieldUTF8ReturnBytes and stringify to handle multi-byte
   UTF8-encodings correctly.
2023-12-09 14:13:33 +01:00
Michael B.
e826f097d3 leveldb: fix Errorf arguments 2023-12-09 11:31:44 +01:00
Michael B.
07ad9401a4 leveldb: rename "suffix" to "sequence_number_suffix" 2023-12-09 08:51:54 +01:00
Michael B.
e735ceadf1 leveldb: propagate error 2023-12-09 08:45:45 +01:00
Michael B.
8665df56e8 leveldb: fix table's data blocks' internal keys decoding
In the LevelDB encoding, the internal key can be cut at any byte:
including the user_key, type, or sequence_number. The resulting prefix
is shared among subsequent keys and not specified explicitly by them.

This fixes a previous mistaken belief that cuts can't happen in the
last 8 bytes of the type & sequence number.

Tests are added.
2023-12-08 23:37:10 +01:00
Mattias Wadman
aadf26f6c7 mp4: ctts v0 sample_offset seems to be signed in practice
sample file from the wild has v0 as negatice offsets
ffmpeg mov.c ignored versions and always read as signed
2023-12-08 17:24:20 +01:00