1
1
mirror of https://github.com/wader/fq.git synced 2024-12-23 13:22:58 +03:00
fq/format/mpeg
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 flac_picture,mpeg: Fix trailing ")" typo in map sym and description 2023-01-25 14:01:34 +01:00
aac_frame.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
adts_frame.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
adts.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
annexb.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
avc_annexb.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
avc_au.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
avc_dcr.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
avc_nalu.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
avc_pps.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
avc_sei.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
avc_sps.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
hevc_annexb.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
hevc_au.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
hevc_dcr.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
hevc_nalu.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
hevc_pps.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
hevc_sps.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
hevc_vps.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
mp3_frame.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
mpeg_asc.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
mpeg_es.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
mpeg_pes_packet.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
mpeg_pes.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
mpeg_spu.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
mpeg_ts.go decode: Support multiple format args and some rename and refactor 2023-02-18 21:38:51 +01:00
shared.go lint: Fix ioutil deprecation, reformat for new doc standard 2022-08-05 00:22:32 +02:00