Portable Game Console
PoGa-4DGL Reference Manual
Single Frame Image Format
GCI nomenclature
Byte
offset
Usage
IMG_WIDTH_HI
0
HI byte of image width
IMG_WIDTH_LO
1
LO byte of image width
IMG_HEIGHT_HI
2
HI byte of image height
IMG_HEIGHT_LO
3
LO byte of image height
IMG_MODE
4
Mode (set to 16, fixed 16bit colour)
(not used)
5
Always set to zero for single image
Image storage (WORDS)
Image size = 6 + IMG_WIDTH * IMG_HEIGHT
Next image.........
Multiple Frame (movie) Image Format
GCI nomenclature
Byte
offset
Usage
IMG_WIDTH_HI
0
HI byte of image width
IMG_WIDTH_LO
1
LO byte of image width
IMG_HEIGHT_HI
2
HI byte of image height
IMG_HEIGHT_LO
3
LO byte of image height
IMG_MODE
4
Mode (set to 16, fixed 16bit colour)
IMG_DELAY
5
Inter frame delay, 1-255 msec
FRAMECOUNT_HI
6
HI byte of image frame count
FRAMECOUNT_LO
7
LO byte of image frame count
Image storage (WORDS)
Image size = 8 + IMG_WIDTH * IMG_HEIGHT * FRAMECOUNT
Next Image..........
© 2011 4D Systems
www.4dsystems.com.au
Page 79 of 87