1
1
mirror of https://github.com/wader/fq.git synced 2024-12-20 11:51:58 +03:00
fq/format/png/testdata/4x4_palette.fqtest
Mattias Wadman fc0aacb654 interp: Cleanup display aliases, now: d, da, dd, dv, ddv
Think it makes sense to have them all start with d.
Also f is often used as function argument name.
2022-01-28 18:25:38 +01:00

67 lines
6.7 KiB
Plaintext

# gm convert -size 4x4 'gradient:#ff00ff-#00ff00' -colors 254 4x4_palette.png
$ fq dv 4x4_palette.png
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: 4x4_palette.png (png) 0x0-0x60.7 (97)
0x00|89 50 4e 47 0d 0a 1a 0a |.PNG.... | signature: raw bits (valid) 0x0-0x7.7 (8)
| | | chunks[0:4]: 0x8-0x60.7 (89)
| | | [0]{}: chunk 0x8-0x20.7 (25)
0x00| 00 00 00 0d | .... | length: 13 0x8-0xb.7 (4)
0x00| 49 48 44 52| IHDR| type: "IHDR" 0xc-0xf.7 (4)
0x00| 49 | I | ancillary: false 0xc.3-0xc.3 (0.1)
0x00| 48 | H | private: false 0xd.3-0xd.3 (0.1)
0x00| 44 | D | reserved: false 0xe.3-0xe.3 (0.1)
0x00| 52| R| safe_to_copy: true 0xf.3-0xf.3 (0.1)
0x10|00 00 00 04 |.... | width: 4 0x10-0x13.7 (4)
0x10| 00 00 00 04 | .... | height: 4 0x14-0x17.7 (4)
0x10| 02 | . | bit_depth: 2 0x18-0x18.7 (1)
0x10| 03 | . | color_type: "palette" (3) 0x19-0x19.7 (1)
0x10| 00 | . | compression_method: "deflate" (0) 0x1a-0x1a.7 (1)
0x10| 00 | . | filter_method: "adaptive_filtering" (0) 0x1b-0x1b.7 (1)
0x10| 00 | . | interlace_method: "none" (0) 0x1c-0x1c.7 (1)
0x10| d4 9f 76| ..v| crc: 0xd49f76ed (valid) 0x1d-0x20.7 (4)
0x20|ed |. |
| | | [1]{}: chunk 0x21-0x38.7 (24)
0x20| 00 00 00 0c | .... | length: 12 0x21-0x24.7 (4)
0x20| 50 4c 54 45 | PLTE | type: "PLTE" 0x25-0x28.7 (4)
0x20| 50 | P | ancillary: true 0x25.3-0x25.3 (0.1)
0x20| 4c | L | private: false 0x26.3-0x26.3 (0.1)
0x20| 54 | T | reserved: true 0x27.3-0x27.3 (0.1)
0x20| 45 | E | safe_to_copy: false 0x28.3-0x28.3 (0.1)
| | | palette[0:4]: 0x29-0x34.7 (12)
| | | [0]{}: color 0x29-0x2b.7 (3)
0x20| ff | . | r: 255 0x29-0x29.7 (1)
0x20| 00 | . | g: 0 0x2a-0x2a.7 (1)
0x20| ff | . | b: 255 0x2b-0x2b.7 (1)
| | | [1]{}: color 0x2c-0x2e.7 (3)
0x20| aa | . | r: 170 0x2c-0x2c.7 (1)
0x20| 55 | U | g: 85 0x2d-0x2d.7 (1)
0x20| aa | . | b: 170 0x2e-0x2e.7 (1)
| | | [2]{}: color 0x2f-0x31.7 (3)
0x20| 55| U| r: 85 0x2f-0x2f.7 (1)
0x30|aa |. | g: 170 0x30-0x30.7 (1)
0x30| 55 | U | b: 85 0x31-0x31.7 (1)
| | | [3]{}: color 0x32-0x34.7 (3)
0x30| 00 | . | r: 0 0x32-0x32.7 (1)
0x30| ff | . | g: 255 0x33-0x33.7 (1)
0x30| 00 | . | b: 0 0x34-0x34.7 (1)
0x30| 64 03 f4 86 | d... | crc: 0x6403f486 (valid) 0x35-0x38.7 (4)
| | | [2]{}: chunk 0x39-0x54.7 (28)
0x30| 00 00 00 10 | .... | length: 16 0x39-0x3c.7 (4)
0x30| 49 44 41| IDA| type: "IDAT" 0x3d-0x40.7 (4)
0x40|54 |T |
0x30| 49 | I | ancillary: false 0x3d.3-0x3d.3 (0.1)
0x30| 44 | D | private: false 0x3e.3-0x3e.3 (0.1)
0x30| 41| A| reserved: false 0x3f.3-0x3f.3 (0.1)
0x40|54 |T | safe_to_copy: true 0x40.3-0x40.3 (0.1)
0x40| 08 d7 63 60 60 08 65 58 c5 f0 1f 00 04 ae 01| ..c``.eX.......| data: raw bits 0x41-0x50.7 (16)
0x50|ff |. |
0x50| 7c 82 85 30 | |..0 | crc: 0x7c828530 (valid) 0x51-0x54.7 (4)
| | | [3]{}: chunk 0x55-0x60.7 (12)
0x50| 00 00 00 00 | .... | length: 0 0x55-0x58.7 (4)
0x50| 49 45 4e 44 | IEND | type: "IEND" 0x59-0x5c.7 (4)
0x50| 49 | I | ancillary: false 0x59.3-0x59.3 (0.1)
0x50| 45 | E | private: false 0x5a.3-0x5a.3 (0.1)
0x50| 4e | N | reserved: false 0x5b.3-0x5b.3 (0.1)
0x50| 44 | D | safe_to_copy: false 0x5c.3-0x5c.3 (0.1)
0x50| ae 42 60| .B`| crc: 0xae426082 (valid) 0x5d-0x60.7 (4)
0x60|82| |.| |