Difference between revisions of "AGI/Specifications/Formats"

Jump to navigation Jump to search
m
colour -> color
(Wikify and fill in differences from SGML. Work complete)
m (colour -> color)
 
Line 106: Line 106:
===Picture compression===
===Picture compression===


Pictures in AGI version 3 use a simple form of compression to shrink their size my a tiny amount. It was obviously recognised by the interpreter coders that four bits were being wasted for picture codes 0xF0 and 0xF2. These are the two codes that change the visual and the priority colour respectively. Since there are only 16 colours, there need not be a whole byte set aside for storing the colour. All the picture compression does is store these colours in 4 bits rather than 8.
Pictures in AGI version 3 use a simple form of compression to shrink their size my a tiny amount. It was obviously recognized by the interpreter coders that four bits were being wasted for picture codes 0xF0 and 0xF2. These are the two codes that change the visual and the priority color respectively. Since there are only 16 colors, there need not be a whole byte set aside for storing the color. All the picture compression does is store these colors in 4 bits rather than 8.


Example:
Example:
2,051

edits

Navigation menu