Lines Matching refs:code
40 int code;
51 code = *src++;
54 if(code == 0xFC) /* end-of-picture code */
56 if(code >= 0xF8) { /* very long run */
60 run = ((code & 0x7) << 16) + (c0 << 8) + c1 + 2;
61 } else if (code >= 0xF0) { /* long run */
64 run = ((code & 0xF) << 8) + c0 + 2;
65 } else if (code >= 0xE0) { /* short run */
66 run = (code & 0x1F) + 2;
67 } else if (code >= 0xC0) { /* very long copy */
71 copy = ((code & 0x3F) << 16) + (c0 << 8) + c1 + 1;
72 } else if (code >= 0x80) { /* long copy */
75 copy = ((code & 0x7F) << 8) + c0 + 1;
77 copy = code + 1;
123 int code;
136 code = *src++;
141 while((code & 0xF0) == 0xF0) {
149 me_idx = code & 0xF;
182 code = *src++;
187 if(code == 0xE0) /* end-of-picture code */
189 if(code > 0xE0) { /* run code: 0xE1..0xFF */
192 code &= 0x1F;
195 for(i = 0; i <= code; i++) {
203 } else if(code >= 0xC0) { /* copy code: 0xC0..0xDF */
204 code &= 0x1F;
206 for(i = 0; i <= code; i++) {
214 size -= code + 1;
215 } else if(code >= 0x80) { /* skip code: 0x80..0xBF */
218 code &= 0x3F;
221 if(!code)
223 else if(code == 1)
226 skip = code;
236 /* zero code treated as one-pixel skip */
237 if(code)
238 dst[filled++] = ctable[code & 0x7F];