Spectrum 512 formats

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
m (Sample files)
 
(17 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
|formattype=electronic
 
|formattype=electronic
 
|subcat=Graphics
 
|subcat=Graphics
|extensions={{ext|spu}} {{ext|spc}}<br>{{ext|sps}}
+
|subcat2=Atari graphics formats
 +
|extensions={{ext|spu}}, {{ext|spc}}, {{ext|sps}}
 
}}
 
}}
The '''Spectrum 512 formats''' are a group of raster image file formats associated with the ''Spectrum 512'' paint program for Atari ST.
+
The '''Spectrum 512 formats''' are a family of raster image file formats associated with the ''Spectrum 512'' paint program for Atari ST.
  
== Format ==
+
== Format details ==
 
There are three main file formats:
 
There are three main file formats:
 
* Spectrum 512 Uncompressed (.spu)
 
* Spectrum 512 Uncompressed (.spu)
* Spectrum 512 Compressed (.spc)
+
* Spectrum 512 Compressed (.spc; signature="<code>SP</code>")
* Spectrum 512 Smooshed (.sps)
+
* Spectrum 512 Smooshed (.sps; signature="<code>SP</code>")
  
The image dimensions are always 320×199 pixels, but it seems to be standard practice to interpret them as being 320×200, with an all-black top row.
+
There is also said to be a backward-compatible "Enhanced" variant of the ''Uncompressed'' format, in which the palette colors have a [[Atari ST color palette#Spectrum 512 Enhanced palettes|slightly different format]].
 +
 
 +
There is no easy way to distinguish ''Compressed'' and ''Smooshed'' formats, other than by the filename extension.
 +
 
 +
The image dimensions are always 320×199 pixels, though some decoders interpret them as being 320×200, with an all-black top row.
  
 
There are 4 bits of image data per pixel, which are interpreted using a complicated system of color palettes.
 
There are 4 bits of image data per pixel, which are interpreted using a complicated system of color palettes.
  
For uncompressed (.spu) files, the first 160 bytes of the file should be set to zero. Following that are 31840 bytes of image data (160 for each row). Following that are 19104 bytes of palette data. The total file size is 51104 bytes.
+
For uncompressed (.spu) files, the first 160 bytes are usually set to zero (except in the "Enhanced" variant). Following that are 31840 bytes of image data (160 for each row). Following that are 19104 bytes of palette data. The total file size is 51104 bytes.
 +
 
 +
== Related formats ==
 +
Related formats described in other articles:
 +
* [[Spectrum 512 Anispec]] (.sps; signature="<code>SS</code>")
 +
* [[Spectrum 512 Extended]] (.spx; signature="<code>SPX</code>")
  
 
== Software ==
 
== Software ==
* [http://netpbm.sourceforge.net/ Netpbm]: ppmtospu (v10.58+), sputoppm, spctoppm
+
* [[Konvertor]]
* [http://www.xnview.com/ XnView]
+
* [[RECOIL]]
 +
* [[Netpbm]]: ppmtospu (v10.58+), sputoppm, spctoppm
 +
* [[XnView]]
 +
* {{Deark}}
 +
* [http://snisurset.net/code/abydos/ abydos]
  
 
== Sample files ==
 
== Sample files ==
* http://samples.libav.org/image-samples/atarist/spectrum512/
+
* http://samples.libav.org/image-samples/atarist/spectrum512/ - SPU, SPC
 +
* http://cd.textfiles.com/geminiatari/FILES/GRAPHICS/SPECPICS/ - SPC, SPS
 +
* http://cd.textfiles.com/806atari/301-400/315/ - SPS
 +
* {{DexvertSamples|image/spectrum512C}}
 +
* {{DexvertSamples|image/spectrum512U}}
 +
* {{DexvertSamples|image/spectrum512S}}
  
 
== Resources ==
 
== Resources ==
* [http://www.mediatel.lu/workshop/graphic/2D_fileformat/h_atari.html Atari ST Picture Formats]
+
* {{AtariForumWiki|ST_Picture_Formats|AtariForumWiki: ST_Picture_Formats}}
 +
** {{AtariForumWiki|Spectrum_512_file_format|Spectrum 512}}
 +
*** {{AtariForumWiki|Spectrum_512_Enhanced_file_format|Spectrum 512 Enhanced}}
 +
** {{AtariForumWiki|Spectrum_512_Compressed_file_format|Spectrum 512 Compressed}}
 +
** {{AtariForumWiki|Spectrum_512_Smooshed_file_format|Spectrum 512 Smooshed}}
 
* [http://wiki.multimedia.cx/index.php?title=Spectrum_512 MultimediaWiki article]
 
* [http://wiki.multimedia.cx/index.php?title=Spectrum_512 MultimediaWiki article]
 
[[Category:Atari computers]]
 

Latest revision as of 04:40, 28 December 2023

File Format
Name Spectrum 512 formats
Ontology
Extension(s) .spu, .spc, .sps

The Spectrum 512 formats are a family of raster image file formats associated with the Spectrum 512 paint program for Atari ST.

Contents

[edit] Format details

There are three main file formats:

  • Spectrum 512 Uncompressed (.spu)
  • Spectrum 512 Compressed (.spc; signature="SP")
  • Spectrum 512 Smooshed (.sps; signature="SP")

There is also said to be a backward-compatible "Enhanced" variant of the Uncompressed format, in which the palette colors have a slightly different format.

There is no easy way to distinguish Compressed and Smooshed formats, other than by the filename extension.

The image dimensions are always 320×199 pixels, though some decoders interpret them as being 320×200, with an all-black top row.

There are 4 bits of image data per pixel, which are interpreted using a complicated system of color palettes.

For uncompressed (.spu) files, the first 160 bytes are usually set to zero (except in the "Enhanced" variant). Following that are 31840 bytes of image data (160 for each row). Following that are 19104 bytes of palette data. The total file size is 51104 bytes.

[edit] Related formats

Related formats described in other articles:

[edit] Software

[edit] Sample files

[edit] Resources

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox