•  Back 
  •  %Main 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help page 
  •  Show info about hypertext 
  •  View a new file 
Topic       : ATARI ST Picture formats
Author      : David Baggett/Jan K⌐upka
Version     : atari_gf.hyp 0.01 (17/09/96)
Subject     : Documentation/File formats
Nodes       : 52
Index Size  : 1328
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : 
@help       : 
@options    : -i -s +y +z
@width      : 75ComputerEyes Raw Data Format  *.CE1 (low resolution)
                              *.CE2 (medium resolution)

1 longlong = 4 bytes
          [$45594553 or "EYES"]
1 wordword = 2 bytes
          resolution [0 = low res, 1 = medium res]
8 words         ?
If resolution = 0 {
64000 bytes     red plane, 320 x 200, 1 pixel per byte
64000 bytes     green plane, 320 x 200, 1 pixel per byte
64000 bytes     blue plane, 320 x 200, 1 pixel per byte
192022 bytes    total
} else If resolution = 1 {
128000 words    640 x 200, 1 pixel per wordword = 2 bytes

256022 bytes    total
}

   This is almost two formats in one:
   Low resolution:

           The planes are arranged vertically, instead of
           horizontally.
        The first byte is the red component of pixel (0,0), the
        second is (0,1),
        and the third (0,2).  The 201st corresponds to (1,0), etc.
        The 64001st
        byte is the green component of (0,0).
           Only the low six bits of each byte are used.

   Medium resolution:

           The picture is arranged vertically, instead of
           horizontally.
        The first wordword = 2 bytes
 is pixel (0,0), the second is (0,1), and the
        third
        (0,2).  The 200th is (1,0) etc.
           Each wordword = 2 bytes
 is divided up into the RGB values for the
           corresponding
        pixel, as follows:

          Bit:  (MSB) 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
          (LSB)

                       0 B4 B3 B2 B1 B0 G4 G3 G2 G1 G0 R4 R3 R2 R1 R0

        Bit 15 is not used.