Lines Matching refs:tif
37 PackBitsPreEncode(TIFF* tif, uint16 s)
41 if (!(tif->tif_data = (uint8*)_TIFFmalloc(sizeof(tmsize_t))))
46 if (isTiled(tif))
47 *(tmsize_t*)tif->tif_data = TIFFTileRowSize(tif);
49 *(tmsize_t*)tif->tif_data = TIFFScanlineSize(tif);
54 PackBitsPostEncode(TIFF* tif)
56 if (tif->tif_data)
57 _TIFFfree(tif->tif_data);
65 PackBitsEncode(TIFF* tif, uint8* buf, tmsize_t cc, uint16 s)
76 op = tif->tif_rawcp;
77 ep = tif->tif_rawdata + tif->tif_rawdatasize;
97 tif->tif_rawcc += (tmsize_t)(lastliteral - tif->tif_rawcp);
98 if (!TIFFFlushData1(tif))
100 op = tif->tif_rawcp;
103 lastliteral = tif->tif_rawcp;
105 tif->tif_rawcc += (tmsize_t)(op - tif->tif_rawcp);
106 if (!TIFFFlushData1(tif))
108 op = tif->tif_rawcp;
181 tif->tif_rawcc += (tmsize_t)(op - tif->tif_rawcp);
182 tif->tif_rawcp = op;
194 PackBitsEncodeChunk(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s)
196 tmsize_t rowsize = *(tmsize_t*)tif->tif_data;
204 if (PackBitsEncode(tif, bp, chunk, s) < 0)
213 PackBitsDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s)
222 bp = (char*) tif->tif_rawcp;
223 cc = tif->tif_rawcc;
238 TIFFWarningExt(tif->tif_clientdata, module,
250 TIFFWarningExt(tif->tif_clientdata, module,
257 TIFFWarningExt(tif->tif_clientdata, module,
266 tif->tif_rawcp = (uint8*) bp;
267 tif->tif_rawcc = cc;
269 TIFFErrorExt(tif->tif_clientdata, module,
271 (unsigned long) tif->tif_row);
278 TIFFInitPackBits(TIFF* tif, int scheme)
281 tif->tif_decoderow = PackBitsDecode;
282 tif->tif_decodestrip = PackBitsDecode;
283 tif->tif_decodetile = PackBitsDecode;
284 tif->tif_preencode = PackBitsPreEncode;
285 tif->tif_postencode = PackBitsPostEncode;
286 tif->tif_encoderow = PackBitsEncode;
287 tif->tif_encodestrip = PackBitsEncodeChunk;
288 tif->tif_encodetile = PackBitsEncodeChunk;