1
1
mirror of https://github.com/wader/fq.git synced 2024-09-11 12:05:39 +03:00
Commit Graph

941 Commits

Author SHA1 Message Date
Mattias Wadman
892a42da36 pe,pe_msdos_stub,coff: Add decoders 2024-04-03 09:57:03 +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
Michael B.
287ed366f6 leveldb: fix metaindex keys, refactoring, and jq syntax per PR 2023-12-07 17:11:55 +01:00
Mattias Wadman
f74bbecf69
Merge pull request #830 from wader/bson-jq-style
bson: Fix jq style a bit
2023-12-07 15:24:36 +01:00
Mattias Wadman
f5f8e93c39 bson: Fix jq style a bit 2023-12-07 15:09:16 +01:00
Michael B.
3a396e156e leveldb: improve log documentation 2023-12-07 14:36:47 +01:00
Mattias Wadman
919e07952c hevc_sps: Fix some incorrect profile_tier_level decoding
Array was inverted causing field already exists
Wrong number of bits read for reserved_zero_2bits
For sub_layers pass correct level present flag
2023-12-07 13:26:53 +01:00
Michael B.
1ba8dec56c leveldb: in some properties, change spaces to underscores 2023-12-07 13:03:53 +01:00
Michael B.
cc0d5a8b9b leveldb: update docs 2023-12-07 13:02:55 +01:00
Michael B.
41f27a13c1 leveldb: add torepr for descriptor 2023-12-07 12:43:55 +01:00
Michael B.
42830911d0 leveldb: fix all.fqtest failures 2023-12-06 23:45:37 +01:00
Michael B.
fe1099b95d leveldb: updates per PR comments 2023-12-06 23:22:32 +01:00
Michael B.
2df0f0fbcf leveldb: add log and descriptor decoders 2023-12-06 19:24:49 +01:00
Mattias Wadman
fca55b2c09 mpeg_es: Support ES_ID_Inc and decode descriptors for IOD tags 2023-12-06 15:12:53 +01:00
Mattias Wadman
7906f33d51 test: Support to more common -update flag 2023-12-06 11:47:38 +01:00
Michael B.
78a3e94bd7 leveldb: rename functions and add comments 2023-12-05 16:33:50 +01:00
Michael B.
b05aa997ab leveldb: address PR comments 2023-12-05 11:31:30 +01:00