Changes between Version 4 and Version 5 of img2twit


Ignore:
Timestamp:
05/22/2009 01:43:45 AM (16 years ago)
Author:
Sam Hocevar
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • img2twit

    v4 v5  
    4545Whether to use a palette or to encode colour information into the picture elements is undecided yet. We'll cover both options.
    4646
    47 == Storing a palette ==
     47== Strategy 1: colour information in picture elements ==
    4848
    49 ''To do.''
     49Each picture element will hold data for:
     50 * coordinates
     51 * colour information
     52 * additional control information
     53
     54Coordinates could be absolute (therefore requiring 16 or 14 bits, maybe 12) or relative. I would favour a coordinate system relative to predefined image cells because there is a good chance that each cell will hold a point. Assuming at least 8 horizontal and vertical subdivisions, 6 bits can be gained this way. The final coordinate bit allocation is now 10, 8 or 6. We'll pick 8 to be safe for now: 16 X values and 16 Y values.
     55
     56Using 7 bits per colour allows for the following options:
     57 * full bit range usage: 4 red values, 8 green values, 4 blue values
     58 * almost full bit range usage: 5 red values, 5 green values, 5 blue values
     59
     60Finally, a weight value could be added, using a final bit.
     61
     62The proposed allocation is then 16, allowing 144 points to be stored in the following configurations:
     63 * 12×12
     64 * 10×14 (losing 4 points)
     65 * 9×16
     66 * 8×18
     67 * 7×20 (losig 4 points)
     68 * 6×24
    5069
    5170== Not storing a palette ==