+ case TIFFTAG_WHITEPOINT:
+ if (!td->td_whitepoint) {
+ td->td_whitepoint = (float *)
+ _TIFFmalloc(2 * sizeof (float));
+ if (!td->td_whitepoint)
+ return (0);
+ /* TIFF 6.0 specification says that it is no default
+ value for the WhitePoint, but AdobePhotoshop TIFF
+ Technical Note tells that it should be CIE D50. */
+ td->td_whitepoint[0] =
+ D50_X0 / (D50_X0 + D50_Y0 + D50_Z0);
+ td->td_whitepoint[1] =
+ D50_Y0 / (D50_X0 + D50_Y0 + D50_Z0);
+ }
+ *va_arg(ap, float **) = td->td_whitepoint;
+ return (1);