IO_JPEG に 16進ダンプ表示追加
@rsky さんを真似して 16進ダンプを付けてみました。
SOS, RST も含めて全部ダンプします。
- https://github.com/yoya/IO_JPEG (tag <= v1.0)
- IO_Bit が必要です > http://openpear.org/package/IO_Bit
yoya@sakura:~/git/IO_JPEG$ php sample/jpegdump.php -h -f ~/data/aria.jpg | less | head -24 SOI: 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 0x00000000 ff d8 APP0: length=16 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 0x00000000 ff e0 00 10 4a 46 49 46 00 01 01 01 00 60 JFIF ` 0x00000010 00 60 00 00 ` APP1: length=34 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 0x00000010 ff e1 00 22 45 78 69 66 00 00 49 49 "Exif II 0x00000020 2a 00 08 00 00 00 01 00 00 51 04 00 01 00 00 00 * Q 0x00000030 00 00 00 00 00 00 00 00 DQT: length=67 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 0x00000030 ff db 00 43 00 08 06 06 C 0x00000040 07 06 05 08 07 07 07 09 09 08 0a 0c 14 0d 0c 0b 0x00000050 0b 0c 19 12 13 0f 14 1d 1a 1f 1e 1d 1a 1c 1c 20 0x00000060 24 2e 27 20 22 2c 23 1c 1c 28 37 29 2c 30 31 34 $.' ",# (7),014 0x00000070 34 34 1f 27 39 3d 38 32 3c 2e 33 34 32 44 '9=82<.342 DQT: length=67 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 0x00000070 ff db 00 0x00000080 43 01 09 09 09 0c 0b 0c 18 0d 0d 18 32 21 1c 21 C 2! ! 0x00000090 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 2222222222222222