Difference between revisions of "PixArt file format"

From AtariForumWiki2018
Jump to: navigation, search
m (updated info)
m (12 revisions imported)
 
(3 intermediate revisions by one other user not shown)
Line 4: Line 4:
 
1 long          file ID 'PIXT'
 
1 long          file ID 'PIXT'
 
1 word          version, $0001 or $0002
 
1 word          version, $0001 or $0002
−
1 byte          type, chunky (0) or planar (1)
+
1 byte          type, 0 to 2 depending on number of planes, see below
−
1 byte          #bitplanes
+
1 byte          number of planes
 
1 word          xres (always a multiple of 16)
 
1 word          xres (always a multiple of 16)
 
1 word          yres
 
1 word          yres
Line 14: Line 14:
  
 
3*n bytes        palette, only for bit depths 2, 4, 8
 
3*n bytes        palette, only for bit depths 2, 4, 8
−
???? bytes      image data, chunky or planar for bit depths 2, 4, 8
+
                  3 bytes per entry in RGB order (0-255)
−
                bit depth 16 is always chunky, format:
+
 
−
                  type = 0, xRRRRRGGGGGBBBBB
+
???? bytes      image data:
−
                  type = 1, RRRRRGGGGGGBBBBB (Falcon)
+
                  bit depth 1
−
                  type = 2, GGGBBBBBxRRRRRGG (word swapped)
+
                    type = 1, planar
−
                bit depth 24 is always chunky, format:
+
                  bit depths 2, 4, 8
−
                  type = 0, BGR
+
                    type = 0, chunky
−
                  type = 1, RGB
+
                    type = 1, planar
−
                bit depth 32 is always chunky, format:
+
                  bit depth 16 is always chunky:
−
                  type = 0, ARGB
+
                    type = 0, xRRRRRGGGGGBBBBB
 +
                    type = 1, RRRRRGGGGGGBBBBB (Falcon)
 +
                    type = 2, GGGBBBBBxRRRRRGG (word swapped)
 +
                  bit depth 24 is always chunky:
 +
                    type = 0, BGR
 +
                    type = 1, RGB
 +
                  bit depth 32 is always chunky:
 +
                    type = 0, ARGB
 
</pre>
 
</pre>
 
Back to [[ST Picture Formats]]
 
Back to [[ST Picture Formats]]

Latest revision as of 01:01, 4 June 2018

PixArt          *.PIX

1 long           file ID 'PIXT'
1 word           version, $0001 or $0002
1 byte           type, 0 to 2 depending on number of planes, see below
1 byte           number of planes
1 word           xres (always a multiple of 16)
1 word           yres
1 word           unknown
1 word           unknown (version $0002 only)
--------------
14 or 16 bytes   total for header

3*n bytes        palette, only for bit depths 2, 4, 8
                   3 bytes per entry in RGB order (0-255)

???? bytes       image data:
                   bit depth 1
                     type = 1, planar
                   bit depths 2, 4, 8
                     type = 0, chunky
                     type = 1, planar 
                   bit depth 16 is always chunky:
                     type = 0, xRRRRRGGGGGBBBBB
                     type = 1, RRRRRGGGGGGBBBBB (Falcon)
                     type = 2, GGGBBBBBxRRRRRGG (word swapped)
                   bit depth 24 is always chunky:
                     type = 0, BGR
                     type = 1, RGB
                   bit depth 32 is always chunky:
                     type = 0, ARGB

Back to ST Picture Formats