jueves, 28 de abril de 2011

Por si hay dudas


------------------------------------------------------------------------------------------------
        CODE            |         PIXELS          |    NOTES
------------------------------------------------------------------------------------------------
   no. | value | length | this code | accumulated |    Relations using N¡ apply only to same-
   N¡  | N¡+256| (bits) |    N¡     | N¡(N¡+1)/2  |<-- color pixels until coding table is full.
________________________________________________________________________________________________
   0:  |  100h |    9   |           |             | Clear code table
----------------        -----------------------------------------------------
   1:  |   FFh |        |     1     |      1      | Top left pixel color chosen as the
       |       |        |           |             | highest index of a 256-color palette
----------------        -----------------------------------------------------
   2:  |  102h |        |     2     |      3      |
----------------        -----------------------------------------------------
   3:  |  103h |        |     3     |      6      |
   :       :   |        |     :            :      |
 255:  |  1FFh |        |    255    |    32 640   | Last 9-bit code
-----------------------------------------------------------------------------
 256:  |  200h |   10   |    256    |    32 896   |
   :       :   |        |     :            :      |
 767:  |  3FFh |        |    767    |   294 528   | Last 10-bit code
-----------------------------------------------------------------------------
 768:  |  400h |   11   |    768    |   295 296   |
   :       :   |        |     :     |      :      |
1791:  |  7FFh |        |   1791    | 1 604 736   | Last 11-bit code
-----------------------------------------------------------------------------
1792:  |  800h |   12   |   1792    | 1 606 528   |
   :       :   |        |     :     |      :      |
3839:  |  FFFh |        |   3839    | 7 370 880   | Code table full
----------------        -----------------------------------------------------
   :   |  FFFh |        |   3839    | The maximum code may repeat for more same-color pixels.
   :   |       |        |           | Overall data compression asymtotically approaches
   :   |       |        |           | 3839 x 8 / 12 = 2559-1/3
-------|-------|        |-----------|----------------------------------------
       |  101h |        |           |             | End of image data
_____________________________________________________________________________
 
byte#  hexadecimal  text or (hex)               value      Meaning
0:     47 49 46
       38 39 61     GIF89a     Header
                               Logical Screen Descriptor
6:     90 01        400         - width pixels
8:     90 01        400         - height pixels
A:     F7                       - GCT follows for 256 colors with resolution 3 x 8bits/primary
B:     00           0           - background color #0
C:     00                       - default aspect ratio
D:                             Global Color Table
:
30D:   21 FF 0B                Application Extension
310:   4E 45 54
       53 43 41
       50 45 32
       2E 30        NETSCAPE2.0
31B:   03 01                    - data follows
31D:   FF FF                    - loop animation
31F:   00                       - end
320:   21 F9 04                Graphic Control Extension frame #1
323:   08                       - no transparency
324:   09 00                    - 0.09 sec duration
325:   00                       - no transparent color
327:   00                       - end
328:   2C                      Image Descriptor
329:   00 00 00 00  (0,0)       - scan pixels from left top...
32D:   90 01 90 01  (400,400)   - ...to right bottom
331:   00                       - end
332:   08           8          LZW min code size
333:   FF           255        255 bytes LZW encoded image data follow
334:                data
433:   FF           255        255 bytes LZW encoded image data follow
                    data
                     :
92BA:  00                      end
92BB:  21 F9 04                Graphic Control Extension frame #2
 :                                                              :
153B7B:21 F9 04                Graphic Control Extension frame #44
 :
15CF35:3B           1 429 301  File terminates

Ana María Matute: "El que no inventa no vive"

4 comments :

Tempus fugit dijo...

¡Por favor! Está clarísimo... Es que... cómo sois.


un abrazo

cristal00k dijo...

Bueno, no hay caso... inventiva no es lo que falta por estos lares. Precioso discurso.
Y por otro lado, tiene razón De cenizas, por una vez está más claro que el agua. Sieejjjqueee
Eso, abrazos.

gaia07 dijo...

Pues no he entendido nada, salvo, quizás, “Files terminates”, y porque está al final.
Toda una vida para acabar sin entender nada. Qué triste.

Un beso (de los de directo al tema y sin jeroglíficos)

mirada dijo...

y si calco esta plantilla ¿qué resulta? ¿y dónde?.. va yo no sé nada, de nada....
MUUUUUUUUUAAAACKS
(hoy te me escapaste por los pelos)

Mi foto
Bilbao, Euskadi
pedromg@gmail.com

Creative Commons License Page copy protected against web site content infringement by Copyscape ecoestadistica.com site statistics

Vistas de página en total

Lo que hay.(Desde 08.02.07)

Se quedaron

Así vamos

Aquí desde 08.02.2007

(Antes en Blogia desde 07.2004)

(Y mucho antes en "La tertulia en Mizar")

6.756 entradas