home *** CD-ROM | disk | FTP | other *** search
- Tiny Stuff and Tiny View
- by David Mumper
- ST Picture Compression
-
-
- Here is the file format for a Tiny compacted file:
-
- 1 byte that tells which resolution and if there is rotation information
-
- (if there is rotation information it is stored as follows:
-
- 1 byte for the start and end color to rotate (start is high 4 bits
- end is low 4 bits)
-
- 1 byte for direction and speed of rotation (negative for left
- rotation, positive for right; actual number is the number of
- vertical blank interrupts to wait between each rotation)
-
- 2 bytes for the number of revolutions to make)
-
- 2 bytes that tell how many control bytes there are
-
- 2 bytes that tell how many data bytes there are
-
- 32 bytes that contain the color palette for the picture
-
- 3-10667 control bytes
-
- 2-32000 data bytes
-
- -------
- 42/32044 minimum/maximum size
-
- The screen is scanned column by column, plane by plane (assuming low res
- format) as the program does the compaction.
- If there is rotation information, the resolution value has 3 added to it
- to signify this.
-
- Control bytes are interpreted as follows:
-
- x<0 -- 1-127 unique words are taken from the data section
-
- x=0 -- two more words are taken from the control section that are a value
- (128-32767) which is the number of times to repeat the next data
- word
-
- x=1 -- two more bytes are taken from the control section that are a value
- (128-32767) which is the numberof unique words to take from data
- section
-
- x>1 -- one byte of repetitive information is taken from data section and
- repeated 2-127 times
-