Graphic Tools GuideFormat list

DGT2 data format


■ File layout

 offset
 size
 function
 $ 00
 word
 identifier
 $ 02
 $ 04
 Image size
 $ 06
 variable
 CLUT (exists if necessary)
 variable
 variable
 Bitmap data

◆ Identifier
"PP"
 Palette mode 256 colors / 32768 colors
"DC"
 RGB mode 32768 colors
"RL"
 Run-length mode 256 colors / 32768 colors
"FP"
 Palette mode 256 colors / approx. 16.77 million colors
"FC"
 RGB mode about 16.77 million colors
"pp"
 Palette mode 16 colors / 32768 colors
"fp"
 Palette mode 16 colors / approx. 16.77 million colors

◆ Image size
 offset
 size
 Explanation
 $ 00
 word
 H image size
 $ 02
 word
 V image size

◆ CLUT
Exists in palette mode and run length mode.
 offset
 size
 function
 $ 00
 Word or long x number of pallets (16 or 256)
 CLUT data

● In "PP" / "RL" mode, the number of pallets = 256 In "pp" mode, the number of pallets = 16
MSB color data LSB
│ │ Blue │ Green │ Red │
┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐
│ * │ 4 │ 3 │ 2 │ 1 │ 0 │ 4 │ 3 │ 2 │ 1 │ 0 │ 4 │ 3 │ 2 │ 1 │ 0 │
└─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘

● In "FP" mode, the number of pallets = 256 In "fp" mode, the number of pallets = 16
MSB │ Color Code │ │ Blue │
┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐
│ * │-│-│-│-│-│-│-│ 7│6│5│4│3│2│1│0│
└─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘
 
LSB
│ Green │ Red │
┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐
│ 7 │ 6 │ 5 │ 4 │ 3 │ 2 │ 1 │ 0 │ 7 │ 6 │ 5 │ 4 │ 3 │ 2 │ 1 │ 0 │
└─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘
* = Can be set freely (normally = 1b)

◆ Bitmap data
 offset
 size
 function
 $ 00 ~
 variable
 Bitmap data

● In "PP" / "FP" mode: 8bit / dot
MSB LSB
│ Palette code │
┌─┬─┬─┬─┬─┬─┬─┬─┐
│ 7 │ 6 │ 5 │ 4 │ 3 │ 2 │ 1 │ 0 │
└─┴─┴─┴─┴─┴─┴─┴─┘

● In "DC" mode: 16bit / dot
MSB color data LSB
│ │ Blue │ Green │ Red │
┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐
│ * │ 4 │ 3 │ 2 │ 1 │ 0 │ 4 │ 3 │ 2 │ 1 │ 0 │ 4 │ 3 │ 2 │ 1 │ 0 │
└─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘
* = Can be set freely (normally = 1b)

● In "FC" mode: 32bit / dot
MSB │ Color Code │ │ Blue │
┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐
│ * │-│-│-│-│-│-│-│ 7│6│5│4│3│2│1│0│
└─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘
 
LSB
│ Green │ Red │
┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐
│ 7 │ 6 │ 5 │ 4 │ 3 │ 2 │ 1 │ 0 │ 7 │ 6 │ 5 │ 4 │ 3 │ 2 │ 1 │ 0 │
└─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘
* = Can be set freely (normally = 1b)

● In "pp" / "fp" mode: 4bit / dot
MSB LSB
│ Even coordinate code │ Odd coordinate code │
┌─┬─┬─┬─┬─┬─┬─┬─┐
│ 3 │ 2 │ 1 │ 0 │ 3 │ 2 │ 1 │ 0 │
└─┴─┴─┴─┴─┴─┴─┴─┘

● In "RL" mode:

MSB LSB
│ Continuous length │ CLUT index number │
┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐
│ 7 │ 6 │ 5 │ 4 │ 3 │ 2 │ 1 │ 0 │ 7 │ 6 │ 5 │ 4 │ 3 │ 2 │ 1 │ 0 │
└─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘

Graphic Tools GuideFormat list
Copyright SEGA ENTERPRISES, LTD ,. 1997