Degas

From MultimediaWiki
Revision as of 18:02, 26 April 2008 by Ivo (talk | contribs) (Atari ST DEGAS and DEGAS Elite file format)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

DEGAS (short for Design & Entertainment Graphic Arts System) and DEGAS Elite were image drawing programs for the Atari ST.

DEGAS

  • Extensions: .pi1, .pi2, .pi3
typedef DEGASFile {
 uint16_t resolution;                    /* 0 = low res (320x200x16), 1 = medium res (640x200x4), 2 = high res (640x400x2) */
 uint16_t hardware_palette[16];
 uint16_t data[16000];
} DEGASFile;

sizeof(DegasFile) = 32034

DEGAS Elite (Uncompressed)

  • Extensions: .pi1, .pi2, .pi3
typedef DEGASEliteFile {
 uint16_t resolution;                    /* see above */
 uint16_t hardware_palette[16];
 uint16_t data[16000];
 uint16_t left_color_animation[4];
 uint16_t right_color_animation[4];
 uint16_t channel_direction[4];          /* 0 = left, 1 = none, 2 = right */
 uint16_t channel_delay[4];              /* 128 - channel delay, timebase 1/60 s */
} DEGASEliteFile;

sizeof(DegasEliteFile) = 32066

DEGAS Elite (Compressed)

  • Extensions: .pc1, .pc2, .pc3
typedef DEGASEliteFileCompressed {
 uint16_t resolution;                    /* see above */
 uint16_t hardware_palette[16];
 uint16_t data[];                        /* size depends on compression ratio */
 uint16_t left_color_animation[4];
 uint16_t right_color_animation[4];
 uint16_t channel_direction[4];          /* see above */
 uint16_t channel_delay[4];              /* see above */
} DEGASEliteFileCompressed;

Compression scheme: PackBits RLE

  • The image is compressed from top to bottom
  • Each scanline is compressed separately
  • For every scanline, each bit plane is compressed separately, starting with the least significant bits