Atari ST color palette

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{FormatInfo |formattype=electronic |subcat=Graphics |subcat2=Atari graphics formats }} The Atari ST computer supports 3 bits per color channel, giving (2^3)^3 = 512 different...")
 
Line 10: Line 10:
 
  xx xx xx xx xx R2 R1 R0  xx G2 G1 G0 xx B2 B1 B0
 
  xx xx xx xx xx R2 R1 R0  xx G2 G1 G0 xx B2 B1 B0
  
 +
=== Atari STE palettes ===
 
The Atari "STE" models increased the color depth from 3 to 4 bits per color channel, thus supporting (2^4)^3 = 4096 different colors. For compatibility reasons, its palettes have the least significant bit in the position one might otherwise expect to be used for the ''most'' significant bit:
 
The Atari "STE" models increased the color depth from 3 to 4 bits per color channel, thus supporting (2^4)^3 = 4096 different colors. For compatibility reasons, its palettes have the least significant bit in the position one might otherwise expect to be used for the ''most'' significant bit:
 
  xx xx xx xx R0 R3 R2 R1  G0 G3 G2 G1 B0 B3 B2 B1
 
  xx xx xx xx R0 R3 R2 R1  G0 G3 G2 G1 B0 B3 B2 B1
  
Some Atari image files use these Atari STE 12-bit palettes, usually with no external indication that they do so. Trying to detect and interpret such palettes is a good idea, as grayscale (and grayscale-ish) images can be significantly improved by the extra color depth. (Unfortunately, it seems that some non-STE files contain garbage in the unused bits, instead of zeroes. So, autodetecting STE palettes may not be possible to do in a completely reliable way.)
+
Some Atari image files use these Atari STE 12-bit palettes, usually with no external indication that they do so. Trying to detect and interpret such palettes is a good idea, as grayscale (and grayscale-ish) images can be significantly improved by the extra color depth. (Unfortunately, it seems that some non-STE files contain garbage (or private data) in the unused bits, instead of zeroes. So, autodetecting STE palettes may not be possible to do in a completely reliable way.)
 +
 
 +
=== Bi-level images ===
 +
''[TODO: Explain how palettes for bi-level "high resolution" modes should be interpreted (if they should be interpreted at all). In practice, many such palettes contain white and black as expected, but others contain improbable colors such as dark blue and black, or red and white.]''
  
 
== Sample files ==
 
== Sample files ==
Line 20: Line 24:
 
* [http://cd.textfiles.com/suzybatari2/picmanip/pic_r2z/ss_img_1/clinton.img clinton.img]
 
* [http://cd.textfiles.com/suzybatari2/picmanip/pic_r2z/ss_img_1/clinton.img clinton.img]
 
=== Other ===
 
=== Other ===
* [http://cd.textfiles.com/suzybatari2/picmanip/pic_r2z/scanner/images/bilboule.pi1 bilboule.pi1] - Example of a file that appears to have garbage in the unused palette bits
+
* [http://cd.textfiles.com/suzybatari2/picmanip/pic_r2z/scanner/images/bilboule.pi1 bilboule.pi1] - Example of a file in which the extra palette bits are not zero
  
 
== Related formats ==
 
== Related formats ==
Line 32: Line 36:
 
Software known to support 12-bit STE-style palettes:
 
Software known to support 12-bit STE-style palettes:
 
* [[RECOIL]]
 
* [[RECOIL]]
* [http://entropymine.com/deark/ Deark]
+
* {{Deark}}

Revision as of 16:54, 2 February 2016

File Format
Name Atari ST color palette
Ontology

The Atari ST computer supports 3 bits per color channel, giving (2^3)^3 = 512 different colors. In the standard video modes, no more than 16 different colors can be displayed at the same time, and a color palette is used to define the available colors.

Contents

Format details

In a number of Atari graphics formats, the palette is stored in a format with 16 bits per palette entry, only 9 of which are significant:

xx xx xx xx xx R2 R1 R0  xx G2 G1 G0 xx B2 B1 B0

Atari STE palettes

The Atari "STE" models increased the color depth from 3 to 4 bits per color channel, thus supporting (2^4)^3 = 4096 different colors. For compatibility reasons, its palettes have the least significant bit in the position one might otherwise expect to be used for the most significant bit:

xx xx xx xx R0 R3 R2 R1  G0 G3 G2 G1 B0 B3 B2 B1

Some Atari image files use these Atari STE 12-bit palettes, usually with no external indication that they do so. Trying to detect and interpret such palettes is a good idea, as grayscale (and grayscale-ish) images can be significantly improved by the extra color depth. (Unfortunately, it seems that some non-STE files contain garbage (or private data) in the unused bits, instead of zeroes. So, autodetecting STE palettes may not be possible to do in a completely reliable way.)

Bi-level images

[TODO: Explain how palettes for bi-level "high resolution" modes should be interpreted (if they should be interpreted at all). In practice, many such palettes contain white and black as expected, but others contain improbable colors such as dark blue and black, or red and white.]

Sample files

Images with 12-bit palettes

Other

  • bilboule.pi1 - Example of a file in which the extra palette bits are not zero

Related formats

Formats that use this style of palette (12-bit palettes are not necessarily allowed for all of these formats):

Software

Software known to support 12-bit STE-style palettes:

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox