Lines Matching refs:tif

37 #define	PredictorState(tif)	((TIFFPredictorState*) (tif)->tif_data)
50 PredictorSetup(TIFF* tif)
52 TIFFPredictorState* sp = PredictorState(tif);
53 TIFFDirectory* td = &tif->tif_dir;
58 TIFFError(tif->tif_name, "\"Predictor\" value %d not supported",
63 TIFFError(tif->tif_name,
73 if (isTiled(tif))
74 sp->rowsize = TIFFTileRowSize(tif);
76 sp->rowsize = TIFFScanlineSize(tif);
81 PredictorSetupDecode(TIFF* tif)
83 TIFFPredictorState* sp = PredictorState(tif);
84 TIFFDirectory* td = &tif->tif_dir;
86 if (!(*sp->setupdecode)(tif) || !PredictorSetup(tif))
97 sp->coderow = tif->tif_decoderow;
98 tif->tif_decoderow = PredictorDecodeRow;
99 sp->codestrip = tif->tif_decodestrip;
100 tif->tif_decodestrip = PredictorDecodeTile;
101 sp->codetile = tif->tif_decodetile;
102 tif->tif_decodetile = PredictorDecodeTile;
112 if (tif->tif_flags&TIFF_SWAB) {
115 tif->tif_postdecode = _TIFFNoPostDecode;
123 PredictorSetupEncode(TIFF* tif)
125 TIFFPredictorState* sp = PredictorState(tif);
126 TIFFDirectory* td = &tif->tif_dir;
128 if (!(*sp->setupencode)(tif) || !PredictorSetup(tif))
139 sp->coderow = tif->tif_encoderow;
140 tif->tif_encoderow = PredictorEncodeRow;
141 sp->codestrip = tif->tif_encodestrip;
142 tif->tif_encodestrip = PredictorEncodeTile;
143 sp->codetile = tif->tif_encodetile;
144 tif->tif_encodetile = PredictorEncodeTile;
160 horAcc8(TIFF* tif, tidata_t cp0, tsize_t cc)
162 TIFFPredictorState* sp = PredictorState(tif);
203 swabHorAcc16(TIFF* tif, tidata_t cp0, tsize_t cc)
205 TIFFPredictorState* sp = PredictorState(tif);
221 horAcc16(TIFF* tif, tidata_t cp0, tsize_t cc)
223 tsize_t stride = PredictorState(tif)->stride;
240 PredictorDecodeRow(TIFF* tif, tidata_t op0, tsize_t occ0, tsample_t s)
242 TIFFPredictorState *sp = PredictorState(tif);
247 if ((*sp->coderow)(tif, op0, occ0, s)) {
248 (*sp->pfunc)(tif, op0, occ0);
262 PredictorDecodeTile(TIFF* tif, tidata_t op0, tsize_t occ0, tsample_t s)
264 TIFFPredictorState *sp = PredictorState(tif);
268 if ((*sp->codetile)(tif, op0, occ0, s)) {
273 (*sp->pfunc)(tif, op0, (tsize_t) rowsize);
283 horDiff8(TIFF* tif, tidata_t cp0, tsize_t cc)
285 TIFFPredictorState* sp = PredictorState(tif);
328 horDiff16(TIFF* tif, tidata_t cp0, tsize_t cc)
330 TIFFPredictorState* sp = PredictorState(tif);
346 PredictorEncodeRow(TIFF* tif, tidata_t bp, tsize_t cc, tsample_t s)
348 TIFFPredictorState *sp = PredictorState(tif);
354 (*sp->pfunc)(tif, bp, cc);
355 return ((*sp->coderow)(tif, bp, cc, s));
359 PredictorEncodeTile(TIFF* tif, tidata_t bp0, tsize_t cc0, tsample_t s)
361 TIFFPredictorState *sp = PredictorState(tif);
371 (*sp->pfunc)(tif, bp, (tsize_t) rowsize);
375 return ((*sp->codetile)(tif, bp0, cc0, s));
387 PredictorVSetField(TIFF* tif, ttag_t tag, va_list ap)
389 TIFFPredictorState *sp = PredictorState(tif);
394 TIFFSetFieldBit(tif, FIELD_PREDICTOR);
397 return (*sp->vsetparent)(tif, tag, ap);
399 tif->tif_flags |= TIFF_DIRTYDIRECT;
404 PredictorVGetField(TIFF* tif, ttag_t tag, va_list ap)
406 TIFFPredictorState *sp = PredictorState(tif);
413 return (*sp->vgetparent)(tif, tag, ap);
420 PredictorPrintDir(TIFF* tif, FILE* fd, long flags)
422 TIFFPredictorState* sp = PredictorState(tif);
425 if (TIFFFieldSet(tif,FIELD_PREDICTOR)) {
434 (*sp->printdir)(tif, fd, flags);
439 TIFFPredictorInit(TIFF* tif)
441 TIFFPredictorState* sp = PredictorState(tif);
447 _TIFFMergeFieldInfo(tif, predictFieldInfo, N(predictFieldInfo));
448 sp->vgetparent = tif->tif_vgetfield;
449 tif->tif_vgetfield = PredictorVGetField;/* hook for predictor tag */
450 sp->vsetparent = tif->tif_vsetfield;
451 tif->tif_vsetfield = PredictorVSetField;/* hook for predictor tag */
452 sp->printdir = tif->tif_printdir;
454 tif->tif_printdir = PredictorPrintDir; /* hook for predictor tag */
457 sp->setupdecode = tif->tif_setupdecode;
458 tif->tif_setupdecode = PredictorSetupDecode;
459 sp->setupencode = tif->tif_setupencode;
460 tif->tif_setupencode = PredictorSetupEncode;