X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FGIF.java;h=48c6f110dc0d521a7fd5ae88766ae30d4b05104b;hb=69ecee0bc41e6bd410572817e7c59d51f1b5b629;hp=75ae93acdd38dffe1a5c677bc625c184f0690b7b;hpb=6242c991f365dbd67eba62ecfa5df769a83fcbc6;p=org.ibex.core.git diff --git a/src/org/xwt/GIF.java b/src/org/xwt/GIF.java index 75ae93a..48c6f11 100644 --- a/src/org/xwt/GIF.java +++ b/src/org/xwt/GIF.java @@ -152,10 +152,10 @@ public class GIF implements ImageDecoder { /* Initialize the decoder */ /* Set values for "special" numbers: - * clear code reset the decoder - * end code stop decoding - * code size size of the next code to retrieve - * max code next available table position + * clear code reset the decoder + * end code stop decoding + * code size size of the next code to retrieve + * max code next available table position */ clearCode = 1 << initialCodeSize; endCode = clearCode + 1; @@ -364,15 +364,15 @@ public class GIF implements ImageDecoder { int label = _buf[0]; int count = -1; switch (label) { - case 0x01: // Plain Text Extension - case 0xff: // Application Extension - case 0xfe: // Comment Extension + case 0x01: // Plain Text Extension + case 0xff: // Application Extension + case 0xfe: // Comment Extension break; - case 0xf9: // Graphic Control Extension - count = getDataBlock(); - if (count < 0) return true; + case 0xf9: // Graphic Control Extension + count = getDataBlock(); + if (count < 0) return true; // Check for transparency setting. - if ((_buf[0] & HASTRANSPARENCY) != 0) trans_idx = _buf[3]; + if ((_buf[0] & HASTRANSPARENCY) != 0) trans_idx = _buf[3]; else trans_idx = -1; } do { count = getDataBlock(); } while (count > 0); @@ -429,14 +429,14 @@ public class GIF implements ImageDecoder { private int bitsInWindow = 0; // Class-wide constants. - private static final int INTERLACE = 0x40; - private static final int GLOBALCOLORMAP = 0x80; - private static final int LOCALCOLORMAP = 0x80; - private static final int HASTRANSPARENCY = 0x01; - private static final int MAX_LWZ_BITS = 12; - private static final int BUFSIZE = 280; - private static final int[] _interlaceStep = { 8, 8, 4, 2 }; - private static final int[] _interlaceStart = { 0, 4, 2, 1 }; + private static final int INTERLACE = 0x40; + private static final int GLOBALCOLORMAP = 0x80; + private static final int LOCALCOLORMAP = 0x80; + private static final int HASTRANSPARENCY = 0x01; + private static final int MAX_LWZ_BITS = 12; + private static final int BUFSIZE = 280; + private static final int[] _interlaceStep = { 8, 8, 4, 2 }; + private static final int[] _interlaceStart = { 0, 4, 2, 1 }; }