Introduction
On the Amstrad CPC, a picture of OCP Art Studio or Advanced OCP Art Studio is a pair of
files with the same name: a .scr file holding the screen and a
.pal file holding its colours.
Structure
The screen file is about 16 KB of raw video memory, which belongs at address $4000. It may start with a 128-byte AMSDOS header. The lines are interleaved in memory, and unused gaps recur every 2 KB.
OCP’s packed screens begin with the signature MJH and a length. They use
run-length packing in which the byte $01 introduces a count and a value, a count of 0
meaning 256. Other tools save further compressed variants, and some screen files carry
their own loader.
The palette file holds 239 bytes, apart from any AMSDOS header: the video mode, settings for colour animation, and the ink colours for twelve animation frames, followed by data for the border and for excluded and protected inks.
Not described
Known, not yet covered
- Reference: the pixel encoding of the three video modes, the exact palette offsets and the other compressed variants are not yet described.
- Viewer: the site has no viewer for Amstrad CPC screens.
Also used for
- JASC Paint Shop Pro palette – Plain-text colour palettes from Paint Shop Pro, starting JASC-PAL.
- Microsoft RIFF palette – Windows binary colour palettes stored in a RIFF container.
- Windows 64-bit executable (PE32+) – 64-bit Windows programs and DLLs (x64, ARM64), with a 64-bit optional header (magic 0x20B).
- Windows executable (PE32) – 32-bit Windows programs and DLLs, with a 32-bit optional header (magic 0x10B).
- Windows screen saver – An executable renamed to .scr, built with the screen saver library.
- ZX Spectrum screen dump – 6912-byte dumps of the ZX Spectrum screen.
Links
Software
- OCP Art Studio – the Amstrad CPC paint program that defines the format
- GrafX2 – paint program that loads and saves CPC screens, here its Debian source
- RECOIL – decoder for the picture formats of retro computers, here its format list
- GoDot – Commodore 64 image processing program with a loader for 16-colour CPC screens
Reference
- cpcformats.c – the Amstrad CPC picture loaders in the GrafX2 source, with notes on the files
- OCP Art Studio loader – GoDot’s notes on the screen and palette files, in German