| 36 | == Bit allocation == |
| 37 | |
| 38 | A compressed image usually contains the following information: |
| 39 | * The image geometry information (width and height) |
| 40 | * Optional colour information (palette) |
| 41 | * Elementary picture elements (encoded as pixels, triangles, vectors...) |
| 42 | |
| 43 | Given the amount of compression we are doing, there is little point in compressing images larger than 512×512. This reduces image geometry information to 18 bits, leaving us with 2308 bits to encode the image information. |
| 44 | |
| 45 | Whether to use a palette or to encode colour information into the picture elements is undecided yet. We'll cover both options. |
| 46 | |
| 47 | == Storing a palette == |
| 48 | |
| 49 | ''To do.'' |
| 50 | |
| 51 | == Not storing a palette == |
| 52 | |
| 53 | ''To do.'' |