mirror of
https://github.com/wader/fq.git
synced 2024-12-25 06:12:30 +03:00
1b32b42f93
Generate more code More generic and comfortable API Improve and Update format decoder to new API Add some more format tests
207 lines
22 KiB
Plaintext
207 lines
22 KiB
Plaintext
# sRGB2014.icc is from https://www.color.org/srgbprofiles.xalter
|
||
$ fq -d icc_profile verbose /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)
|
||
0x000| 00 00 00 00 | .... | cmm_type_signature: "" 0x4-0x7.7 (4)
|
||
0x000| 02 | . | version_major: 2 0x8-0x8.7 (1)
|
||
0x000| 00 | . | version_minor: 0 0x9-0x9.7 (1)
|
||
0x000| 00 00 | .. | version_reserved: 0 0xa-0xb.7 (2)
|
||
0x000| 6d 6e 74 72| mntr| device_class_signature: "mntr" 0xc-0xf.7 (4)
|
||
0x010|52 47 42 20 |RGB | color_space: "RGB " 0x10-0x13.7 (4)
|
||
0x010| 58 59 5a 20 | XYZ | connection_space: "XYZ " 0x14-0x17.7 (4)
|
||
| | | timestamp: {} 0x18-0x23.7 (12)
|
||
0x010| 07 df | .. | year: 2015 0x18-0x19.7 (2)
|
||
0x010| 00 02 | .. | month: 2 0x1a-0x1b.7 (2)
|
||
0x010| 00 0f | .. | day: 15 0x1c-0x1d.7 (2)
|
||
0x010| 00 00| ..| hours: 0 0x1e-0x1f.7 (2)
|
||
0x020|00 00 |.. | minutes: 0 0x20-0x21.7 (2)
|
||
0x020| 00 00 | .. | seconds: 0 0x22-0x23.7 (2)
|
||
0x020| 61 63 73 70 | acsp | file_signature: "acsp" 0x24-0x27.7 (4)
|
||
0x020| 00 00 00 00 | .... | primary_platform: "" 0x28-0x2b.7 (4)
|
||
0x020| 00 00 00 00| ....| flags: 0 0x2c-0x2f.7 (4)
|
||
0x030|00 00 00 00 |.... | device_manufacturer: "" 0x30-0x33.7 (4)
|
||
0x030| 00 00 00 00 | .... | device_model: "" 0x34-0x37.7 (4)
|
||
0x030| 00 00 00 01 00 00 00 00| ........| device_attribute: "" 0x38-0x3f.7 (8)
|
||
0x040|00 00 00 00 |.... | render_intent: "" 0x40-0x43.7 (4)
|
||
0x040| 00 00 f6 d6 00 01 00 00 00 00 d3 2d| ...........-| xyz_illuminant: "" 0x44-0x4f.7 (12)
|
||
0x050|00 00 00 00 |.... | profile_creator_signature: "" 0x50-0x53.7 (4)
|
||
0x050| 3d 0e b2 de ae 93 97 be 9b 67 26 ce| =........g&.| profile_id: "=\x0e<30>ޮ<EFBFBD><DEAE><EFBFBD><EFBFBD>g&Ό\nC<6E>" 0x54-0x63.7 (16)
|
||
0x060|8c 0a 43 ce |..C. |
|
||
0x060| 00 00 00 00 00 00 00 00 00 00 00 00| ............| reserved: raw bits (all zero) 0x64-0x7f.7 (28)
|
||
0x070|00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00|................|
|
||
| | | tag_table: {} 0x80-0xbcf.7 (2896)
|
||
0x080|00 00 00 10 |.... | count: 16 0x80-0x83.7 (4)
|
||
| | | table: [16] 0x84-0xbcf.7 (2892)
|
||
| | | [0]: element {} 0x84-0x1a7.7 (292)
|
||
0x080| 64 65 73 63 | desc | signature: "desc" 0x84-0x87.7 (4)
|
||
0x080| 00 00 01 44 | ...D | offset: 324 0x88-0x8b.7 (4)
|
||
0x080| 00 00 00 63| ...c| size: 99 0x8c-0x8f.7 (4)
|
||
0x140| 64 65 73 63 | desc | type: "desc" 0x144-0x147.7 (4)
|
||
0x140| 00 00 00 00 | .... | reserved: 0 0x148-0x14b.7 (4)
|
||
0x140| 00 00 00 09| ....| description_length: 9 0x14c-0x14f.7 (4)
|
||
0x150|73 52 47 42 32 30 31 34 00 |sRGB2014. | description: "sRGB2014" 0x150-0x158.7 (9)
|
||
0x150| 00 00 00 00 | .... | language_code: 0 0x159-0x15c.7 (4)
|
||
0x150| 00 00 00| ...| localizable_description_length: 0 0x15d-0x160.7 (4)
|
||
0x160|00 |. |
|
||
| | | localizable_description: "" 0x161-NA (0)
|
||
0x160| 00 00 | .. | script_code: 0 0x161-0x162.7 (2)
|
||
0x160| 00 | . | macintosh_description_length: 0 0x163-0x163.7 (1)
|
||
0x160| 00 00 00 00 00 00 00 00 00 00 00 00| ............| macintosh_description: "" 0x164-0x1a6.7 (67)
|
||
0x170|00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00|................|
|
||
* |until 0x1a6.7 (67) | |
|
||
0x1a0| 00 | . | alignment: raw bits 0x1a7-0x1a7.7 (1)
|
||
| | | [1]: element {} 0x90-0x1bb.7 (300)
|
||
0x090|62 58 59 5a |bXYZ | signature: "bXYZ" 0x90-0x93.7 (4)
|
||
0x090| 00 00 01 a8 | .... | offset: 424 0x94-0x97.7 (4)
|
||
0x090| 00 00 00 14 | .... | size: 20 0x98-0x9b.7 (4)
|
||
0x1a0| 58 59 5a 20 | XYZ | type: "XYZ " 0x1a8-0x1ab.7 (4)
|
||
0x1a0| 00 00 00 00| ....| reserved: 0 0x1ac-0x1af.7 (4)
|
||
0x1b0|00 00 24 a0 |..$. | X: 0.14306640625 0x1b0-0x1b3.7 (4)
|
||
0x1b0| 00 00 0f 84 | .... | Y: 0.06060791015625 0x1b4-0x1b7.7 (4)
|
||
0x1b0| 00 00 b6 cf | .... | Z: 0.7140960693359375 0x1b8-0x1bb.7 (4)
|
||
| | | [2]: element {} 0x9c-0x9c7.7 (2348)
|
||
0x090| 62 54 52 43| bTRC| signature: "bTRC" 0x9c-0x9f.7 (4)
|
||
0x0a0|00 00 01 bc |.... | offset: 444 0xa0-0xa3.7 (4)
|
||
0x0a0| 00 00 08 0c | .... | size: 2060 0xa4-0xa7.7 (4)
|
||
0x1b0| 63 75 72 76| curv| type: "curv" 0x1bc-0x1bf.7 (4)
|
||
0x1c0|00 00 00 00 |.... | reserved: 0 0x1c0-0x1c3.7 (4)
|
||
0x1c0| 00 00 04 00 00 00 00 05 00 0a 00 0f| ............| data: raw bits 0x1c4-0x9c7.7 (2052)
|
||
0x1d0|00 14 00 19 00 1e 00 23 00 28 00 2d 00 32 00 37|.......#.(.-.2.7|
|
||
* |until 0x9c7.7 (2052) | |
|
||
| | | [3]: element {} 0xa8-0x9c7.7 (2336)
|
||
0x0a0| 67 54 52 43 | gTRC | signature: "gTRC" 0xa8-0xab.7 (4)
|
||
0x0a0| 00 00 01 bc| ....| offset: 444 0xac-0xaf.7 (4)
|
||
0x0b0|00 00 08 0c |.... | size: 2060 0xb0-0xb3.7 (4)
|
||
0x1b0| 63 75 72 76| curv| type: "curv" 0x1bc-0x1bf.7 (4)
|
||
0x1c0|00 00 00 00 |.... | reserved: 0 0x1c0-0x1c3.7 (4)
|
||
0x1c0| 00 00 04 00 00 00 00 05 00 0a 00 0f| ............| data: raw bits 0x1c4-0x9c7.7 (2052)
|
||
0x1d0|00 14 00 19 00 1e 00 23 00 28 00 2d 00 32 00 37|.......#.(.-.2.7|
|
||
* |until 0x9c7.7 (2052) | |
|
||
| | | [4]: element {} 0xb4-0x9c7.7 (2324)
|
||
0x0b0| 72 54 52 43 | rTRC | signature: "rTRC" 0xb4-0xb7.7 (4)
|
||
0x0b0| 00 00 01 bc | .... | offset: 444 0xb8-0xbb.7 (4)
|
||
0x0b0| 00 00 08 0c| ....| size: 2060 0xbc-0xbf.7 (4)
|
||
0x1b0| 63 75 72 76| curv| type: "curv" 0x1bc-0x1bf.7 (4)
|
||
0x1c0|00 00 00 00 |.... | reserved: 0 0x1c0-0x1c3.7 (4)
|
||
0x1c0| 00 00 04 00 00 00 00 05 00 0a 00 0f| ............| data: raw bits 0x1c4-0x9c7.7 (2052)
|
||
0x1d0|00 14 00 19 00 1e 00 23 00 28 00 2d 00 32 00 37|.......#.(.-.2.7|
|
||
* |until 0x9c7.7 (2052) | |
|
||
| | | [5]: element {} 0xc0-0xa4f.7 (2448)
|
||
0x0c0|64 6d 64 64 |dmdd | signature: "dmdd" 0xc0-0xc3.7 (4)
|
||
0x0c0| 00 00 09 c8 | .... | offset: 2504 0xc4-0xc7.7 (4)
|
||
0x0c0| 00 00 00 88 | .... | size: 136 0xc8-0xcb.7 (4)
|
||
0x9c0| 64 65 73 63 | desc | type: "desc" 0x9c8-0x9cb.7 (4)
|
||
0x9c0| 00 00 00 00| ....| reserved: 0 0x9cc-0x9cf.7 (4)
|
||
0x9d0|00 00 00 2e |.... | description_length: 46 0x9d0-0x9d3.7 (4)
|
||
0x9d0| 49 45 43 20 36 31 39 36 36 2d 32 2d| IEC 61966-2-| description: "IEC 61966-2-1 Default RGB Colour Space - sRGB" 0x9d4-0xa01.7 (46)
|
||
0x9e0|31 20 44 65 66 61 75 6c 74 20 52 47 42 20 43 6f|1 Default RGB Co|
|
||
* |until 0xa01.7 (46) | |
|
||
0xa00| 00 00 00 00 | .... | language_code: 0 0xa02-0xa05.7 (4)
|
||
0xa00| 00 00 00 00 | .... | localizable_description_length: 0 0xa06-0xa09.7 (4)
|
||
| | | localizable_description: "" 0xa0a-NA (0)
|
||
0xa00| 00 00 | .. | script_code: 0 0xa0a-0xa0b.7 (2)
|
||
0xa00| 00 | . | macintosh_description_length: 0 0xa0c-0xa0c.7 (1)
|
||
0xa00| 00 00 00| ...| macintosh_description: "" 0xa0d-0xa4f.7 (67)
|
||
0xa10|00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00|................|
|
||
* |until 0xa4f.7 (67) | |
|
||
| | | [6]: element {} 0xcc-0xa63.7 (2456)
|
||
0x0c0| 67 58 59 5a| gXYZ| signature: "gXYZ" 0xcc-0xcf.7 (4)
|
||
0x0d0|00 00 0a 50 |...P | offset: 2640 0xd0-0xd3.7 (4)
|
||
0x0d0| 00 00 00 14 | .... | size: 20 0xd4-0xd7.7 (4)
|
||
0xa50|58 59 5a 20 |XYZ | type: "XYZ " 0xa50-0xa53.7 (4)
|
||
0xa50| 00 00 00 00 | .... | reserved: 0 0xa54-0xa57.7 (4)
|
||
0xa50| 00 00 62 99 | ..b. | X: 0.3851470947265625 0xa58-0xa5b.7 (4)
|
||
0xa50| 00 00 b7 85| ....| Y: 0.7168731689453125 0xa5c-0xa5f.7 (4)
|
||
0xa60|00 00 18 da |.... | Z: 0.097076416015625 0xa60-0xa63.7 (4)
|
||
| | | [7]: element {} 0xd8-0xa77.7 (2464)
|
||
0x0d0| 6c 75 6d 69 | lumi | signature: "lumi" 0xd8-0xdb.7 (4)
|
||
0x0d0| 00 00 0a 64| ...d| offset: 2660 0xdc-0xdf.7 (4)
|
||
0x0e0|00 00 00 14 |.... | size: 20 0xe0-0xe3.7 (4)
|
||
0xa60| 58 59 5a 20 | XYZ | type: "XYZ " 0xa64-0xa67.7 (4)
|
||
0xa60| 00 00 00 00 | .... | reserved: 0 0xa68-0xa6b.7 (4)
|
||
0xa60| 00 00 00 00| ....| X: 0 0xa6c-0xa6f.7 (4)
|
||
0xa70|00 50 00 00 |.P.. | Y: 80 0xa70-0xa73.7 (4)
|
||
0xa70| 00 00 00 00 | .... | Z: 0 0xa74-0xa77.7 (4)
|
||
| | | [8]: element {} 0xe4-0xa9b.7 (2488)
|
||
0x0e0| 6d 65 61 73 | meas | signature: "meas" 0xe4-0xe7.7 (4)
|
||
0x0e0| 00 00 0a 78 | ...x | offset: 2680 0xe8-0xeb.7 (4)
|
||
0x0e0| 00 00 00 24| ...$| size: 36 0xec-0xef.7 (4)
|
||
0xa70| 6d 65 61 73 | meas | type: "meas" 0xa78-0xa7b.7 (4)
|
||
0xa70| 00 00 00 00| ....| reserved: 0 0xa7c-0xa7f.7 (4)
|
||
0xa80|00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00|................| data: raw bits 0xa80-0xa9b.7 (28)
|
||
0xa90|00 00 00 00 00 00 00 00 00 00 00 02 |............ |
|
||
| | | [9]: element {} 0xf0-0xaaf.7 (2496)
|
||
0x0f0|62 6b 70 74 |bkpt | signature: "bkpt" 0xf0-0xf3.7 (4)
|
||
0x0f0| 00 00 0a 9c | .... | offset: 2716 0xf4-0xf7.7 (4)
|
||
0x0f0| 00 00 00 14 | .... | size: 20 0xf8-0xfb.7 (4)
|
||
0xa90| 58 59 5a 20| XYZ | type: "XYZ " 0xa9c-0xa9f.7 (4)
|
||
0xaa0|00 00 00 00 |.... | reserved: 0 0xaa0-0xaa3.7 (4)
|
||
0xaa0| 00 00 00 9e | .... | X: 0.002410888671875 0xaa4-0xaa7.7 (4)
|
||
0xaa0| 00 00 00 a4 | .... | Y: 0.00250244140625 0xaa8-0xaab.7 (4)
|
||
0xaa0| 00 00 00 87| ....| Z: 0.0020599365234375 0xaac-0xaaf.7 (4)
|
||
| | | [10]: element {} 0xfc-0xac3.7 (2504)
|
||
0x0f0| 72 58 59 5a| rXYZ| signature: "rXYZ" 0xfc-0xff.7 (4)
|
||
0x100|00 00 0a b0 |.... | offset: 2736 0x100-0x103.7 (4)
|
||
0x100| 00 00 00 14 | .... | size: 20 0x104-0x107.7 (4)
|
||
0xab0|58 59 5a 20 |XYZ | type: "XYZ " 0xab0-0xab3.7 (4)
|
||
0xab0| 00 00 00 00 | .... | reserved: 0 0xab4-0xab7.7 (4)
|
||
0xab0| 00 00 6f a2 | ..o. | X: 0.436065673828125 0xab8-0xabb.7 (4)
|
||
0xab0| 00 00 38 f5| ..8.| Y: 0.2224884033203125 0xabc-0xabf.7 (4)
|
||
0xac0|00 00 03 90 |.... | Z: 0.013916015625 0xac0-0xac3.7 (4)
|
||
| | | [11]: element {} 0x108-0xacf.7 (2504)
|
||
0x100| 74 65 63 68 | tech | signature: "tech" 0x108-0x10b.7 (4)
|
||
0x100| 00 00 0a c4| ....| offset: 2756 0x10c-0x10f.7 (4)
|
||
0x110|00 00 00 0c |.... | size: 12 0x110-0x113.7 (4)
|
||
0xac0| 73 69 67 20 | sig | type: "sig " 0xac4-0xac7.7 (4)
|
||
0xac0| 00 00 00 00 | .... | reserved: 0 0xac8-0xacb.7 (4)
|
||
0xac0| 43 52 54 20| CRT | data: raw bits 0xacc-0xacf.7 (4)
|
||
| | | [12]: element {} 0x114-0xb57.7 (2628)
|
||
0x110| 76 75 65 64 | vued | signature: "vued" 0x114-0x117.7 (4)
|
||
0x110| 00 00 0a d0 | .... | offset: 2768 0x118-0x11b.7 (4)
|
||
0x110| 00 00 00 87| ....| size: 135 0x11c-0x11f.7 (4)
|
||
0xad0|64 65 73 63 |desc | type: "desc" 0xad0-0xad3.7 (4)
|
||
0xad0| 00 00 00 00 | .... | reserved: 0 0xad4-0xad7.7 (4)
|
||
0xad0| 00 00 00 2d | ...- | description_length: 45 0xad8-0xadb.7 (4)
|
||
0xad0| 52 65 66 65| Refe| description: "Reference Viewing Condition in IEC 61966-2-1" 0xadc-0xb08.7 (45)
|
||
0xae0|72 65 6e 63 65 20 56 69 65 77 69 6e 67 20 43 6f|rence Viewing Co|
|
||
* |until 0xb08.7 (45) | |
|
||
0xb00| 00 00 00 00 | .... | language_code: 0 0xb09-0xb0c.7 (4)
|
||
0xb00| 00 00 00| ...| localizable_description_length: 0 0xb0d-0xb10.7 (4)
|
||
0xb10|00 |. |
|
||
| | | localizable_description: "" 0xb11-NA (0)
|
||
0xb10| 00 00 | .. | script_code: 0 0xb11-0xb12.7 (2)
|
||
0xb10| 00 | . | macintosh_description_length: 0 0xb13-0xb13.7 (1)
|
||
0xb10| 00 00 00 00 00 00 00 00 00 00 00 00| ............| macintosh_description: "" 0xb14-0xb56.7 (67)
|
||
0xb20|00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00|................|
|
||
* |until 0xb56.7 (67) | |
|
||
0xb50| 00 | . | alignment: raw bits 0xb57-0xb57.7 (1)
|
||
| | | [13]: element {} 0x120-0xb6b.7 (2636)
|
||
0x120|77 74 70 74 |wtpt | signature: "wtpt" 0x120-0x123.7 (4)
|
||
0x120| 00 00 0b 58 | ...X | offset: 2904 0x124-0x127.7 (4)
|
||
0x120| 00 00 00 14 | .... | size: 20 0x128-0x12b.7 (4)
|
||
0xb50| 58 59 5a 20 | XYZ | type: "XYZ " 0xb58-0xb5b.7 (4)
|
||
0xb50| 00 00 00 00| ....| reserved: 0 0xb5c-0xb5f.7 (4)
|
||
0xb60|00 00 f6 d6 |.... | X: 0.964202880859375 0xb60-0xb63.7 (4)
|
||
0xb60| 00 01 00 00 | .... | Y: 1 0xb64-0xb67.7 (4)
|
||
0xb60| 00 00 d3 2d | ...- | Z: 0.8249053955078125 0xb68-0xb6b.7 (4)
|
||
| | | [14]: element {} 0x12c-0xba3.7 (2680)
|
||
0x120| 63 70 72 74| cprt| signature: "cprt" 0x12c-0x12f.7 (4)
|
||
0x130|00 00 0b 6c |...l | offset: 2924 0x130-0x133.7 (4)
|
||
0x130| 00 00 00 37 | ...7 | size: 55 0x134-0x137.7 (4)
|
||
0xb60| 74 65 78 74| text| type: "text" 0xb6c-0xb6f.7 (4)
|
||
0xb70|00 00 00 00 |.... | reserved: 0 0xb70-0xb73.7 (4)
|
||
0xb70| 43 6f 70 79 72 69 67 68 74 20 49 6e| Copyright In| text: "Copyright International Color Consortium, 2015" 0xb74-0xba2.7 (47)
|
||
0xb80|74 65 72 6e 61 74 69 6f 6e 61 6c 20 43 6f 6c 6f|ternational Colo|
|
||
* |until 0xba2.7 (47) | |
|
||
0xba0| 00 | . | alignment: raw bits 0xba3-0xba3.7 (1)
|
||
| | | [15]: element {} 0x138-0xbcf.7 (2712)
|
||
0x130| 63 68 61 64 | chad | signature: "chad" 0x138-0x13b.7 (4)
|
||
0x130| 00 00 0b a4| ....| offset: 2980 0x13c-0x13f.7 (4)
|
||
0x140|00 00 00 2c |..., | size: 44 0x140-0x143.7 (4)
|
||
0xba0| 73 66 33 32 | sf32 | type: "sf32" 0xba4-0xba7.7 (4)
|
||
0xba0| 00 00 00 00 | .... | reserved: 0 0xba8-0xbab.7 (4)
|
||
0xba0| 00 01 0c 44| ...D| data: raw bits 0xbac-0xbcf.7 (36)
|
||
0xbb0|00 00 05 df ff ff f3 26 00 00 07 94 00 00 fd 8f|.......&........|
|
||
0xbc0|ff ff fb a1 ff ff fd a2 00 00 03 db 00 00 c0 75|...............u|
|