Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
GIF
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Image decoding=== Decoding begins by mapping the stored bytes back to 9-bit codes. These are decoded to recover the pixel colors as shown below. A table identical to the one used in the encoder is built by adding strings by this rule: {| class="wikitable" |+ Is incoming code found in table? | {{Yes}} || add string for local code followed by first byte of string for incoming code |- | {{No}} || add string for local code followed by copy of its own first byte |} '''shift''' '''9-bit ----> Local Table Pixel''' <u>'''code code code --> string Palette color Action'''</u> 100h 000h | #0 Initialize root table of 9-bit codes : | palette : | colors 0FFh | #255 100h | clr 101h | end 028h | #40 {{font color|WHITE|BLACK|BLACK}} Decode 1st pixel 0FFh 028h | Incoming code found in table | #255 {{font color|BLACK|WHITE|WHITE}} - output string from table 102h | 28 FF - add to table 103h 0FFh | Incoming code not found in table 103h | FF FF - add to table | - output string from table | #255 {{font color|BLACK|WHITE|WHITE}} | #255 {{font color|BLACK|WHITE|WHITE}} 102h 103h | Incoming code found in table | - output string from table | #40 {{font color|WHITE|BLACK|BLACK}} | #255 {{font color|BLACK|WHITE|WHITE}} 104h | FF FF 28 - add to table 103h 102h | Incoming code found in table | - output string from table | #255 {{font color|BLACK|WHITE|WHITE}} | #255 {{font color|BLACK|WHITE|WHITE}} 105h | 28 FF FF - add to table 106h 103h | Incoming code not found in table 106h | FF FF FF - add to table | - output string from table | #255 {{font color|BLACK|WHITE|WHITE}} | #255 {{font color|BLACK|WHITE|WHITE}} | #255 {{font color|BLACK|WHITE|WHITE}} 107h 106h | Incoming code not found in table 107h | FF FF FF FF - add to table | - output string from table | #255 {{font color|BLACK|WHITE|WHITE}} | #255 {{font color|BLACK|WHITE|WHITE}} | #255 {{font color|BLACK|WHITE|WHITE}} | #255 {{font color|BLACK|WHITE|WHITE}} 101h | End
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)