Lines Matching refs:ph
47 unsigned short *ph = NULL;
52 if (!(ph = (unsigned short *) malloc(nElements * sizeof(unsigned short))) ||
57 *pph = ph;
64 *ph++ = _XcmsGetElement (format, pChar, pCount) * 0x101;
72 *ph++ = (unsigned short)_XcmsGetElement (format, pChar, pCount);
80 *ph++ = (unsigned short)_XcmsGetElement (format, pChar, pCount);
93 if (ph) {
94 free(ph);
111 unsigned short *ph = NULL;
118 if (!(ph = (unsigned short *) malloc(nElements * sizeof(unsigned short))) ||
123 *pph = ph;
129 *ph++ = count;
137 *ph++ = count;
145 *ph++ = count;
158 if (ph) {
159 free(ph);
176 exponentOfPowerFunc (unsigned int maxh, unsigned int maxf, int n, unsigned short *ph,
195 h = ph[i];
324 unsigned short *ph;
452 if (!QueryTableType0(maxcolor, format, &pChar, &nitems, &nelem, &ph, &pf)) {
457 *ph == 0 && *pf == 0 &&
458 *(ph+1) == maxcolor && *(pf+1) == maxcolor) {
462 *gamma = exponentOfPowerFunc(maxcolor, maxcolor, (int)nelem, ph, pf);
467 if (!QueryTableType1(maxcolor, format, &pChar, &nitems, &nelem, &ph, &pf)) {
471 *gamma = exponentOfPowerFunc((1<<visual->bits_per_rgb)-1, maxcolor, (int)nelem, ph, pf);
483 if (ph) {
484 free(ph);