Changes between Version 3 and Version 4 of img2twit


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

bit allocation

Legend:

Unmodified
Added
Removed
Modified
  • img2twit

    v3 v4  
    33The first I read about this "competition" was [http://www.flickr.com/photos/quasimondo/3518306770/in/set-72057594062596732/ here].
    44
    5 == Bit allocation discussion ==
     5== Bit availability ==
    66
    77Twitter allows for 140 characters in a message. UTF-8 is allowed.
     
    3434We'll go on with this value of 2326 encodable bits.
    3535
     36== Bit allocation ==
     37
     38A 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
     43Given 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
     45Whether 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.''