1
1
mirror of https://github.com/wader/fq.git synced 2024-11-30 09:58:13 +03:00
fq/format/mp3/testdata/mp3_frame_vbri.fqtest
Mattias Wadman 051a70bd4b interp: Change bit ranges to use exclusive end
All other ranges and slicing uses exclusive end so i think it make sense
to make it consistent.

Update docs and add additional example for non-byte-aligned field.

Also fixes issue showing zero bit ranges as start-NA.
2023-10-20 15:37:26 +02:00

146 lines
15 KiB
Plaintext

$ fq -d mp3_frame_vbri dv mp3_frame_vbri
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: mp3_frame_vbri (mp3_frame_vbri) 0x0-0x120 (288)
0x000|56 42 52 49 |VBRI | header: "VBRI" (valid) 0x0-0x4 (4)
0x000| 00 01 | .. | version_id: 1 0x4-0x6 (2)
0x000| 09 31 | .1 | delay: 2353 0x6-0x8 (2)
0x000| 00 64 | .d | quality: 100 0x8-0xa (2)
0x000| 02 ba 34 78 | ..4x | length: 45757560 (Number of bytes) 0xa-0xe (4)
0x000| 00 01| ..| frames: 67465 (Number of frames) 0xe-0x12 (4)
0x010|07 89 |.. |
0x010| 00 83 | .. | toc_entries: 131 (Number of entries within TOC table) 0x12-0x14 (2)
0x010| 00 10 | .. | scale_factor: 16 (Scale factor of TOC table entries) 0x14-0x16 (2)
0x010| 00 02 | .. | toc_entry_size: 2 (Size per table entry) 0x16-0x18 (2)
0x010| 02 00 | .. | frame_per_entry: 512 (Frames per table entry) 0x18-0x1a (2)
| | | toc[0:131]: 0x1a-0x120 (262)
0x010| 2e 6e | .n | [0]: 11886 entry 0x1a-0x1c (2)
0x010| 56 2e | V. | [1]: 22062 entry 0x1c-0x1e (2)
0x010| 55 bc| U.| [2]: 21948 entry 0x1e-0x20 (2)
0x020|56 52 |VR | [3]: 22098 entry 0x20-0x22 (2)
0x020| 2e b9 | .. | [4]: 11961 entry 0x22-0x24 (2)
0x020| 53 c4 | S. | [5]: 21444 entry 0x24-0x26 (2)
0x020| 52 d4 | R. | [6]: 21204 entry 0x26-0x28 (2)
0x020| 56 f4 | V. | [7]: 22260 entry 0x28-0x2a (2)
0x020| 53 f4 | S. | [8]: 21492 entry 0x2a-0x2c (2)
0x020| 53 52 | SR | [9]: 21330 entry 0x2c-0x2e (2)
0x020| 59 28| Y(| [10]: 22824 entry 0x2e-0x30 (2)
0x030|52 bc |R. | [11]: 21180 entry 0x30-0x32 (2)
0x030| 56 10 | V. | [12]: 22032 entry 0x32-0x34 (2)
0x030| 50 05 | P. | [13]: 20485 entry 0x34-0x36 (2)
0x030| 55 c2 | U. | [14]: 21954 entry 0x36-0x38 (2)
0x030| 56 ac | V. | [15]: 22188 entry 0x38-0x3a (2)
0x030| 55 d7 | U. | [16]: 21975 entry 0x3a-0x3c (2)
0x030| 55 2c | U, | [17]: 21804 entry 0x3c-0x3e (2)
0x030| 54 fc| T.| [18]: 21756 entry 0x3e-0x40 (2)
0x040|55 aa |U. | [19]: 21930 entry 0x40-0x42 (2)
0x040| 4a 52 | JR | [20]: 19026 entry 0x42-0x44 (2)
0x040| 52 44 | RD | [21]: 21060 entry 0x44-0x46 (2)
0x040| 54 ba | T. | [22]: 21690 entry 0x46-0x48 (2)
0x040| 52 0b | R. | [23]: 21003 entry 0x48-0x4a (2)
0x040| 53 9a | S. | [24]: 21402 entry 0x4a-0x4c (2)
0x040| 55 c2 | U. | [25]: 21954 entry 0x4c-0x4e (2)
0x040| 55 80| U.| [26]: 21888 entry 0x4e-0x50 (2)
0x050|4e 48 |NH | [27]: 20040 entry 0x50-0x52 (2)
0x050| 55 bf | U. | [28]: 21951 entry 0x52-0x54 (2)
0x050| 59 d0 | Y. | [29]: 22992 entry 0x54-0x56 (2)
0x050| 56 16 | V. | [30]: 22038 entry 0x56-0x58 (2)
0x050| 54 de | T. | [31]: 21726 entry 0x58-0x5a (2)
0x050| 52 32 | R2 | [32]: 21042 entry 0x5a-0x5c (2)
0x050| 56 76 | Vv | [33]: 22134 entry 0x5c-0x5e (2)
0x050| 57 c6| W.| [34]: 22470 entry 0x5e-0x60 (2)
0x060|53 31 |S1 | [35]: 21297 entry 0x60-0x62 (2)
0x060| 56 94 | V. | [36]: 22164 entry 0x62-0x64 (2)
0x060| 55 ce | U. | [37]: 21966 entry 0x64-0x66 (2)
0x060| 54 8d | T. | [38]: 21645 entry 0x66-0x68 (2)
0x060| 55 2c | U, | [39]: 21804 entry 0x68-0x6a (2)
0x060| 57 24 | W$ | [40]: 22308 entry 0x6a-0x6c (2)
0x060| 56 10 | V. | [41]: 22032 entry 0x6c-0x6e (2)
0x060| 55 ec| U.| [42]: 21996 entry 0x6e-0x70 (2)
0x070|52 f5 |R. | [43]: 21237 entry 0x70-0x72 (2)
0x070| 52 ec | R. | [44]: 21228 entry 0x72-0x74 (2)
0x070| 56 16 | V. | [45]: 22038 entry 0x74-0x76 (2)
0x070| 57 78 | Wx | [46]: 22392 entry 0x76-0x78 (2)
0x070| 4d ee | M. | [47]: 19950 entry 0x78-0x7a (2)
0x070| 52 74 | Rt | [48]: 21108 entry 0x7a-0x7c (2)
0x070| 53 ee | S. | [49]: 21486 entry 0x7c-0x7e (2)
0x070| 54 cc| T.| [50]: 21708 entry 0x7e-0x80 (2)
0x080|53 ee |S. | [51]: 21486 entry 0x80-0x82 (2)
0x080| 54 9c | T. | [52]: 21660 entry 0x82-0x84 (2)
0x080| 54 18 | T. | [53]: 21528 entry 0x84-0x86 (2)
0x080| 56 f4 | V. | [54]: 22260 entry 0x86-0x88 (2)
0x080| 56 dc | V. | [55]: 22236 entry 0x88-0x8a (2)
0x080| 54 3c | T< | [56]: 21564 entry 0x8a-0x8c (2)
0x080| 59 94 | Y. | [57]: 22932 entry 0x8c-0x8e (2)
0x080| 5b 6e| [n| [58]: 23406 entry 0x8e-0x90 (2)
0x090|5a fc |Z. | [59]: 23292 entry 0x90-0x92 (2)
0x090| 5c ac | \. | [60]: 23724 entry 0x92-0x94 (2)
0x090| 5b fe | [. | [61]: 23550 entry 0x94-0x96 (2)
0x090| 5d 90 | ]. | [62]: 23952 entry 0x96-0x98 (2)
0x090| 5c 82 | \. | [63]: 23682 entry 0x98-0x9a (2)
0x090| 5d 9c | ]. | [64]: 23964 entry 0x9a-0x9c (2)
0x090| 5d 3c | ]< | [65]: 23868 entry 0x9c-0x9e (2)
0x090| 5e 4a| ^J| [66]: 24138 entry 0x9e-0xa0 (2)
0x0a0|5c 6a |\j | [67]: 23658 entry 0xa0-0xa2 (2)
0x0a0| 5b da | [. | [68]: 23514 entry 0xa2-0xa4 (2)
0x0a0| 5a fc | Z. | [69]: 23292 entry 0xa4-0xa6 (2)
0x0a0| 5d 36 | ]6 | [70]: 23862 entry 0xa6-0xa8 (2)
0x0a0| 5c 04 | \. | [71]: 23556 entry 0xa8-0xaa (2)
0x0a0| 5c be | \. | [72]: 23742 entry 0xaa-0xac (2)
0x0a0| 5b 5c | [\ | [73]: 23388 entry 0xac-0xae (2)
0x0a0| 5b 0e| [.| [74]: 23310 entry 0xae-0xb0 (2)
0x0b0|59 9a |Y. | [75]: 22938 entry 0xb0-0xb2 (2)
0x0b0| 5a c6 | Z. | [76]: 23238 entry 0xb2-0xb4 (2)
0x0b0| 5b 20 | [ | [77]: 23328 entry 0xb4-0xb6 (2)
0x0b0| 56 c4 | V. | [78]: 22212 entry 0xb6-0xb8 (2)
0x0b0| 59 a6 | Y. | [79]: 22950 entry 0xb8-0xba (2)
0x0b0| 58 7a | Xz | [80]: 22650 entry 0xba-0xbc (2)
0x0b0| 59 e2 | Y. | [81]: 23010 entry 0xbc-0xbe (2)
0x0b0| 5b bc| [.| [82]: 23484 entry 0xbe-0xc0 (2)
0x0c0|5a c0 |Z. | [83]: 23232 entry 0xc0-0xc2 (2)
0x0c0| 58 bc | X. | [84]: 22716 entry 0xc2-0xc4 (2)
0x0c0| 58 56 | XV | [85]: 22614 entry 0xc4-0xc6 (2)
0x0c0| 58 da | X. | [86]: 22746 entry 0xc6-0xc8 (2)
0x0c0| 56 76 | Vv | [87]: 22134 entry 0xc8-0xca (2)
0x0c0| 54 fc | T. | [88]: 21756 entry 0xca-0xcc (2)
0x0c0| 56 4c | VL | [89]: 22092 entry 0xcc-0xce (2)
0x0c0| 56 5e| V^| [90]: 22110 entry 0xce-0xd0 (2)
0x0d0|54 f0 |T. | [91]: 21744 entry 0xd0-0xd2 (2)
0x0d0| 54 ba | T. | [92]: 21690 entry 0xd2-0xd4 (2)
0x0d0| 56 fa | V. | [93]: 22266 entry 0xd4-0xd6 (2)
0x0d0| 55 20 | U | [94]: 21792 entry 0xd6-0xd8 (2)
0x0d0| 52 6e | Rn | [95]: 21102 entry 0xd8-0xda (2)
0x0d0| 55 9e | U. | [96]: 21918 entry 0xda-0xdc (2)
0x0d0| 53 d6 | S. | [97]: 21462 entry 0xdc-0xde (2)
0x0d0| 57 de| W.| [98]: 22494 entry 0xde-0xe0 (2)
0x0e0|52 6e |Rn | [99]: 21102 entry 0xe0-0xe2 (2)
0x0e0| 54 06 | T. | [100]: 21510 entry 0xe2-0xe4 (2)
0x0e0| 53 ca | S. | [101]: 21450 entry 0xe4-0xe6 (2)
0x0e0| 53 52 | SR | [102]: 21330 entry 0xe6-0xe8 (2)
0x0e0| 56 58 | VX | [103]: 22104 entry 0xe8-0xea (2)
0x0e0| 58 e6 | X. | [104]: 22758 entry 0xea-0xec (2)
0x0e0| 56 7c | V| | [105]: 22140 entry 0xec-0xee (2)
0x0e0| 57 9c| W.| [106]: 22428 entry 0xee-0xf0 (2)
0x0f0|57 d8 |W. | [107]: 22488 entry 0xf0-0xf2 (2)
0x0f0| 57 6c | Wl | [108]: 22380 entry 0xf2-0xf4 (2)
0x0f0| 55 b3 | U. | [109]: 21939 entry 0xf4-0xf6 (2)
0x0f0| 56 1c | V. | [110]: 22044 entry 0xf6-0xf8 (2)
0x0f0| 4e 30 | N0 | [111]: 20016 entry 0xf8-0xfa (2)
0x0f0| 46 5c | F\ | [112]: 18012 entry 0xfa-0xfc (2)
0x0f0| 47 58 | GX | [113]: 18264 entry 0xfc-0xfe (2)
0x0f0| 4d 22| M"| [114]: 19746 entry 0xfe-0x100 (2)
0x100|51 1e |Q. | [115]: 20766 entry 0x100-0x102 (2)
0x100| 54 54 | TT | [116]: 21588 entry 0x102-0x104 (2)
0x100| 52 50 | RP | [117]: 21072 entry 0x104-0x106 (2)
0x100| 50 82 | P. | [118]: 20610 entry 0x106-0x108 (2)
0x100| 50 d6 | P. | [119]: 20694 entry 0x108-0x10a (2)
0x100| 51 fc | Q. | [120]: 20988 entry 0x10a-0x10c (2)
0x100| 54 84 | T. | [121]: 21636 entry 0x10c-0x10e (2)
0x100| 50 52| PR| [122]: 20562 entry 0x10e-0x110 (2)
0x110|57 ea |W. | [123]: 22506 entry 0x110-0x112 (2)
0x110| 56 88 | V. | [124]: 22152 entry 0x112-0x114 (2)
0x110| 56 22 | V" | [125]: 22050 entry 0x114-0x116 (2)
0x110| 3d 93 | =. | [126]: 15763 entry 0x116-0x118 (2)
0x110| 35 eb | 5. | [127]: 13803 entry 0x118-0x11a (2)
0x110| 59 70 | Yp | [128]: 22896 entry 0x11a-0x11c (2)
0x110| 58 b6 | X. | [129]: 22710 entry 0x11c-0x11e (2)
0x110| 57 fc| W.| [130]: 22524 entry 0x11e-0x120 (2)