#author("2024-06-25T13:10:00+00:00","default:iseki","iseki") #author("2024-06-25T13:10:52+00:00","default:iseki","iseki") * Jpeg2000 - [[v1系>./v1]] ** OpenJpeg - [[OpenJpeg>OpenJpeg]] - [[OpenJpeg]] ** File Format *** T.800 - https://www.itu.int/rec/T-REC-T.800/ - https://www.itu.int/rec/dologin_pub.asp?lang=e&id=T-REC-T.800-200208-S!!PDF-E&type=items *** Code Stream - http://hp.vector.co.jp/authors/VA027608/jpeg2000/ - [MakerName] [MakerLength] [MakerData] -- MakerName: 2Byte, 1Byte目は 0xff -- MakerLength: 2Byte, Big Endian, [MakrtLenght] + [MakerData] の長さ. -- MakerData: 実際のデータ *** Header **** Maker <pre> Start of codestream SOC 0xff4f コードストリームの始まり.MakerLength なし. Image and tile size SIZ 0xff51 画像サイズ、タイルサイズ情報 Coding style default COD 0xff52 Coding style component COC 0xff53 Tile-part lengths, main header TLM 0xff55 Packet length, main header PLM 0xff57 Packet length, tile-part header PLT 0xff58 Quantization default QCD 0xff5C Quantization component QCC 0xff5D Region-of-interest RGN 0xff5E Progression order default POD 0xff5F Packed packet headers, main header PPM 0xff60 Packed packet headers, tile-part header PPT 0xff61 Comment and extension CME 0xff64 コメント Start of tile-part SOT 0xff90 タイルパートの始まり Start of packet SOP 0xff91 End of packet header EPH 0xff92 Start of data SOD 0xff93 データの始まり.MakerLength なし?. End of codestream EOC 0xffd9 コードストリームの終わり.MakerLength なし. </pre> **** Sample <pre> ff 4f Start of codestream SOC ff 51 Image and tile size SIZ 00 2f 00 00 00 00 02 00 512 00 00 02 00 512 00 00 00 00 00 00 00 00 00 00 02 00 512 00 00 02 00 512 00 00 00 00 00 00 00 00 00 03 07 01 01 07 01 01 07 01 01 ff 52 00 0c Coding style default COD required 00 00 00 05 01 05 04 04 00 00 ff 5c 00 23 Quantization default QCD required 22 77 1e 77 00 77 00 76 e2 6f 00 6f 00 6e e2 67 4c 67 4c 67 64 50 03 50 03 50 45 57 d2 57 d2 57 61 ff 64 00 11 Comment and extension CGR optional 00 01 4b 61 6b 61 64 75 2d 76 34 2e 32 2e 31 ff 90 Start of Tile-part SOT 00 0a Lsot Length 00 00 Isot Title Index 0- 00 01 7e ba 0x017eba = 0x017eac + 14 Psot 0xff90 からデータの終わり(EOCの手前)までのサイズ.最後のデータの場合は 0も可. 00 01 ff 93 Start of data SOD cf 83 4a 10 cc d8 e7 32 3d 以下 97964 Byte = 0x017eac = 0x017eba + 14 (SOT+...+SOD) fa 59 c5 2f 5c 02 e3 b9 6d b1 5e 14 0e 82 19 34 d0 d1 e3 db be f6 fc 80 87 7d f6 d1 e1 28 06 e6 d4 88 a3 f7 f5 a3 e2 08 a7 d9 a2 f6 b7 fd 16 e8 ca 18 2c 03 be 76 a8 75 82 1d c8 c9 58 e6 a7 a8 42 d5 68 74 c3 9a 30 06 c1 5c 3d 49 22 27 b9 98 ............................................... x 6117行 ce 80 80 ff d9 End of codestream EOC </pre>