Specification(仕様) 
Ver1との違い 
- Mip Map対応
- UserDataの対応
- 拡張領域のデータルールを大幅変更
Tag Rule 
English | 日本語 | There is consecutive data whitch is set of tag name, attribute name, and data coressponding to attribute&. | タグ名、属性、属性に対応するデータが順番に連続して並んでいる。 | All data is included with section named "TEX_TARGA". | 全ては"TEX_TARGA"というタグ名のセクションで囲まれている。 | Tag is unique in a secction. | セクションの中でタグ名が重複することはありません |
Example(例)
"TEX_TARGA""begin""VERSION""u8"2"PIXEL_FORMAT""string""RGB565""TEX_TARGA""end"
- attribute of tag list(タグの属性一覧)
attribute name | comment | コメント | begin | Begin of section. | セクションの始まりを表す。 | end | End of section. | セクションの終わりを表す。 | u8 | Unsigned char data. | unsigned charデータ。 | u16 | Unsigned short data. | unsigned shortデータ。 | u32 | Unsigned long data. | unsigned longデータ。 | s8 | Signed char data. | Signed charデータ。 | s16 | Signed short data. | Signed shortデータ。 | s32 | Signed long data. | Signed longデータ。 | string | Character string. End of string is must NULL. | 文字列。終端に¥0が存在する。 | bytes | Binary data. After attribute name'bytes¥0',There is u32 data that binary data length. After this, exist binary data array. | バイナリデータの配列。 'bytes¥0'の後にバイナリデータの長さを表すu32のデータが存在する。 その後にバイナリデータの配列が存在する。 |
Tag Reference(タグリファレンス) 
- ROOT
name of tag (タグ名) | must (必須) | attribute | comment | コメント | TEX_TARGA | Yes | (section) | Root section. | ルートとなるSection。 |
- ROOT/TEX_TARGA
name of tag (タグ名) | must (必須) | attribute | comment | コメント | VERSION | Yes | u8 | Format version number.Must be 2. | フォーマットのバージョン番号。2が入る。 | PIXEL_FORMAT | Yes | string | Required pixel format type. (see Pixel format list) | ピクセルフォーマットを示す文字列。 (詳しくはPixel format list | SRC_DATA | No | bytes | Before converted pixel data. | 減色前のピクセルデータ。 | MIP_MAP | No | (section) | Mip map data section. | ミップマップのデータセクション。 | USER_DATA | No | (section) | User data section. ※1 | ユーザーデータセクション。※1 |
※1 Format is free.(フォーマットは決まっていません。自由に使用していただけます。)
- ROOT/TEX_TARGA/MIP_MAP
name of tag (タグ名) | must (必須) | attribute | comment | コメント | MAX_LEVEL | Yes | u8 | Mip map max level.Grater equal 1. | ミップマップ最大レベル。1以上。 | LEVEL_* | Yes | (section) | Mip map level section. Ex. level1 is "LEVEL_1" | ミップマップの1つのレベルのセクション。 例:レベル1なら"LEVEL_1" |
Mip map image size must be involution of 2。(MipMapのイメージサイズは2のべき乗である必要がある)
- ROOT/TEX_TARGA/MIP_MAP/LEVEL_*
name of tag (タグ名) | must (必須) | attribute | comment | コメント | TEX_DATA | Yes | bytes | Mip map image data. | ミップマップイメージデータ。 | SRC_DATA | No | bytes | Mip map image data. (Before color reduction image data) | ミップマップデータ。減色前のデータが並んでいる。 |
Pixel format list
name | bits of elements | bits per pixel | R | G | B | A | L | I | Alpha (1,1,1,A) [tga bpp = 32] | A1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | A2 | 0 | 0 | 0 | 2 | 0 | 0 | 2 | A4 | 0 | 0 | 0 | 4 | 0 | 0 | 4 | A8 | 0 | 0 | 0 | 8 | 0 | 0 | 8 | Luminance (L,L,L,1) [tga bpp = 24] | L1 | L | L | L | 0 | 1 | 0 | 1 | L2 | L | L | L | 0 | 2 | 0 | 2 | L4 | L | L | L | 0 | 4 | 0 | 4 | L8 | L | L | L | 0 | 8 | 0 | 8 | LuminanceAlpha (L,L,L,A) [tga bpp = 32] | LA1 | L | L | L | 1 | 1 | 0 | 2 | LA2 | L | L | L | 2 | 2 | 0 | 4 | LA4 | L | L | L | 4 | 4 | 0 | 8 | LA8 | L | L | L | 8 | 8 | 0 | 16 | Intensity (I,I,I,I) [tga bpp = 32] | I1 | I | I | I | I | 0 | 1 | 1 | I2 | I | I | I | I | 0 | 2 | 2 | I4 | I | I | I | I | 0 | 4 | 4 | I8 | I | I | I | I | 0 | 8 | 8 | RGB (R,G,B,1) [tga bpp = 24] | RGB565 | 5 | 6 | 5 | 0 | 0 | 0 | 16 | RGB8 | 8 | 8 | 8 | 0 | 0 | 0 | 24 | RGBA (R,G,B,A) [tga bpp = 32] | RGBA1 | 1 | 1 | 1 | 1 | 0 | 0 | 4 | RGBA2 | 2 | 2 | 2 | 2 | 0 | 0 | 8 | RGBA4 | 4 | 4 | 4 | 4 | 0 | 0 | 16 | RGBA6 | 6 | 6 | 6 | 6 | 0 | 0 | 24 | RGBA8 | 8 | 8 | 8 | 8 | 0 | 0 | 32 | RGBA_S3TC [tga bpp = 32] | RGBA_S3TC_DXT1 | ? | ? | ? | ? | 0 | 0 | 4 | RGBA_S3TC_DXT3 | ? | ? | ? | ? | 0 | 0 | 8 | RGBA_S3TC_DXT5 | ? | ? | ? | ? | 0 | 0 | 8 |
History 
- q, i agreed with author, http://www.qbn.com/Codeine/ buy codeine, 8-], http://www.qbn.com/Ritalin/ buy ritalin no prescription, :[[, http://www.alldeaf.com/members/replica-rolex.html buy replica rolex watches, :O, http://www.nabble.com/Buy-Lasix.-Order-Lasix-No-Prescription!-td26105300s4704.html buy lasix, 501, http://www.nabble.com/Buy-zithromax.-Order-generic-zithromax-online.-td26105321s4704.html where to buy zithromax, 010, -- liza?
|