• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/src/tiff/

Lines Matching refs:code

33  * This code is derived from the compress program whose code is
46 * implements. Specifically, Aldus does code length transitions
47 * one code earlier than should be done (for real LZW).
57 #define LZW_COMPAT /* include backwards compatibility code */
61 * check for end-of-strip w/o seeing this code. This makes the
64 #define LZW_CHECKEOS /* include checks for strips w/o EOI code */
74 #define CODE_CLEAR 256 /* code to clear string table */
75 #define CODE_EOI 257 /* end-of-information code */
76 #define CODE_FIRST 258 /* first free code entry */
95 u_short nbits; /* # of bits/code */
96 u_short maxcode; /* maximum code for lzw_nbits */
135 code_t* dec_codep; /* current recognized code */
136 code_t* dec_oldcodep; /* previously recognized code */
162 "LZWDecode: Strip %d not terminated with EOI code", \
171 #define NextCode(tif, sp, bp, code, get) get(sp, bp, code)
179 int code;
186 TIFFError(module, "No space for LZW code table");
192 code = 255;
194 sp->dec_codetab[code].value = (u_char) code;
195 sp->dec_codetab[code].firstchar = (u_char) code;
196 sp->dec_codetab[code].length = 1;
197 sp->dec_codetab[code].next = NULL;
198 } while (code--);
278 #define GetNextCode(sp, bp, code) { \
285 code = (hcode_t)((nextdata >> (nextbits-nbits)) & nbitsmask); \
293 "LZWDecode: Bogus encoding, loop in the code table; scanline %d",
305 hcode_t code;
365 NextCode(tif, sp, bp, code, GetNextCode);
366 if (code == CODE_EOI)
368 if (code == CODE_CLEAR) {
373 NextCode(tif, sp, bp, code, GetNextCode);
374 if (code == CODE_EOI)
376 *op++ = (char)code, occ--;
377 oldcodep = sp->dec_codetab + code;
380 codep = sp->dec_codetab + code;
383 * Add the new entry to the code table.
412 if (code >= 256) {
462 *op++ = (char)code, occ--;
487 #define GetNextCodeCompat(sp, bp, code) { \
494 code = (hcode_t)(nextdata & nbitsmask); \
507 int code, nbits;
561 NextCode(tif, sp, bp, code, GetNextCodeCompat);
562 if (code == CODE_EOI)
564 if (code == CODE_CLEAR) {
569 NextCode(tif, sp, bp, code, GetNextCodeCompat);
570 if (code == CODE_EOI)
572 *op++ = (char) code, occ--;
573 oldcodep = sp->dec_codetab + code;
576 codep = sp->dec_codetab + code;
579 * Add the new entry to the code table.
608 if (code >= 256) {
645 *op++ = (char) code, occ--;
729 * This code is derived from software contributed to Berkeley by