n 1216 include/lcms2.h CMSAPI cmsBool CMSEXPORT cmsPipelineCheckAndRetreiveStages(const cmsPipeline* Lut, cmsUInt32Number n, ...); n 1343 include/lcms2.h cmsUInt32Number n, n 1385 include/lcms2.h cmsUInt32Number n; n 1391 include/lcms2.h CMSAPI cmsSEQ* CMSEXPORT cmsAllocProfileSequenceDescription(cmsContext ContextID, cmsUInt32Number n); n 1421 include/lcms2.h CMSAPI cmsTagSignature CMSEXPORT cmsGetTagSignature(cmsHPROFILE hProfile, cmsUInt32Number n); n 1655 include/lcms2.h #define cmsFLAGS_GRIDPOINTS(n) (((n) & 0xFF) << 16) n 1845 include/lcms2.h CMSAPI cmsBool CMSEXPORT cmsIT8SetDataFormat(cmsHANDLE hIT8, int n, const char *Sample); n 72 include/lcms2_plugin.h cmsFloat64Number n[3]; n 137 include/lcms2_plugin.h CMSAPI cmsBool CMSEXPORT _cmsReadUInt8Number(cmsIOHANDLER* io, cmsUInt8Number* n); n 138 include/lcms2_plugin.h CMSAPI cmsBool CMSEXPORT _cmsReadUInt16Number(cmsIOHANDLER* io, cmsUInt16Number* n); n 139 include/lcms2_plugin.h CMSAPI cmsBool CMSEXPORT _cmsReadUInt32Number(cmsIOHANDLER* io, cmsUInt32Number* n); n 140 include/lcms2_plugin.h CMSAPI cmsBool CMSEXPORT _cmsReadFloat32Number(cmsIOHANDLER* io, cmsFloat32Number* n); n 141 include/lcms2_plugin.h CMSAPI cmsBool CMSEXPORT _cmsReadUInt64Number(cmsIOHANDLER* io, cmsUInt64Number* n); n 142 include/lcms2_plugin.h CMSAPI cmsBool CMSEXPORT _cmsRead15Fixed16Number(cmsIOHANDLER* io, cmsFloat64Number* n); n 144 include/lcms2_plugin.h CMSAPI cmsBool CMSEXPORT _cmsReadUInt16Array(cmsIOHANDLER* io, cmsUInt32Number n, cmsUInt16Number* Array); n 146 include/lcms2_plugin.h CMSAPI cmsBool CMSEXPORT _cmsWriteUInt8Number(cmsIOHANDLER* io, cmsUInt8Number n); n 147 include/lcms2_plugin.h CMSAPI cmsBool CMSEXPORT _cmsWriteUInt16Number(cmsIOHANDLER* io, cmsUInt16Number n); n 148 include/lcms2_plugin.h CMSAPI cmsBool CMSEXPORT _cmsWriteUInt32Number(cmsIOHANDLER* io, cmsUInt32Number n); n 149 include/lcms2_plugin.h CMSAPI cmsBool CMSEXPORT _cmsWriteFloat32Number(cmsIOHANDLER* io, cmsFloat32Number n); n 150 include/lcms2_plugin.h CMSAPI cmsBool CMSEXPORT _cmsWriteUInt64Number(cmsIOHANDLER* io, cmsUInt64Number* n); n 151 include/lcms2_plugin.h CMSAPI cmsBool CMSEXPORT _cmsWrite15Fixed16Number(cmsIOHANDLER* io, cmsFloat64Number n); n 153 include/lcms2_plugin.h CMSAPI cmsBool CMSEXPORT _cmsWriteUInt16Array(cmsIOHANDLER* io, cmsUInt32Number n, const cmsUInt16Number* Array); n 399 include/lcms2_plugin.h cmsUInt32Number n); n 53 src/cmscam02.c cmsFloat64Number n, Nbb, Ncb, z, FL, D; n 69 src/cmscam02.c return (1.48 + pow(pMod -> n, 0.5)); n 75 src/cmscam02.c return (0.725 * pow((1.0 / pMod -> n), 0.2)); n 234 src/cmscam02.c pow((1.64 - pow(0.29, pMod->n)), 0.73); n 251 src/cmscam02.c (pow((1.64 - pow(0.29, pMod->n)), 0.73)))), n 408 src/cmscam02.c lpMod -> n = compute_n(lpMod); n 530 src/cmscgats.c cmsFloat64Number xpow10(int n) n 532 src/cmscgats.c return pow(10, (cmsFloat64Number) n); n 1027 src/cmscgats.c OWNEDMEM* n; n 1029 src/cmscgats.c for (p = it8->MemorySink; p != NULL; p = n) { n 1031 src/cmscgats.c n = p->Next; n 1456 src/cmscgats.c const char *GetDataFormat(cmsIT8* it8, int n) n 1461 src/cmscgats.c return t->DataFormat[n]; n 1467 src/cmscgats.c cmsBool SetDataFormat(cmsIT8* it8, int n, const char *label) n 1474 src/cmscgats.c if (n > t -> nSamples) { n 1480 src/cmscgats.c t->DataFormat[n] = AllocString(it8, label); n 1487 src/cmscgats.c cmsBool CMSEXPORT cmsIT8SetDataFormat(cmsHANDLE h, int n, const char *Sample) n 1490 src/cmscgats.c return SetDataFormat(it8, n, Sample); n 2227 src/cmscgats.c int IsMyBlock(cmsUInt8Number* Buffer, int n) n 2232 src/cmscgats.c if (n < 10) return 0; // Too small n 2234 src/cmscgats.c if (n > 132) n 2235 src/cmscgats.c n = 132; n 2237 src/cmscgats.c for (i = 1; i < n; i++) { n 2399 src/cmscgats.c cmsUInt32Number n; n 2409 src/cmscgats.c n = 0; n 2411 src/cmscgats.c n++; n 2415 src/cmscgats.c Props = (char **) AllocChunk(it8, sizeof(char *) * n); n 2418 src/cmscgats.c n = 0; n 2420 src/cmscgats.c Props[n++] = p -> Keyword; n 2424 src/cmscgats.c return n; n 2431 src/cmscgats.c cmsUInt32Number n; n 2447 src/cmscgats.c n = 0; n 2450 src/cmscgats.c n++; n 2454 src/cmscgats.c Props = (const char **) AllocChunk(it8, sizeof(char *) * n); n 2457 src/cmscgats.c n = 0; n 2460 src/cmscgats.c Props[n++] = p ->Subkey; n 2464 src/cmscgats.c return n; n 230 src/cmscnvrt.c s.n[VX] = cmsD50_XYZ() -> X; n 231 src/cmscnvrt.c s.n[VY] = cmsD50_XYZ() -> Y; n 232 src/cmscnvrt.c s.n[VZ] = cmsD50_XYZ() -> Z; n 236 src/cmscnvrt.c Dest.X = d.n[VX]; n 237 src/cmscnvrt.c Dest.Y = d.n[VY]; n 238 src/cmscnvrt.c Dest.Z = d.n[VZ]; n 423 src/cmscnvrt.c off ->n[k] /= MAX_ENCODEABLE_XYZ; n 54 src/cmserr.c long int p , n; n 62 src/cmserr.c n = ftell(f); n 65 src/cmserr.c return n; n 365 src/cmserr.c _cmsSubAllocator_chunk *chunk, *n; n 367 src/cmserr.c for (chunk = sub ->h; chunk != NULL; chunk = n) { n 369 src/cmserr.c n = chunk->next; n 1124 src/cmsgamma.c int n; n 1131 src/cmsgamma.c n = t ->nEntries; n 1132 src/cmsgamma.c if (n < 2) return TRUE; n 1141 src/cmsgamma.c for (i = 1; i < n; i++) { n 1152 src/cmsgamma.c last = t ->Table16[n-1]; n 1154 src/cmsgamma.c for (i = n-2; i >= 0; --i) { n 1243 src/cmsgamma.c cmsFloat64Number n, x, y, Std; n 1248 src/cmsgamma.c sum = sum2 = n = 0; n 1264 src/cmsgamma.c n++; n 1269 src/cmsgamma.c Std = sqrt((n * sum2 - sum * sum) / (n*(n-1))); n 1274 src/cmsgamma.c return (sum / n); // The mean n 513 src/cmshalf.c int n = h >> 10; n 515 src/cmshalf.c out.num = Mantissa[ (h & 0x3ff) + Offset[ n ] ] + Exponent[ n ]; n 526 src/cmshalf.c cmsUInt32Number n, j; n 529 src/cmshalf.c n = in.num; n 530 src/cmshalf.c j = (n >> 23) & 0x1ff; n 532 src/cmshalf.c return (cmsUInt16Number) ((cmsUInt32Number) Base[ j ] + (( n & 0x007fffff) >> Shift[ j ])); n 508 src/cmsio0.c cmsTagSignature CMSEXPORT cmsGetTagSignature(cmsHPROFILE hProfile, cmsUInt32Number n) n 512 src/cmsio0.c if (n > Icc->TagCount) return (cmsTagSignature) 0; // Mark as not available n 513 src/cmsio0.c if (n >= MAX_TABLE_TAG) return (cmsTagSignature) 0; // As double check n 515 src/cmsio0.c return Icc ->TagNames[n]; n 537 src/cmsio0.c int n; n 543 src/cmsio0.c n = SearchOneTag(Icc, sig); n 544 src/cmsio0.c if (n < 0) n 548 src/cmsio0.c return n; // Found, don't follow links n 551 src/cmsio0.c LinkedSig = Icc ->TagLinked[n]; n 560 src/cmsio0.c return n; n 1000 src/cmsio0.c cmsUInt32Number n = Icc -> Version >> 16; n 1002 src/cmsio0.c return BaseToBase(n, 16, 10) / 100.0; n 1479 src/cmsio0.c int n; n 1483 src/cmsio0.c n = _cmsSearchTag(Icc, sig, TRUE); n 1484 src/cmsio0.c if (n < 0) goto Error; // Not found, return NULL n 1488 src/cmsio0.c if (Icc -> TagPtrs[n]) { n 1490 src/cmsio0.c if (Icc ->TagSaveAsRaw[n]) goto Error; // We don't support read raw tags as cooked n 1493 src/cmsio0.c return Icc -> TagPtrs[n]; n 1497 src/cmsio0.c Offset = Icc -> TagOffsets[n]; n 1498 src/cmsio0.c TagSize = Icc -> TagSizes[n]; n 1532 src/cmsio0.c Icc -> TagTypeHandlers[n] = TypeHandler; n 1536 src/cmsio0.c Icc -> TagPtrs[n] = LocalTypeHandler.ReadPtr(&LocalTypeHandler, io, &ElemCount, TagSize); n 1540 src/cmsio0.c if (Icc -> TagPtrs[n] == NULL) { n 1563 src/cmsio0.c return Icc -> TagPtrs[n]; n 1578 src/cmsio0.c int n; n 1581 src/cmsio0.c n = _cmsSearchTag(Icc, sig, TRUE); n 1582 src/cmsio0.c if (n < 0) return (cmsTagTypeSignature) 0; // Not found, return NULL n 1585 src/cmsio0.c TypeHandler = Icc -> TagTypeHandlers[n]; n 227 src/cmsio1.c Mat.v[i].n[j] *= InpAdj; n 476 src/cmsio1.c Inv.v[i].n[j] *= OutpAdj; n 895 src/cmsio1.c if (ProfileSeq ->n != ProfileId ->n) return cmsDupProfileSequenceDescription(ProfileSeq); n 901 src/cmsio1.c for (i=0; i < ProfileSeq ->n; i++) { n 83 src/cmslut.c void FromFloatTo16(const cmsFloat32Number In[], cmsUInt16Number Out[], cmsUInt32Number n) n 87 src/cmslut.c for (i=0; i < n; i++) { n 94 src/cmslut.c void From16ToFloat(const cmsUInt16Number In[], cmsFloat32Number Out[], cmsUInt32Number n) n 98 src/cmslut.c for (i=0; i < n; i++) { n 110 src/cmslut.c cmsBool CMSEXPORT cmsPipelineCheckAndRetreiveStages(const cmsPipeline* Lut, cmsUInt32Number n, ...) n 119 src/cmslut.c if (cmsPipelineStageCount(Lut) != n) return FALSE; n 121 src/cmslut.c va_start(args, n); n 125 src/cmslut.c for (i=0; i < n; i++) { n 139 src/cmslut.c for (i=0; i < n; i++) { n 382 src/cmslut.c cmsUInt32Number i, n; n 386 src/cmslut.c n = Rows * Cols; n 389 src/cmslut.c if (n == 0) return NULL; n 390 src/cmslut.c if (n >= UINT_MAX / Cols) return NULL; n 391 src/cmslut.c if (n >= UINT_MAX / Rows) return NULL; n 392 src/cmslut.c if (n < Rows || n < Cols) return NULL; n 403 src/cmslut.c NewElem ->Double = (cmsFloat64Number*) _cmsCalloc(ContextID, n, sizeof(cmsFloat64Number)); n 410 src/cmslut.c for (i=0; i < n; i++) { n 556 src/cmslut.c cmsUInt32Number i, n; n 580 src/cmslut.c NewElem -> nEntries = n = outputChan * CubeSize(clutPoints, inputChan); n 583 src/cmslut.c if (n == 0) { n 589 src/cmslut.c NewElem ->Tab.T = (cmsUInt16Number*) _cmsCalloc(ContextID, n, sizeof(cmsUInt16Number)); n 596 src/cmslut.c for (i=0; i < n; i++) { n 647 src/cmslut.c cmsUInt32Number i, n; n 672 src/cmslut.c NewElem -> nEntries = n = outputChan * CubeSize(clutPoints, inputChan); n 675 src/cmslut.c if (n == 0) { n 680 src/cmslut.c NewElem ->Tab.TFloat = (cmsFloat32Number*) _cmsCalloc(ContextID, n, sizeof(cmsFloat32Number)); n 687 src/cmslut.c for (i=0; i < n; i++) { n 1078 src/cmslut.c n, 0, 0, n 1079 src/cmslut.c 0, n, 0, n 1080 src/cmslut.c 0, 0, n n 1116 src/cmslut.c n, 0, 0, n 1117 src/cmslut.c 0, n, 0, n 1118 src/cmslut.c 0, 0, n n 1135 src/cmslut.c cmsFloat32Number n = In[i]; n 1136 src/cmslut.c Out[i] = n < 0 ? 0 : n; n 1624 src/cmslut.c cmsUInt32Number n; n 1626 src/cmslut.c for (n=0, mpe = lut ->Elements; mpe != NULL; mpe = mpe ->Next) n 1627 src/cmslut.c n++; n 1629 src/cmslut.c return n; n 1690 src/cmslut.c cmsFloat32Number EuclideanDistance(cmsFloat32Number a[], cmsFloat32Number b[], int n) n 1695 src/cmslut.c for (i=0; i < n; i++) { n 1782 src/cmslut.c Jacobian.v[0].n[j] = ((fxd[0] - fx[0]) / JACOBIAN_EPSILON); n 1783 src/cmslut.c Jacobian.v[1].n[j] = ((fxd[1] - fx[1]) / JACOBIAN_EPSILON); n 1784 src/cmslut.c Jacobian.v[2].n[j] = ((fxd[2] - fx[2]) / JACOBIAN_EPSILON); n 1788 src/cmslut.c tmp2.n[0] = fx[0] - Target[0]; n 1789 src/cmslut.c tmp2.n[1] = fx[1] - Target[1]; n 1790 src/cmslut.c tmp2.n[2] = fx[2] - Target[2]; n 1796 src/cmslut.c x[0] -= (cmsFloat32Number) tmp.n[0]; n 1797 src/cmslut.c x[1] -= (cmsFloat32Number) tmp.n[1]; n 1798 src/cmslut.c x[2] -= (cmsFloat32Number) tmp.n[2]; n 36 src/cmsmtrx.c r -> n[VX] = x; n 37 src/cmsmtrx.c r -> n[VY] = y; n 38 src/cmsmtrx.c r -> n[VZ] = z; n 44 src/cmsmtrx.c r -> n[VX] = a -> n[VX] - b -> n[VX]; n 45 src/cmsmtrx.c r -> n[VY] = a -> n[VY] - b -> n[VY]; n 46 src/cmsmtrx.c r -> n[VZ] = a -> n[VZ] - b -> n[VZ]; n 52 src/cmsmtrx.c r ->n[VX] = u->n[VY] * v->n[VZ] - v->n[VY] * u->n[VZ]; n 53 src/cmsmtrx.c r ->n[VY] = u->n[VZ] * v->n[VX] - v->n[VZ] * u->n[VX]; n 54 src/cmsmtrx.c r ->n[VZ] = u->n[VX] * v->n[VY] - v->n[VX] * u->n[VY]; n 60 src/cmsmtrx.c return u->n[VX] * v->n[VX] + u->n[VY] * v->n[VY] + u->n[VZ] * v->n[VZ]; n 66 src/cmsmtrx.c return sqrt(a ->n[VX] * a ->n[VX] + n 67 src/cmsmtrx.c a ->n[VY] * a ->n[VY] + n 68 src/cmsmtrx.c a ->n[VZ] * a ->n[VZ]); n 74 src/cmsmtrx.c cmsFloat64Number d1 = a ->n[VX] - b ->n[VX]; n 75 src/cmsmtrx.c cmsFloat64Number d2 = a ->n[VY] - b ->n[VY]; n 76 src/cmsmtrx.c cmsFloat64Number d3 = a ->n[VZ] - b ->n[VZ]; n 107 src/cmsmtrx.c if (!CloseEnough(a ->v[i].n[j], Identity.v[i].n[j])) return FALSE; n 117 src/cmsmtrx.c a->v[i].n[0]*b->v[0].n[j] + a->v[i].n[1]*b->v[1].n[j] + a->v[i].n[2]*b->v[2].n[j] n 133 src/cmsmtrx.c c0 = a -> v[1].n[1]*a -> v[2].n[2] - a -> v[1].n[2]*a -> v[2].n[1]; n 134 src/cmsmtrx.c c1 = -a -> v[1].n[0]*a -> v[2].n[2] + a -> v[1].n[2]*a -> v[2].n[0]; n 135 src/cmsmtrx.c c2 = a -> v[1].n[0]*a -> v[2].n[1] - a -> v[1].n[1]*a -> v[2].n[0]; n 137 src/cmsmtrx.c det = a -> v[0].n[0]*c0 + a -> v[0].n[1]*c1 + a -> v[0].n[2]*c2; n 141 src/cmsmtrx.c b -> v[0].n[0] = c0/det; n 142 src/cmsmtrx.c b -> v[0].n[1] = (a -> v[0].n[2]*a -> v[2].n[1] - a -> v[0].n[1]*a -> v[2].n[2])/det; n 143 src/cmsmtrx.c b -> v[0].n[2] = (a -> v[0].n[1]*a -> v[1].n[2] - a -> v[0].n[2]*a -> v[1].n[1])/det; n 144 src/cmsmtrx.c b -> v[1].n[0] = c1/det; n 145 src/cmsmtrx.c b -> v[1].n[1] = (a -> v[0].n[0]*a -> v[2].n[2] - a -> v[0].n[2]*a -> v[2].n[0])/det; n 146 src/cmsmtrx.c b -> v[1].n[2] = (a -> v[0].n[2]*a -> v[1].n[0] - a -> v[0].n[0]*a -> v[1].n[2])/det; n 147 src/cmsmtrx.c b -> v[2].n[0] = c2/det; n 148 src/cmsmtrx.c b -> v[2].n[1] = (a -> v[0].n[1]*a -> v[2].n[0] - a -> v[0].n[0]*a -> v[2].n[1])/det; n 149 src/cmsmtrx.c b -> v[2].n[2] = (a -> v[0].n[0]*a -> v[1].n[1] - a -> v[0].n[1]*a -> v[1].n[0])/det; n 171 src/cmsmtrx.c r->n[VX] = a->v[0].n[VX]*v->n[VX] + a->v[0].n[VY]*v->n[VY] + a->v[0].n[VZ]*v->n[VZ]; n 172 src/cmsmtrx.c r->n[VY] = a->v[1].n[VX]*v->n[VX] + a->v[1].n[VY]*v->n[VY] + a->v[1].n[VZ]*v->n[VZ]; n 173 src/cmsmtrx.c r->n[VZ] = a->v[2].n[VX]*v->n[VX] + a->v[2].n[VY]*v->n[VY] + a->v[2].n[VZ]*v->n[VZ]; n 507 src/cmsnamed.c cmsNAMEDCOLORLIST* CMSEXPORT cmsAllocNamedColorList(cmsContext ContextID, cmsUInt32Number n, cmsUInt32Number ColorantCount, const char* Prefix, const char* Suffix) n 517 src/cmsnamed.c while (v -> Allocated < n){ n 630 src/cmsnamed.c int i, n; n 633 src/cmsnamed.c n = cmsNamedColorCount(NamedColorList); n 634 src/cmsnamed.c for (i=0; i < n; i++) { n 720 src/cmsnamed.c cmsSEQ* CMSEXPORT cmsAllocProfileSequenceDescription(cmsContext ContextID, cmsUInt32Number n) n 725 src/cmsnamed.c if (n == 0) return NULL; n 729 src/cmsnamed.c if (n > 255) return NULL; n 735 src/cmsnamed.c Seq -> seq = (cmsPSEQDESC*) _cmsCalloc(ContextID, n, sizeof(cmsPSEQDESC)); n 736 src/cmsnamed.c Seq -> n = n; n 743 src/cmsnamed.c for (i=0; i < n; i++) { n 756 src/cmsnamed.c for (i=0; i < pseq ->n; i++) { n 778 src/cmsnamed.c NewSeq -> seq = (cmsPSEQDESC*) _cmsCalloc(pseq ->ContextID, pseq ->n, sizeof(cmsPSEQDESC)); n 782 src/cmsnamed.c NewSeq -> n = pseq ->n; n 784 src/cmsnamed.c for (i=0; i < pseq->n; i++) { n 183 src/cmsopt.c if (!CloseEnoughFloat(a->v[i].n[j], Identity.v[i].n[j])) return FALSE; n 438 src/cmsopt.c cmsUInt32Number i, n; n 443 src/cmsopt.c n = cmsStageOutputChannels(mpe); n 445 src/cmsopt.c for (i=0; i < n; i++) { n 534 src/cmsopt.c cmsBool WhitesAreEqual(int n, cmsUInt16Number White1[], cmsUInt16Number White2[] ) n 538 src/cmsopt.c for (i=0; i < n; i++) { n 1595 src/cmsopt.c p ->Mat[i][j] = DOUBLE_TO_1FIXED14(Mat->v[i].n[j]); n 1605 src/cmsopt.c p ->Off[i] = DOUBLE_TO_1FIXED14(Off->n[i]); n 111 src/cmsplugin.c cmsBool CMSEXPORT _cmsReadUInt8Number(cmsIOHANDLER* io, cmsUInt8Number* n) n 120 src/cmsplugin.c if (n != NULL) *n = tmp; n 124 src/cmsplugin.c cmsBool CMSEXPORT _cmsReadUInt16Number(cmsIOHANDLER* io, cmsUInt16Number* n) n 133 src/cmsplugin.c if (n != NULL) *n = _cmsAdjustEndianess16(tmp); n 137 src/cmsplugin.c cmsBool CMSEXPORT _cmsReadUInt16Array(cmsIOHANDLER* io, cmsUInt32Number n, cmsUInt16Number* Array) n 143 src/cmsplugin.c for (i=0; i < n; i++) { n 156 src/cmsplugin.c cmsBool CMSEXPORT _cmsReadUInt32Number(cmsIOHANDLER* io, cmsUInt32Number* n) n 165 src/cmsplugin.c if (n != NULL) *n = _cmsAdjustEndianess32(tmp); n 169 src/cmsplugin.c cmsBool CMSEXPORT _cmsReadFloat32Number(cmsIOHANDLER* io, cmsFloat32Number* n) n 178 src/cmsplugin.c if (n != NULL) { n 181 src/cmsplugin.c *n = *(cmsFloat32Number*) &tmp; n 187 src/cmsplugin.c cmsBool CMSEXPORT _cmsReadUInt64Number(cmsIOHANDLER* io, cmsUInt64Number* n) n 196 src/cmsplugin.c if (n != NULL) _cmsAdjustEndianess64(n, &tmp); n 201 src/cmsplugin.c cmsBool CMSEXPORT _cmsRead15Fixed16Number(cmsIOHANDLER* io, cmsFloat64Number* n) n 210 src/cmsplugin.c if (n != NULL) { n 211 src/cmsplugin.c *n = _cms15Fixed16toDouble(_cmsAdjustEndianess32(tmp)); n 253 src/cmsplugin.c cmsBool CMSEXPORT _cmsWriteUInt8Number(cmsIOHANDLER* io, cmsUInt8Number n) n 257 src/cmsplugin.c if (io -> Write(io, sizeof(cmsUInt8Number), &n) != 1) n 263 src/cmsplugin.c cmsBool CMSEXPORT _cmsWriteUInt16Number(cmsIOHANDLER* io, cmsUInt16Number n) n 269 src/cmsplugin.c tmp = _cmsAdjustEndianess16(n); n 276 src/cmsplugin.c cmsBool CMSEXPORT _cmsWriteUInt16Array(cmsIOHANDLER* io, cmsUInt32Number n, const cmsUInt16Number* Array) n 283 src/cmsplugin.c for (i=0; i < n; i++) { n 290 src/cmsplugin.c cmsBool CMSEXPORT _cmsWriteUInt32Number(cmsIOHANDLER* io, cmsUInt32Number n) n 296 src/cmsplugin.c tmp = _cmsAdjustEndianess32(n); n 304 src/cmsplugin.c cmsBool CMSEXPORT _cmsWriteFloat32Number(cmsIOHANDLER* io, cmsFloat32Number n) n 310 src/cmsplugin.c tmp = *(cmsUInt32Number*) &n; n 318 src/cmsplugin.c cmsBool CMSEXPORT _cmsWriteUInt64Number(cmsIOHANDLER* io, cmsUInt64Number* n) n 324 src/cmsplugin.c _cmsAdjustEndianess64(&tmp, n); n 331 src/cmsplugin.c cmsBool CMSEXPORT _cmsWrite15Fixed16Number(cmsIOHANDLER* io, cmsFloat64Number n) n 337 src/cmsplugin.c tmp = _cmsAdjustEndianess32(_cmsDoubleTo15Fixed16(n)); n 546 src/cmsps2.c void EmitNGamma(cmsIOHANDLER* m, int n, cmsToneCurve* g[]) n 550 src/cmsps2.c for( i=0; i < n; i++ ) n 974 src/cmsps2.c Mat.v[i].n[j] *= MAX_ENCODEABLE_XYZ; n 284 src/cmssamp.c cmsFloat64Number RootOfLeastSquaresFitQuadraticCurve(int n, cmsFloat64Number x[], cmsFloat64Number y[]) n 293 src/cmssamp.c if (n < 4) return 0; n 295 src/cmssamp.c for (i=0; i < n; i++) { n 310 src/cmssamp.c _cmsVEC3init(&m.v[0], n, sum_x, sum_x2); n 319 src/cmssamp.c a = res.n[2]; n 320 src/cmssamp.c b = res.n[1]; n 321 src/cmssamp.c c = res.n[0]; n 358 src/cmssamp.c int n, l; n 512 src/cmssamp.c n = 0; n 518 src/cmssamp.c x[n] = inRamp[l]; n 519 src/cmssamp.c y[n] = yRamp[l]; n 520 src/cmssamp.c n++; n 526 src/cmssamp.c if (n < 3 ) { n 534 src/cmssamp.c Lab.L = RootOfLeastSquaresFitQuadraticCurve(n, x, y); n 124 src/cmssm.c L = v ->n[VX]; n 125 src/cmssm.c a = v ->n[VY]; n 126 src/cmssm.c b = v ->n[VZ]; n 159 src/cmssm.c v ->n[VX] = L; n 160 src/cmssm.c v ->n[VY] = a; n 161 src/cmssm.c v ->n[VZ] = b; n 185 src/cmssm.c _cmsVEC3init(&line ->a, a ->n[VX], a ->n[VY], a ->n[VZ]); n 186 src/cmssm.c _cmsVEC3init(&line ->u, b ->n[VX] - a ->n[VX], n 187 src/cmssm.c b ->n[VY] - a ->n[VY], n 188 src/cmssm.c b ->n[VZ] - a ->n[VZ]); n 196 src/cmssm.c p ->n[VX] = line ->a.n[VX] + t * line->u.n[VX]; n 197 src/cmssm.c p ->n[VY] = line ->a.n[VY] + t * line->u.n[VY]; n 198 src/cmssm.c p ->n[VZ] = line ->a.n[VZ] + t * line->u.n[VZ]; n 679 src/cmssm.c fprintf (fp, "\t\t\t\t\t%g %g %g", v.n[0]+50, v.n[1], v.n[2]); n 118 src/cmstypes.c cmsBool _cmsWriteWCharArray(cmsIOHANDLER* io, cmsUInt32Number n, const wchar_t* Array) n 123 src/cmstypes.c _cmsAssert(!(Array == NULL && n > 0)); n 125 src/cmstypes.c for (i=0; i < n; i++) { n 134 src/cmstypes.c cmsBool _cmsReadWCharArray(cmsIOHANDLER* io, cmsUInt32Number n, wchar_t* Array) n 141 src/cmstypes.c for (i=0; i < n; i++) { n 160 src/cmstypes.c cmsUInt32Number n, n 317 src/cmstypes.c void* Type_XYZ_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) n 321 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 423 src/cmstypes.c void* Type_Chromaticity_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) n 427 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 500 src/cmstypes.c void* Type_ColorantOrderType_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) n 504 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 524 src/cmstypes.c cmsUInt32Number i, n; n 527 src/cmstypes.c n = SizeOfTag / sizeof(cmsUInt32Number); n 528 src/cmstypes.c array_double = (cmsFloat64Number*) _cmsCalloc(self ->ContextID, n, sizeof(cmsFloat64Number)); n 531 src/cmstypes.c for (i=0; i < n; i++) { n 540 src/cmstypes.c *nItems = n; n 561 src/cmstypes.c void* Type_S15Fixed16_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) n 563 src/cmstypes.c return _cmsDupMem(self ->ContextID, Ptr, n * sizeof(cmsFloat64Number)); n 585 src/cmstypes.c cmsUInt32Number i, n; n 588 src/cmstypes.c n = SizeOfTag / sizeof(cmsUInt32Number); n 589 src/cmstypes.c array_double = (cmsFloat64Number*) _cmsCalloc(self ->ContextID, n, sizeof(cmsFloat64Number)); n 592 src/cmstypes.c for (i=0; i < n; i++) { n 603 src/cmstypes.c *nItems = n; n 627 src/cmstypes.c void* Type_U16Fixed16_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) n 629 src/cmstypes.c return _cmsDupMem(self ->ContextID, Ptr, n * sizeof(cmsFloat64Number)); n 673 src/cmstypes.c void* Type_Signature_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) n 675 src/cmstypes.c return _cmsDupMem(self ->ContextID, Ptr, n * sizeof(cmsSignature)); n 761 src/cmstypes.c void* Type_Text_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) n 765 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 846 src/cmstypes.c void* Type_Data_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) n 852 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 1038 src/cmstypes.c void* Type_Text_Description_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) n 1042 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 1150 src/cmstypes.c void* Type_Curve_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) n 1154 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 1195 src/cmstypes.c int i, n; n 1208 src/cmstypes.c n = ParamsByType[Type]; n 1210 src/cmstypes.c for (i=0; i < n; i++) { n 1260 src/cmstypes.c void* Type_ParametricCurve_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) n 1264 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 1331 src/cmstypes.c void* Type_DateTime_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) n 1335 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 1395 src/cmstypes.c void* Type_Measurement_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) n 1399 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 1545 src/cmstypes.c void* Type_MLU_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) n 1549 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 1665 src/cmstypes.c cmsBool Write8bitTables(cmsContext ContextID, cmsIOHANDLER* io, cmsUInt32Number n, _cmsStageToneCurvesData* Tables) n 1671 src/cmstypes.c for (i=0; i < n; i++) { n 1704 src/cmstypes.c cmsUInt32Number uipow(cmsUInt32Number n, cmsUInt32Number a, cmsUInt32Number b) n 1709 src/cmstypes.c if (n == 0) return 0; n 1720 src/cmstypes.c rc = rv * n; n 1722 src/cmstypes.c if (rv != rc / n) return (cmsUInt32Number) -1; n 1937 src/cmstypes.c void* Type_LUT8_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) n 1941 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 2253 src/cmstypes.c void* Type_LUT16_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) n 2257 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 2559 src/cmstypes.c cmsUInt32Number i, n; n 2564 src/cmstypes.c n = cmsStageOutputChannels(mpe); n 2567 src/cmstypes.c for (i=0; i < n; i++) { n 2749 src/cmstypes.c void* Type_LUTA2B_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) n 2753 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 2929 src/cmstypes.c void* Type_LUTB2A_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) n 2933 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 3031 src/cmstypes.c void* Type_ColorantTable_Dup(struct _cms_typehandler_struct* self, const void* Ptr, cmsUInt32Number n) n 3036 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 3166 src/cmstypes.c void* Type_NamedColor_Dup(struct _cms_typehandler_struct* self, const void* Ptr, cmsUInt32Number n) n 3172 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 3249 src/cmstypes.c OutSeq ->n = Count; n 3309 src/cmstypes.c if (!_cmsWriteUInt32Number(io, Seq->n)) return FALSE; n 3311 src/cmstypes.c for (i=0; i < Seq ->n; i++) { n 3331 src/cmstypes.c void* Type_ProfileSequenceDesc_Dup(struct _cms_typehandler_struct* self, const void* Ptr, cmsUInt32Number n) n 3335 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 3364 src/cmstypes.c cmsUInt32Number n, n 3368 src/cmstypes.c cmsPSEQDESC* seq = &OutSeq ->seq[n]; n 3417 src/cmstypes.c cmsUInt32Number n, n 3422 src/cmstypes.c if (!io ->Write(io, 16, Seq ->seq[n].ProfileID.ID8)) return FALSE; n 3425 src/cmstypes.c if (!SaveDescription(self, io, Seq ->seq[n].Description)) return FALSE; n 3442 src/cmstypes.c if (!_cmsWriteUInt32Number(io, Seq ->n)) return FALSE; n 3445 src/cmstypes.c if (!WritePositionTable(self, io, 0, Seq ->n, BaseOffset, Seq, WriteSeqID)) return FALSE; n 3453 src/cmstypes.c void* Type_ProfileSequenceId_Dup(struct _cms_typehandler_struct* self, const void* Ptr, cmsUInt32Number n) n 3457 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 3483 src/cmstypes.c cmsUcrBg* n = (cmsUcrBg*) _cmsMallocZero(self ->ContextID, sizeof(cmsUcrBg)); n 3488 src/cmstypes.c if (n == NULL) return NULL; n 3495 src/cmstypes.c n ->Ucr = cmsBuildTabulatedToneCurve16(self ->ContextID, CountUcr, NULL); n 3496 src/cmstypes.c if (n ->Ucr == NULL) return NULL; n 3498 src/cmstypes.c if (!_cmsReadUInt16Array(io, CountUcr, n ->Ucr->Table16)) return NULL; n 3507 src/cmstypes.c n ->Bg = cmsBuildTabulatedToneCurve16(self ->ContextID, CountBg, NULL); n 3508 src/cmstypes.c if (n ->Bg == NULL) return NULL; n 3509 src/cmstypes.c if (!_cmsReadUInt16Array(io, CountBg, n ->Bg->Table16)) return NULL; n 3515 src/cmstypes.c n ->Desc = cmsMLUalloc(self ->ContextID, 1); n 3516 src/cmstypes.c if (n ->Desc == NULL) return NULL; n 3521 src/cmstypes.c cmsMLUsetASCII(n ->Desc, cmsNoLanguage, cmsNoCountry, ASCIIString); n 3525 src/cmstypes.c return (void*) n; n 3557 src/cmstypes.c void* Type_UcrBg_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) n 3570 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 3697 src/cmstypes.c void* Type_CrdInfo_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) n 3701 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 3784 src/cmstypes.c void* Type_Screening_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) n 3788 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 3851 src/cmstypes.c void* Type_ViewingConditions_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) n 3855 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 3872 src/cmstypes.c void* GenericMPEdup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) n 3876 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 4005 src/cmstypes.c cmsUInt32Number n, n 4010 src/cmstypes.c GammaTables[n] = ReadSegmentedCurve(self, io); n 4011 src/cmstypes.c return (GammaTables[n] != NULL); n 4127 src/cmstypes.c cmsUInt32Number n, n 4132 src/cmstypes.c return WriteSegmentedCurve(io, Curves ->TheCurves[n]); n 4358 src/cmstypes.c cmsUInt32Number n, n 4399 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 4535 src/cmstypes.c void* Type_MPE_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) n 4539 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 4575 src/cmstypes.c cmsUInt32Number TagType, n, i; n 4613 src/cmstypes.c for (n=0; n < 3; n++) { n 4615 src/cmstypes.c Curves[n] = cmsBuildTabulatedToneCurve16(self ->ContextID, nElems, NULL); n 4616 src/cmstypes.c if (Curves[n] == NULL) goto Error; n 4628 src/cmstypes.c Curves[n] ->Table16[i] = FROM_8_TO_16(v); n 4634 src/cmstypes.c if (!_cmsReadUInt16Array(io, nElems, Curves[n]->Table16)) goto Error; n 4652 src/cmstypes.c for (n=0; n < 3; n++) { n 4656 src/cmstypes.c if (!_cmsRead15Fixed16Number(io, &Colorant[n].Gamma)) goto Error; n 4657 src/cmstypes.c if (!_cmsRead15Fixed16Number(io, &Colorant[n].Min)) goto Error; n 4658 src/cmstypes.c if (!_cmsRead15Fixed16Number(io, &Colorant[n].Max)) goto Error; n 4672 src/cmstypes.c Params[0] = Colorant[n].Gamma; n 4673 src/cmstypes.c Params[1] = pow((Colorant[n].Max - Colorant[n].Min), (1.0 / Colorant[n].Gamma)); n 4677 src/cmstypes.c Params[5] = Colorant[n].Min; n 4680 src/cmstypes.c Curves[n] = cmsBuildParametricToneCurve(self ->ContextID, 5, Params); n 4681 src/cmstypes.c if (Curves[n] == NULL) goto Error; n 4746 src/cmstypes.c cmsUInt16Number n = _cmsQuickSaturateWord(v * 65535.0); n 4748 src/cmstypes.c if (!_cmsWriteUInt16Number(io, n)) return FALSE; n 4760 src/cmstypes.c void* Type_vcgt_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) n 4774 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 4987 src/cmstypes.c cmsUInt32Number n; n 4997 src/cmstypes.c n = mywcslen(wcstr); n 4998 src/cmstypes.c if (!_cmsWriteWCharArray(io, n, wcstr)) return FALSE; n 5205 src/cmstypes.c void* Type_Dictionary_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) n 5209 src/cmstypes.c cmsUNUSED_PARAMETER(n); n 162 src/cmsvirt.c Colorants.Red.X = MColorants.v[0].n[0]; n 163 src/cmsvirt.c Colorants.Red.Y = MColorants.v[1].n[0]; n 164 src/cmsvirt.c Colorants.Red.Z = MColorants.v[2].n[0]; n 166 src/cmsvirt.c Colorants.Green.X = MColorants.v[0].n[1]; n 167 src/cmsvirt.c Colorants.Green.Y = MColorants.v[1].n[1]; n 168 src/cmsvirt.c Colorants.Green.Z = MColorants.v[2].n[1]; n 170 src/cmsvirt.c Colorants.Blue.X = MColorants.v[0].n[2]; n 171 src/cmsvirt.c Colorants.Blue.Y = MColorants.v[1].n[2]; n 172 src/cmsvirt.c Colorants.Blue.Z = MColorants.v[2].n[2]; n 1022 src/cmsvirt.c int n; n 1024 src/cmsvirt.c for (n=0, mpe = Lut ->Elements; mpe != NULL; mpe = mpe ->Next, n++) { n 1026 src/cmsvirt.c if (n > Tab ->nTypes) return FALSE; n 1027 src/cmsvirt.c if (cmsStageType(mpe) != Tab ->MpeTypes[n]) return FALSE; n 1030 src/cmsvirt.c return (n == Tab ->nTypes); n 1037 src/cmsvirt.c cmsUInt32Number n; n 1039 src/cmsvirt.c for (n=0; n < SIZE_OF_ALLOWED_LUT; n++) { n 1041 src/cmsvirt.c const cmsAllowedLUT* Tab = AllowedLUTTypes + n; n 220 src/cmswtpnt.c _cmsVEC3init(&Cone.v[0], ConeDestRGB.n[0]/ConeSourceRGB.n[0], 0.0, 0.0); n 221 src/cmswtpnt.c _cmsVEC3init(&Cone.v[1], 0.0, ConeDestRGB.n[1]/ConeSourceRGB.n[1], 0.0); n 222 src/cmswtpnt.c _cmsVEC3init(&Cone.v[2], 0.0, 0.0, ConeDestRGB.n[2]/ConeSourceRGB.n[2]); n 314 src/cmswtpnt.c _cmsVEC3init(&r -> v[0], Coef.n[VX]*xr, Coef.n[VY]*xg, Coef.n[VZ]*xb); n 315 src/cmswtpnt.c _cmsVEC3init(&r -> v[1], Coef.n[VX]*yr, Coef.n[VY]*yg, Coef.n[VZ]*yb); n 316 src/cmswtpnt.c _cmsVEC3init(&r -> v[2], Coef.n[VX]*(1.0-xr-yr), Coef.n[VY]*(1.0-xg-yg), Coef.n[VZ]*(1.0-xb-yb)); n 344 src/cmswtpnt.c Result -> X = Out.n[0]; n 345 src/cmswtpnt.c Result -> Y = Out.n[1]; n 346 src/cmswtpnt.c Result -> Z = Out.n[2]; n 263 src/cmsxform.c cmsUInt32Number i, n; n 267 src/cmsxform.c n = Size; n 269 src/cmsxform.c for (i=0; i < n; i++) { n 288 src/cmsxform.c cmsUInt32Number i, n; n 292 src/cmsxform.c n = Size; // Buffer len n 294 src/cmsxform.c for (i=0; i < n; i++) { n 311 src/cmsxform.c cmsUInt32Number i, n; n 315 src/cmsxform.c n = Size; n 317 src/cmsxform.c for (i=0; i < n; i++) { n 358 src/cmsxform.c cmsUInt32Number i, n; n 362 src/cmsxform.c n = Size; // Buffer len n 364 src/cmsxform.c for (i=0; i < n; i++) { n 382 src/cmsxform.c cmsUInt32Number i, n; n 387 src/cmsxform.c n = Size; // Buffer len n 396 src/cmsxform.c for (i=0; i < n; i++) { n 427 src/cmsxform.c cmsUInt32Number i, n; n 432 src/cmsxform.c n = Size; // Buffer len n 441 src/cmsxform.c for (i=0; i < n; i++) { n 102 testbed/testcms2.c static cmsUInt32Number n = 1; n 104 testbed/testcms2.c return (cmsContext) (n++ % 0xff0); n 1004 testbed/testcms2.c void BuildTable(cmsInt32Number n, cmsUInt16Number Tab[], cmsBool Descending) n 1008 testbed/testcms2.c for (i=0; i < n; i++) { n 1009 testbed/testcms2.c cmsFloat64Number v = (cmsFloat64Number) ((cmsFloat64Number) 65535.0 * i ) / (n-1); n 1011 testbed/testcms2.c Tab[Descending ? (n - i - 1) : i ] = (cmsUInt16Number) floor(v + 0.5); n 4810 testbed/testcms2.c cmsBool CheckOneStr(cmsMLU* mlu, cmsInt32Number n) n 4816 testbed/testcms2.c sprintf(Buffer2, "Hello, world %d", n); n 4821 testbed/testcms2.c sprintf(Buffer2, "Hola, mundo %d", n); n 4888 testbed/testcms2.c if (s ->n != 3) return 0; n 4956 testbed/testcms2.c if (s ->n != 3) return 0; n 6796 testbed/testcms2.c cmsUInt32Number n; n 6807 testbed/testcms2.c n = cmsGetPostScriptCSA(DbgThread(), hProfile, 0, 0, NULL, 0); n 6808 testbed/testcms2.c if (n == 0) return; n 6810 testbed/testcms2.c Buffer = (char*) _cmsMalloc(BuffThread, n + 1); n 6811 testbed/testcms2.c cmsGetPostScriptCSA(DbgThread(), hProfile, 0, 0, Buffer, n); n 6812 testbed/testcms2.c Buffer[n] = 0; n 6816 testbed/testcms2.c fwrite(Buffer, n, 1, o); n 6831 testbed/testcms2.c cmsUInt32Number n; n 6842 testbed/testcms2.c n = cmsGetPostScriptCRD(DbgThread(), hProfile, 0, dwFlags, NULL, 0); n 6843 testbed/testcms2.c if (n == 0) return; n 6845 testbed/testcms2.c Buffer = (char*) _cmsMalloc(BuffThread, n + 1); n 6846 testbed/testcms2.c cmsGetPostScriptCRD(DbgThread(), hProfile, 0, dwFlags, Buffer, n); n 6847 testbed/testcms2.c Buffer[n] = 0; n 6851 testbed/testcms2.c fwrite(Buffer, n, 1, o); n 7467 testbed/testcms2.c cmsFloat32Number n = (cmsFloat32Number) i / 255.0F; n 7468 testbed/testcms2.c cmsUInt16Number f1 = (cmsUInt16Number) floor(255.0 * cmsEvalToneCurveFloat(t, n) + 0.5); n 8145 testbed/testcms2.c cmsUInt32Number n, i; n 8149 testbed/testcms2.c n = cmsGetSupportedIntents(200, Codes, Descriptions); n 8152 testbed/testcms2.c for (i=0; i < n; i++) { n 788 testbed/testplugin.c const void *Ptr, cmsUInt32Number n) n 790 testbed/testplugin.c return _cmsDupMem(self ->ContextID, Ptr, n * sizeof(cmsUInt32Number)); n 45 testbed/zoo_icc.c cmsInt32Number i, n; n 48 testbed/zoo_icc.c n = cmsGetTagCount(h); n 49 testbed/zoo_icc.c for (i=0; i < n; i++) { n 61 testbed/zoo_icc.c cmsInt32Number i, n; n 65 testbed/zoo_icc.c n = cmsGetTagCount(h); n 66 testbed/zoo_icc.c for (i=0; i < n; i++) { n 177 utils/common/vprf.c int i, n; n 189 utils/common/vprf.c n = cmsNamedColorCount(list); n 190 utils/common/vprf.c for (i=0; i < n; i++) { n 227 utils/common/vprf.c cmsUInt32Number n, i; n 231 utils/common/vprf.c n = cmsGetSupportedIntents(200, Codes, Descriptions); n 233 utils/common/vprf.c for (i=0; i < n; i++) { n 136 utils/psicc/psicc.c size_t n; n 141 utils/psicc/psicc.c n = cmsGetPostScriptCSA(0, hProfile, Intent, 0, NULL, 0); n 142 utils/psicc/psicc.c if (n == 0) return; n 144 utils/psicc/psicc.c Buffer = (char*) malloc(n + 1); n 147 utils/psicc/psicc.c cmsGetPostScriptCSA(0, hProfile, Intent, 0, Buffer, (cmsUInt32Number) n); n 148 utils/psicc/psicc.c Buffer[n] = 0; n 163 utils/psicc/psicc.c size_t n; n 184 utils/psicc/psicc.c n = cmsGetPostScriptCRD(0, hProfile, Intent, dwFlags, NULL, 0); n 185 utils/psicc/psicc.c if (n == 0) return; n 187 utils/psicc/psicc.c Buffer = (char*) malloc(n + 1); n 188 utils/psicc/psicc.c cmsGetPostScriptCRD(0, hProfile, Intent, dwFlags, Buffer, (cmsUInt32Number) n); n 189 utils/psicc/psicc.c Buffer[n] = 0; n 47 utils/samples/roundtrip.c double err, SumX=0, SumX2=0, Peak = 0, n = 0; n 73 utils/samples/roundtrip.c n += 1.0; n 81 utils/samples/roundtrip.c printf("Average %g\n", SumX / n); n 83 utils/samples/roundtrip.c printf("Std %g\n", sqrt((n*SumX2 - SumX * SumX) / (n*(n-1)))); n 38 utils/tificc/tifdiff.c double n, x, x2; n 157 utils/tificc/tifdiff.c st ->n = st ->x = st->x2 = st->Peak = 0; n 167 utils/tificc/tifdiff.c st-> x += dE; st ->x2 += (dE * dE); st->n += 1.0; n 175 utils/tificc/tifdiff.c return sqrt((st->n * st->x2 - st->x * st->x) / (st->n*(st->n-1))); n 181 utils/tificc/tifdiff.c return st ->x/st ->n; n 688 utils/tificc/tifdiff.c if (ColorimetricStat.n > 0) { n 300 utils/transicc/transicc.c int i, n; n 389 utils/transicc/transicc.c n = cmsChannelsOf(space); n 391 utils/transicc/transicc.c for (i=0; i < n; i++) { n 651 utils/transicc/transicc.c cmsUInt32Number i, n; n 655 utils/transicc/transicc.c n = cmsChannelsOf(OutputColorSpace); n 656 utils/transicc/transicc.c for (i=0; i < n; i++) { n 720 utils/transicc/transicc.c cmsUInt32Number i, n; n 735 utils/transicc/transicc.c n = cmsChannelsOf(InputColorSpace); n 736 utils/transicc/transicc.c for (i=0; i < n; i++) { n 780 utils/transicc/transicc.c cmsUInt32Number i, n; n 784 utils/transicc/transicc.c n = cmsChannelsOf(OutputColorSpace); n 785 utils/transicc/transicc.c for (i=0; i < n; i++) { n 948 utils/transicc/transicc.c cmsUInt32Number i, n; n 950 utils/transicc/transicc.c n = cmsChannelsOf(InputColorSpace); n 951 utils/transicc/transicc.c for (i=0; i < n; i++) { n 955 utils/transicc/transicc.c sprintf(Buffer, "%uCLR_%u", n, i+1); n 964 utils/transicc/transicc.c cmsUInt32Number i, n; n 966 utils/transicc/transicc.c n = cmsChannelsOf(InputColorSpace); n 967 utils/transicc/transicc.c for (i=0; i < n; i++) { n 1057 utils/transicc/transicc.c cmsUInt32Number i, n; n 1059 utils/transicc/transicc.c n = cmsChannelsOf(InputColorSpace); n 1060 utils/transicc/transicc.c for (i=0; i < n; i++) { n 1064 utils/transicc/transicc.c sprintf(Buffer, "%uCLR_%u", n, i+1); n 1074 utils/transicc/transicc.c cmsUInt32Number i, n; n 1076 utils/transicc/transicc.c n = cmsChannelsOf(InputColorSpace); n 1077 utils/transicc/transicc.c for (i=0; i < n; i++) { n 1174 utils/transicc/transicc.c int i, n; n 1177 utils/transicc/transicc.c n = cmsChannelsOf(OutputColorSpace); n 1178 utils/transicc/transicc.c cmsIT8SetPropertyDbl(hIT8out, "NUMBER_OF_FIELDS", n+1); n 1181 utils/transicc/transicc.c for (i=1; i <= n; i++) { n 1182 utils/transicc/transicc.c sprintf(Buffer, "%dCLR_%d", n, i); n 1190 utils/transicc/transicc.c int i, n; n 1193 utils/transicc/transicc.c n = cmsChannelsOf(OutputColorSpace); n 1194 utils/transicc/transicc.c cmsIT8SetPropertyDbl(hIT8out, "NUMBER_OF_FIELDS", n+1); n 1197 utils/transicc/transicc.c for (i=1; i <= n; i++) {