Lines Matching refs:tf
94 uint16 **tf = td->td_transferfunction;
97 tf[0] = tf[1] = tf[2] = 0;
103 if (!(tf[0] = (uint16 *)_TIFFmalloc(nbytes)))
105 tf[0][0] = 0;
108 tf[0][i] = (uint16)floor(65535.*pow(t, 2.2) + .5);
112 if (!(tf[1] = (uint16 *)_TIFFmalloc(nbytes)))
114 _TIFFmemcpy(tf[1], tf[0], nbytes);
115 if (!(tf[2] = (uint16 *)_TIFFmalloc(nbytes)))
117 _TIFFmemcpy(tf[2], tf[0], nbytes);
122 if (tf[0])
123 _TIFFfree(tf[0]);
124 if (tf[1])
125 _TIFFfree(tf[1]);
126 if (tf[2])
127 _TIFFfree(tf[2]);
128 tf[0] = tf[1] = tf[2] = 0;