Skip to content

Commit

Permalink
interp: Cleanup display aliases, now: d, da, dd, dv, ddv
Browse files Browse the repository at this point in the history
Think it makes sense to have them all start with d.
Also f is often used as function argument name.
  • Loading branch information
wader committed Jan 28, 2022
1 parent 94a863e commit fc0aacb
Show file tree
Hide file tree
Showing 117 changed files with 417 additions and 141 deletions.
10 changes: 6 additions & 4 deletions doc/usage.md
Expand Up @@ -279,12 +279,14 @@ you currently have to do `fq -d raw 'mp3({force: true})' file`.
- `probe`, `probe($opts)` probe and decode format
- `mp3`, `mp3($opts)`, ..., `<name>`, `<name>($opts)` same as `decode(<name>)($opts)`, `decode($format; $opts)` decode as format
- Display shows hexdump/ASCII/tree for decode values and JSON for other values.
- `d`/`display` display value and truncate long arrays
- `f`/`full` display value and don't truncate arrays
- `v`/`verbose` display value verbosely and don't truncate array
- `d`/`d($opts)` display value and truncate long arrays and buffers
- `da`/`da($opts)` display value and don't truncate arrays
- `dd`/`dd($opts)` display value and don't truncate arrays or buffers
- `dv`/`dv($opts)` verbosely display value and don't truncate arrays but truncate buffers
- `ddv`/`ddv($opts)` verbosely display value and don't truncate arrays or buffers
- `p`/`preview` show preview of field tree
- `hd`/`hexdump` hexdump value
- `repl` nested REPL, must be last in a pipeline. `1 | repl`, can "slurp" multiple outputs `1, 2, 3 | repl`.
- `repl` nested REPL, must be last in a pipeline. `1 | repl`, can "slurp" outputs `1, 2, 3 | repl`.

## Arguments

Expand Down
2 changes: 1 addition & 1 deletion format/ape/testdata/apev2.fqtest
@@ -1,7 +1,7 @@
# ffmpeg -f lavfi -i sine -ac 2 -t 10ms -f mp3 test.mp3
# mp3gain test.mp3
# fq '.footers[0] | tobytes' test.mp3 > apev2
$ fq -d apev2 verbose /apev2
$ fq -d apev2 dv /apev2
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: /apev2 (apev2) 0x0-0xad.7 (174)
| | | header{}: 0x0-0x1f.7 (32)
0x00|41 50 45 54 41 47 45 58 |APETAGEX | preamble: "APETAGEX" (valid) 0x0-0x7.7 (8)
Expand Down
2 changes: 1 addition & 1 deletion format/bencode/testdata/bbb.fqtest
@@ -1,4 +1,4 @@
$ fq -d bencode v bbb.torrent
$ fq -d bencode dv bbb.torrent
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: bbb.torrent (bencode) 0x0-0x3795.7 (14230)
0x0000|64 |d | type: "dictionary" ("d") 0x0-0x0.7 (1)
| | | pairs[0:9]: 0x1-0x3794.7 (14228)
Expand Down
2 changes: 1 addition & 1 deletion format/bson/testdata/test.fqtest
@@ -1,6 +1,6 @@
# https://github.com/dwight/bsontools
# echo '{array: [1,2,3], object: {key: "value"}, number: 123, string: "abc", true: true, false: false, null: null}' | fromjson test.bson
$ fq -d bson verbose /test.bson
$ fq -d bson dv /test.bson
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: /test.bson (bson) 0x0-0x72.7 (115)
0x00|73 00 00 00 |s... | size: 115 0x0-0x3.7 (4)
| | | elements[0:7]: 0x4-0x71.7 (110)
Expand Down
2 changes: 1 addition & 1 deletion format/bzip2/testdata/test.fqtest
@@ -1,5 +1,5 @@
# echo test | bzip2 > test.bz2
$ fq -d bzip2 verbose /test.bz2
$ fq -d bzip2 dv /test.bz2
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: /test.bz2 (bzip2) 0x0-0x2c.7 (45)
0x00|42 5a |BZ | magic: "BZ" (valid) 0x0-0x1.7 (2)
0x00| 68 | h | version: 104 0x2-0x2.7 (1)
Expand Down
2 changes: 1 addition & 1 deletion format/cbor/testdata/appendix_a.fqtest
Expand Up @@ -35,7 +35,7 @@ json> map(select(.decoded) | (.cbor | base64 | cbor | torepr) as $a | select( .d
}
}
]
json> .[] | select(.decoded) | .cbor | base64 | cbor | v
json> .[] | select(.decoded) | .cbor | base64 | cbor | dv
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: (cbor) 0x0-0x0.7 (1)
0x0|00| |.| | major_type: "positive_int" (0) 0x0-0x0.2 (0.3)
0x0|00| |.| | short_count: 0 0x0.3-0x0.7 (0.5)
Expand Down
2 changes: 1 addition & 1 deletion format/dns/testdata/cern-rsp.fqtest
@@ -1,4 +1,4 @@
$ fq -d dns verbose /cern-rsp
$ fq -d dns dv /cern-rsp
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: /cern-rsp (dns) 0x0-0x4f.7 (80)
| | | header{}: 0x0-0x3.7 (4)
0x00|71 02 |q. | id: 28930 0x0-0x1.7 (2)
Expand Down
2 changes: 1 addition & 1 deletion format/elf/testdata/linux_386/a_dynamic.fqtest
@@ -1,4 +1,4 @@
$ fq -d elf v a_dynamic
$ fq -d elf dv a_dynamic
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: a_dynamic (elf) 0x0-0x41ef.7 (16880)
| | | header{}: 0x0-0x33.7 (52)
| | | ident{}: 0x0-0xf.7 (16)
Expand Down
2 changes: 1 addition & 1 deletion format/elf/testdata/linux_386/a_static.fqtest
@@ -1,4 +1,4 @@
$ fq -d elf v a_static
$ fq -d elf dv a_static
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: a_static (elf) 0x0-0x4207.7 (16904)
| | | header{}: 0x0-0x33.7 (52)
| | | ident{}: 0x0-0xf.7 (16)
Expand Down
2 changes: 1 addition & 1 deletion format/elf/testdata/linux_386/a_stripped.fqtest
@@ -1,4 +1,4 @@
$ fq -d elf v a_stripped
$ fq -d elf dv a_stripped
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: a_stripped (elf) 0x0-0x34df.7 (13536)
| | | header{}: 0x0-0x33.7 (52)
| | | ident{}: 0x0-0xf.7 (16)
Expand Down
2 changes: 1 addition & 1 deletion format/elf/testdata/linux_386/libbbb.a.fqtest
@@ -1,4 +1,4 @@
$ fq -d ar v libbbb.a
$ fq -d ar dv libbbb.a
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: libbbb.a (ar) 0x0-0x5ed.7 (1518)
0x000|21 3c 61 72 63 68 3e 0a |!<arch>. | signature: "!<arch>\n" (valid) 0x0-0x7.7 (8)
| | | files[0:2]: 0x8-0x5ed.7 (1510)
Expand Down
2 changes: 1 addition & 1 deletion format/elf/testdata/linux_386/libbbb.so.fqtest
@@ -1,4 +1,4 @@
$ fq -d elf v libbbb.so
$ fq -d elf dv libbbb.so
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: libbbb.so (elf) 0x0-0x3c6f.7 (15472)
| | | header{}: 0x0-0x33.7 (52)
| | | ident{}: 0x0-0xf.7 (16)
Expand Down
2 changes: 1 addition & 1 deletion format/elf/testdata/linux_amd64/a_dynamic.fqtest
@@ -1,4 +1,4 @@
$ fq -d elf v a_dynamic
$ fq -d elf dv a_dynamic
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: a_dynamic (elf) 0x0-0x473f.7 (18240)
| | | header{}: 0x0-0x3f.7 (64)
| | | ident{}: 0x0-0xf.7 (16)
Expand Down
2 changes: 1 addition & 1 deletion format/elf/testdata/linux_amd64/a_static.fqtest
@@ -1,4 +1,4 @@
$ fq -d elf v a_static
$ fq -d elf dv a_static
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: a_static (elf) 0x0-0x475f.7 (18272)
| | | header{}: 0x0-0x3f.7 (64)
| | | ident{}: 0x0-0xf.7 (16)
Expand Down
2 changes: 1 addition & 1 deletion format/elf/testdata/linux_amd64/a_stripped.fqtest
@@ -1,4 +1,4 @@
$ fq -d elf v a_stripped
$ fq -d elf dv a_stripped
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: a_stripped (elf) 0x0-0x3727.7 (14120)
| | | header{}: 0x0-0x3f.7 (64)
| | | ident{}: 0x0-0xf.7 (16)
Expand Down
2 changes: 1 addition & 1 deletion format/elf/testdata/linux_amd64/libbbb.a.fqtest
@@ -1,4 +1,4 @@
$ fq -d ar v libbbb.a
$ fq -d ar dv libbbb.a
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: libbbb.a (ar) 0x0-0x67b.7 (1660)
0x000|21 3c 61 72 63 68 3e 0a |!<arch>. | signature: "!<arch>\n" (valid) 0x0-0x7.7 (8)
| | | files[0:2]: 0x8-0x67b.7 (1652)
Expand Down
2 changes: 1 addition & 1 deletion format/elf/testdata/linux_amd64/libbbb.so.fqtest
@@ -1,4 +1,4 @@
$ fq -d elf v libbbb.so
$ fq -d elf dv libbbb.so
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: libbbb.so (elf) 0x0-0x404f.7 (16464)
| | | header{}: 0x0-0x3f.7 (64)
| | | ident{}: 0x0-0xf.7 (16)
Expand Down
2 changes: 1 addition & 1 deletion format/elf/testdata/linux_arm64/a_dynamic.fqtest
@@ -1,4 +1,4 @@
$ fq -d elf v a_dynamic
$ fq -d elf dv a_dynamic
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: a_dynamic (elf) 0x0-0x2b6f.7 (11120)
| | | header{}: 0x0-0x3f.7 (64)
| | | ident{}: 0x0-0xf.7 (16)
Expand Down
2 changes: 1 addition & 1 deletion format/elf/testdata/linux_arm64/a_static.fqtest
@@ -1,4 +1,4 @@
$ fq -d elf v a_static
$ fq -d elf dv a_static
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: a_static (elf) 0x0-0x2bd7.7 (11224)
| | | header{}: 0x0-0x3f.7 (64)
| | | ident{}: 0x0-0xf.7 (16)
Expand Down
2 changes: 1 addition & 1 deletion format/elf/testdata/linux_arm64/a_stripped.fqtest
@@ -1,4 +1,4 @@
$ fq -d elf v a_stripped
$ fq -d elf dv a_stripped
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: a_stripped (elf) 0x0-0x1697.7 (5784)
| | | header{}: 0x0-0x3f.7 (64)
| | | ident{}: 0x0-0xf.7 (16)
Expand Down
2 changes: 1 addition & 1 deletion format/elf/testdata/linux_arm64/libbbb.a.fqtest
@@ -1,4 +1,4 @@
$ fq -d ar v libbbb.a
$ fq -d ar dv libbbb.a
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: libbbb.a (ar) 0x0-0x6e3.7 (1764)
0x000|21 3c 61 72 63 68 3e 0a |!<arch>. | signature: "!<arch>\n" (valid) 0x0-0x7.7 (8)
| | | files[0:2]: 0x8-0x6e3.7 (1756)
Expand Down
2 changes: 1 addition & 1 deletion format/elf/testdata/linux_arm64/libbbb.so.fqtest
@@ -1,4 +1,4 @@
$ fq -d elf v libbbb.so
$ fq -d elf dv libbbb.so
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: libbbb.so (elf) 0x0-0x2367.7 (9064)
| | | header{}: 0x0-0x3f.7 (64)
| | | ident{}: 0x0-0xf.7 (16)
Expand Down
2 changes: 1 addition & 1 deletion format/elf/testdata/linux_arm_v6/a_dynamic.fqtest
@@ -1,4 +1,4 @@
$ fq -d elf v a_dynamic
$ fq -d elf dv a_dynamic
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: a_dynamic (elf) 0x0-0x2593.7 (9620)
| | | header{}: 0x0-0x33.7 (52)
| | | ident{}: 0x0-0xf.7 (16)
Expand Down
2 changes: 1 addition & 1 deletion format/elf/testdata/linux_arm_v6/a_static.fqtest
@@ -1,4 +1,4 @@
$ fq -d elf v a_static
$ fq -d elf dv a_static
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: a_static (elf) 0x0-0x25db.7 (9692)
| | | header{}: 0x0-0x33.7 (52)
| | | ident{}: 0x0-0xf.7 (16)
Expand Down
2 changes: 1 addition & 1 deletion format/elf/testdata/linux_arm_v6/a_stripped.fqtest
@@ -1,4 +1,4 @@
$ fq -d elf v a_stripped
$ fq -d elf dv a_stripped
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: a_stripped (elf) 0x0-0x14b7.7 (5304)
| | | header{}: 0x0-0x33.7 (52)
| | | ident{}: 0x0-0xf.7 (16)
Expand Down
2 changes: 1 addition & 1 deletion format/elf/testdata/linux_arm_v6/libbbb.a.fqtest
@@ -1,4 +1,4 @@
$ fq -d ar v libbbb.a
$ fq -d ar dv libbbb.a
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: libbbb.a (ar) 0x0-0x4af.7 (1200)
0x000|21 3c 61 72 63 68 3e 0a |!<arch>. | signature: "!<arch>\n" (valid) 0x0-0x7.7 (8)
| | | files[0:2]: 0x8-0x4af.7 (1192)
Expand Down
2 changes: 1 addition & 1 deletion format/elf/testdata/linux_arm_v6/libbbb.so.fqtest
@@ -1,4 +1,4 @@
$ fq -d elf v libbbb.so
$ fq -d elf dv libbbb.so
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: libbbb.so (elf) 0x0-0x1e9f.7 (7840)
| | | header{}: 0x0-0x33.7 (52)
| | | ident{}: 0x0-0xf.7 (16)
Expand Down
2 changes: 1 addition & 1 deletion format/elf/testdata/linux_arm_v7/a_dynamic.fqtest
@@ -1,4 +1,4 @@
$ fq -d elf v a_dynamic
$ fq -d elf dv a_dynamic
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: a_dynamic (elf) 0x0-0x2593.7 (9620)
| | | header{}: 0x0-0x33.7 (52)
| | | ident{}: 0x0-0xf.7 (16)
Expand Down
2 changes: 1 addition & 1 deletion format/elf/testdata/linux_arm_v7/a_static.fqtest
@@ -1,4 +1,4 @@
$ fq -d elf v a_static
$ fq -d elf dv a_static
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: a_static (elf) 0x0-0x25db.7 (9692)
| | | header{}: 0x0-0x33.7 (52)
| | | ident{}: 0x0-0xf.7 (16)
Expand Down
2 changes: 1 addition & 1 deletion format/elf/testdata/linux_arm_v7/a_stripped.fqtest
@@ -1,4 +1,4 @@
$ fq -d elf v a_stripped
$ fq -d elf dv a_stripped
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: a_stripped (elf) 0x0-0x14b7.7 (5304)
| | | header{}: 0x0-0x33.7 (52)
| | | ident{}: 0x0-0xf.7 (16)
Expand Down
2 changes: 1 addition & 1 deletion format/elf/testdata/linux_arm_v7/libbbb.a.fqtest
@@ -1,4 +1,4 @@
$ fq -d ar v libbbb.a
$ fq -d ar dv libbbb.a
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: libbbb.a (ar) 0x0-0x4af.7 (1200)
0x000|21 3c 61 72 63 68 3e 0a |!<arch>. | signature: "!<arch>\n" (valid) 0x0-0x7.7 (8)
| | | files[0:2]: 0x8-0x4af.7 (1192)
Expand Down
2 changes: 1 addition & 1 deletion format/elf/testdata/linux_arm_v7/libbbb.so.fqtest
@@ -1,4 +1,4 @@
$ fq -d elf v libbbb.so
$ fq -d elf dv libbbb.so
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: libbbb.so (elf) 0x0-0x1e9f.7 (7840)
| | | header{}: 0x0-0x33.7 (52)
| | | ident{}: 0x0-0xf.7 (16)
Expand Down
2 changes: 1 addition & 1 deletion format/flac/testdata/frame.fqtest
@@ -1,6 +1,6 @@
# test decode separate frame
# ffmpeg -f lavfi -i sine -t 0.01s -f flac pipe:1 | fq - '.frames[0]._bytes' > frame
$ fq -d flac_frame verbose /frame
$ fq -d flac_frame dv /frame
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: /frame (flac_frame) 0x0-0x1ff.7 (512)
| | | header{}: 0x0-0x7.7 (8)
0x000|ff f8 |.. | sync: 0b11111111111110 (valid) 0x0-0x1.5 (1.6)
Expand Down
2 changes: 1 addition & 1 deletion format/flac/testdata/mono16.fqtest
@@ -1,4 +1,4 @@
$ fq -d flac verbose /mono16.flac
$ fq -d flac dv /mono16.flac
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: /mono16.flac (flac) 0x0-0x8597.7 (34200)
0x0000|66 4c 61 43 |fLaC | magic: "fLaC" (valid) 0x0-0x3.7 (4)
| | | metadatablocks[0:4]: (flac_metadatablocks) 0x4-0x206f.7 (8300)
Expand Down
2 changes: 1 addition & 1 deletion format/flac/testdata/mono24.fqtest
@@ -1,4 +1,4 @@
$ fq -d flac verbose /mono24.flac
$ fq -d flac dv /mono24.flac
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: /mono24.flac (flac) 0x0-0xbcca.7 (48331)
0x0000|66 4c 61 43 |fLaC | magic: "fLaC" (valid) 0x0-0x3.7 (4)
| | | metadatablocks[0:4]: (flac_metadatablocks) 0x4-0x209b.7 (8344)
Expand Down
2 changes: 1 addition & 1 deletion format/flac/testdata/mono8.fqtest
@@ -1,4 +1,4 @@
$ fq -d flac verbose /mono8.flac
$ fq -d flac dv /mono8.flac
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: /mono8.flac (flac) 0x0-0x4cef.7 (19696)
0x0000|66 4c 61 43 |fLaC | magic: "fLaC" (valid) 0x0-0x3.7 (4)
| | | metadatablocks[0:4]: (flac_metadatablocks) 0x4-0x206f.7 (8300)
Expand Down
2 changes: 1 addition & 1 deletion format/flac/testdata/picture_seek_gain.fqtest
@@ -1,4 +1,4 @@
$ fq -d flac verbose /picture_seek_gain.flac
$ fq -d flac dv /picture_seek_gain.flac
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: /picture_seek_gain.flac (flac) 0x0-0x225f.7 (8800)
0x0000|66 4c 61 43 |fLaC | magic: "fLaC" (valid) 0x0-0x3.7 (4)
| | | metadatablocks[0:5]: (flac_metadatablocks) 0x4-0x205f.7 (8284)
Expand Down
2 changes: 1 addition & 1 deletion format/flac/testdata/stereo16.fqtest
@@ -1,4 +1,4 @@
$ fq -d flac verbose /stereo16.flac
$ fq -d flac dv /stereo16.flac
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: /stereo16.flac (flac) 0x0-0xc54b.7 (50508)
0x0000|66 4c 61 43 |fLaC | magic: "fLaC" (valid) 0x0-0x3.7 (4)
| | | metadatablocks[0:4]: (flac_metadatablocks) 0x4-0x206f.7 (8300)
Expand Down
2 changes: 1 addition & 1 deletion format/flac/testdata/stereo24.fqtest
@@ -1,4 +1,4 @@
$ fq -d flac verbose /stereo24.flac
$ fq -d flac dv /stereo24.flac
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: /stereo24.flac (flac) 0x0-0x11bcb.7 (72652)
0x00000|66 4c 61 43 |fLaC | magic: "fLaC" (valid) 0x0-0x3.7 (4)
| | | metadatablocks[0:4]: (flac_metadatablocks) 0x4-0x209b.7 (8344)
Expand Down
2 changes: 1 addition & 1 deletion format/flac/testdata/stereo8.fqtest
@@ -1,4 +1,4 @@
$ fq -d flac verbose /stereo8.flac
$ fq -d flac dv /stereo8.flac
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: /stereo8.flac (flac) 0x0-0x6d5c.7 (27997)
0x0000|66 4c 61 43 |fLaC | magic: "fLaC" (valid) 0x0-0x3.7 (4)
| | | metadatablocks[0:4]: (flac_metadatablocks) 0x4-0x206f.7 (8300)
Expand Down
2 changes: 1 addition & 1 deletion format/gif/testdata/4x4.fqtest
@@ -1,5 +1,5 @@
# gm convert -size 4x4 'xc:#000' 'xc:#fff' 4x4.gif
$ fq -d gif verbose /4x4.gif
$ fq -d gif dv /4x4.gif
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: /4x4.gif (gif) 0x0-0x5e.7 (95)
0x00|47 49 46 38 39 61 |GIF89a | header: "GIF89a" (valid) 0x0-0x5.7 (6)
0x00| 04 00 | .. | width: 4 0x6-0x7.7 (2)
Expand Down
2 changes: 1 addition & 1 deletion format/gzip/testdata/test.fqtest
@@ -1,5 +1,5 @@
# echo test | gzip -N > test.gz
$ fq -d gzip verbose /test.gz
$ fq -d gzip dv /test.gz
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: /test.gz (gzip) 0x0-0x18.7 (25)
0x00|1f 8b |.. | identification: raw bits (valid) 0x0-0x1.7 (2)
0x00| 08 | . | compression_method: "deflate" (8) 0x2-0x2.7 (1)
Expand Down
2 changes: 1 addition & 1 deletion format/icc/testdata/sRGB2014.fqtest
@@ -1,5 +1,5 @@
# sRGB2014.icc is from https://www.color.org/srgbprofiles.xalter
$ fq -d icc_profile verbose /sRGB2014.icc
$ fq -d icc_profile dv /sRGB2014.icc
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: /sRGB2014.icc (icc_profile) 0x0-0xbcf.7 (3024)
| | | header{}: 0x0-0x7f.7 (128)
0x000|00 00 0b d0 |.... | size: 3024 0x0-0x3.7 (4)
Expand Down
2 changes: 1 addition & 1 deletion format/id3/testdata/apic.fqtest
@@ -1,6 +1,6 @@
# ffmpeg -f lavfi -i anullsrc=d=10ms -f lavfi -i testsrc=s=4x4:r=1:d=1 -map 0:0 -map 1:0 -f mp3 test.mp3
# fq test.mp3 '.. | select(format == "id3v2")._bytes' > apic
$ fq -d id3v2 verbose /apic
$ fq -d id3v2 dv /apic
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: /apic (id3v2) 0x0-0xb3.7 (180)
0x00|49 44 33 |ID3 | magic: "ID3" (valid) 0x0-0x2.7 (3)
0x00| 04 | . | version: 4 0x3-0x3.7 (1)
Expand Down
2 changes: 1 addition & 1 deletion format/id3/testdata/id3v1.fqtest
@@ -1,5 +1,5 @@
# ffmpeg -f lavfi -i sine -t 10ms -write_id3v1 1 -metadata title=test -f mp3 pipe:1 | fq - '.footers[0]._bytes' > id3v1
$ fq -d id3v1 verbose /id3v1
$ fq -d id3v1 dv /id3v1
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: /id3v1 (id3v1) 0x0-0x7f.7 (128)
0x00|54 41 47 |TAG | magic: "TAG" (valid) 0x0-0x2.7 (3)
0x00| 74 65 73 74 00 00 00 00 00 00 00 00 00| test.........| song_name: "test" 0x3-0x20.7 (30)
Expand Down
2 changes: 1 addition & 1 deletion format/id3/testdata/id3v23.fqtest
@@ -1,5 +1,5 @@
# ffmpeg -f lavfi -i sine -t 0s -id3v2_version 3 -f mp3 pipe:1 > id3v23
$ fq -d id3v2 verbose /id3v23
$ fq -d id3v2 dv /id3v23
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: /id3v23 (id3v2) 0x0-0x2c.7 (45)
0x00|49 44 33 |ID3 | magic: "ID3" (valid) 0x0-0x2.7 (3)
0x00| 03 | . | version: 3 0x3-0x3.7 (1)
Expand Down

0 comments on commit fc0aacb

Please sign in to comment.