get/setfield methods moved into tif_tagmethods
This commit is contained in:
parent
dcd231ed16
commit
25e98033e1
@ -1,4 +1,4 @@
|
||||
/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_predict.c,v 1.2 1999-11-27 21:43:28 warmerda Exp $ */
|
||||
/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_predict.c,v 1.3 2002-02-24 15:03:32 warmerda Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988-1997 Sam Leffler
|
||||
@ -443,12 +443,15 @@ TIFFPredictorInit(TIFF* tif)
|
||||
* override parent get/set field methods.
|
||||
*/
|
||||
_TIFFMergeFieldInfo(tif, predictFieldInfo, N(predictFieldInfo));
|
||||
sp->vgetparent = tif->tif_vgetfield;
|
||||
tif->tif_vgetfield = PredictorVGetField;/* hook for predictor tag */
|
||||
sp->vsetparent = tif->tif_vsetfield;
|
||||
tif->tif_vsetfield = PredictorVSetField;/* hook for predictor tag */
|
||||
sp->printdir = tif->tif_printdir;
|
||||
tif->tif_printdir = PredictorPrintDir; /* hook for predictor tag */
|
||||
sp->vgetparent = tif->tif_tagmethods.vgetfield;
|
||||
tif->tif_tagmethods.vgetfield =
|
||||
PredictorVGetField;/* hook for predictor tag */
|
||||
sp->vsetparent = tif->tif_tagmethods.vsetfield;
|
||||
tif->tif_tagmethods.vsetfield =
|
||||
PredictorVSetField;/* hook for predictor tag */
|
||||
sp->printdir = tif->tif_tagmethods.printdir;
|
||||
tif->tif_tagmethods.printdir =
|
||||
PredictorPrintDir; /* hook for predictor tag */
|
||||
|
||||
sp->setupdecode = tif->tif_setupdecode;
|
||||
tif->tif_setupdecode = PredictorSetupDecode;
|
||||
|
Loading…
Reference in New Issue
Block a user