1
1
mirror of https://github.com/wader/fq.git synced 2024-11-26 21:55:57 +03:00
fq/format/mp4
Mattias Wadman 8e0dde03d0 decode: Support multiple format args and some rename and refactor
This will allow passing both cli options and format options to sub decoder.
Ex: pass keylog option to a tls decoder when decoding a pcap.
Ex: pass decode options to a format inside a http body inside a pcap.

Add ArgAs method to lookup argument based on type. This also makes the format
decode function have same signature as sub decoders in the decode API.

This change decode.Format a bit:
DecodeFn is now just func(d *D) any
DecodeInArg renamed to DefaultInArg
2023-02-18 21:38:51 +01:00
..
testdata doc,fq: Improve cli help and some cleanup 2023-02-15 11:04:39 +01:00
boxes.go mp4: udta: Handle box with value rest of box 2023-01-25 16:24:28 +01:00
brands.go decode: More type safe API and split scalar into multiple types 2022-12-14 16:23:58 +01:00
desc.go mp4: Decode udta metadata boxes without meta box 2023-01-16 12:03:53 +01:00
mp4.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
mp4.jq help,doc: Use markdown for format documentation again 2022-09-11 00:53:29 +02:00
mp4.md interp: Rename to/from<format> functions to to_/from_<format> 2022-12-21 17:48:39 +01:00
pssh_playready.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00