f 1011 include/lcms2.h CMSAPI long int CMSEXPORT cmsfilelength(FILE* f); f 1555 src/cmscgats.c void WriteStr(SAVESTREAM* f, const char *str) f 1564 src/cmscgats.c f ->Used += len; f 1567 src/cmscgats.c if (f ->stream) { // Should I write it to a file? f 1569 src/cmscgats.c if (fwrite(str, 1, len, f->stream) != len) { f 1577 src/cmscgats.c if (f ->Base) { // Am I just counting the bytes? f 1579 src/cmscgats.c if (f ->Used > f ->Max) { f 1585 src/cmscgats.c memmove(f ->Ptr, str, len); f 1586 src/cmscgats.c f->Ptr += len; f 1596 src/cmscgats.c void Writef(SAVESTREAM* f, const char* frm, ...) f 1604 src/cmscgats.c WriteStr(f, Buffer); f 52 src/cmserr.c long int CMSEXPORT cmsfilelength(FILE* f) f 56 src/cmserr.c p = ftell(f); // register current file position f 58 src/cmserr.c if (fseek(f, 0, SEEK_END) != 0) { f 62 src/cmserr.c n = ftell(f); f 63 src/cmserr.c fseek(f, p, SEEK_SET); // file position restored f 63 src/cmsmd5.c #define STEP(f, w, x, y, z, data, s) \ f 64 src/cmsmd5.c ( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x ) f 3014 src/cmspack.c cmsFormatters16* f = InputFormatters16 + i; f 3016 src/cmspack.c if ((dwInput & ~f ->Mask) == f ->Type) { f 3017 src/cmspack.c fr.Fmt16 = f ->Frm; f 3026 src/cmspack.c cmsFormattersFloat* f = InputFormattersFloat + i; f 3028 src/cmspack.c if ((dwInput & ~f ->Mask) == f ->Type) { f 3029 src/cmspack.c fr.FmtFloat = f ->Frm; f 3169 src/cmspack.c cmsFormatters16* f = OutputFormatters16 + i; f 3171 src/cmspack.c if ((dwInput & ~f ->Mask) == f ->Type) { f 3172 src/cmspack.c fr.Fmt16 = f ->Frm; f 3182 src/cmspack.c cmsFormattersFloat* f = OutputFormattersFloat + i; f 3184 src/cmspack.c if ((dwInput & ~f ->Mask) == f ->Type) { f 3185 src/cmspack.c fr.FmtFloat = f ->Frm; f 3297 src/cmspack.c cmsFormattersFactoryList* f; f 3299 src/cmspack.c for (f =ctx->FactoryList; f != NULL; f = f ->Next) { f 3301 src/cmspack.c cmsFormatter fn = f ->Factory(Type, Dir, dwFlags); f 150 src/cmspcs.c fx = f(xyz->X / WhitePoint->X); f 151 src/cmspcs.c fy = f(xyz->Y / WhitePoint->Y); f 152 src/cmspcs.c fz = f(xyz->Z / WhitePoint->Z); f 550 src/cmspcs.c cmsFloat64Number dE,dL,dC,dh,sl,sc,sh,t,f,cmc; f 580 src/cmspcs.c f = sqrt((LCh1.C * LCh1.C * LCh1.C * LCh1.C)/((LCh1.C * LCh1.C * LCh1.C * LCh1.C)+1900)); f 581 src/cmspcs.c sh = sc*(t*f+1-f); f 3952 src/cmstypes.c cmsFloat32Number f; f 3953 src/cmstypes.c if (!_cmsReadFloat32Number(io, &f)) goto Error; f 3954 src/cmstypes.c Segments[i].Params[j] = f; f 895 testbed/testcms2.c cmsS15Fixed16Number f = _cmsDoubleTo15Fixed16(d); f 896 testbed/testcms2.c cmsFloat64Number RoundTrip = _cms15Fixed16toDouble(f); f 922 testbed/testcms2.c cmsS15Fixed16Number f = _cmsDoubleTo8Fixed8(d); f 923 testbed/testcms2.c cmsFloat64Number RoundTrip = _cms8Fixed8toDouble((cmsUInt16Number) f); f 2739 testbed/testcms2.c cmsFloat32Number f; f 2744 testbed/testcms2.c f = (cmsFloat32Number) i / 255.0F; f 2745 testbed/testcms2.c f = cmsEvalToneCurveFloat(g2, cmsEvalToneCurveFloat(g1, f)); f 2747 testbed/testcms2.c Tab[i] = (cmsUInt16Number) floor(f * 65535.0 + 0.5); f 3772 testbed/testcms2.c cmsFormatter f, b; f 3783 testbed/testcms2.c f = _cmsGetFormatter(id, Type, cmsFormatterInput, CMS_PACK_FLAGS_16BITS); f 3786 testbed/testcms2.c if (f.Fmt16 == NULL || b.Fmt16 == NULL) { f 3791 testbed/testcms2.c f = _cmsGetFormatter(id, Type, cmsFormatterInput, CMS_PACK_FLAGS_16BITS); f 3810 testbed/testcms2.c f.Fmt16(&info, Values, Buffer, 1); f 3830 testbed/testcms2.c f.Fmt16(&info, Values, Buffer, 1); f 4024 testbed/testcms2.c cmsFormatter f, b; f 4035 testbed/testcms2.c f = _cmsGetFormatter(0, Type, cmsFormatterInput, CMS_PACK_FLAGS_FLOAT); f 4038 testbed/testcms2.c if (f.FmtFloat == NULL || b.FmtFloat == NULL) { f 4043 testbed/testcms2.c f = _cmsGetFormatter(0, Type, cmsFormatterInput, CMS_PACK_FLAGS_FLOAT); f 4058 testbed/testcms2.c f.FmtFloat(&info, Values, Buffer, 1); f 4075 testbed/testcms2.c f.FmtFloat(&info, Values, Buffer, 1); f 4140 testbed/testcms2.c cmsFloat32Number f = _cmsHalf2Float((cmsUInt16Number) i); f 4142 testbed/testcms2.c if (!my_isfinite(f)) { f 4144 testbed/testcms2.c j = _cmsFloat2Half(f); f 823 utils/jpgicc/jpgicc.c FILE* f; f 827 utils/jpgicc/jpgicc.c f = fopen(ProfileFile, "rb"); f 828 utils/jpgicc/jpgicc.c if (f == NULL) return; f 830 utils/jpgicc/jpgicc.c size = cmsfilelength(f); f 832 utils/jpgicc/jpgicc.c EmbedLen = fread(EmbedBuffer, 1, size, f); f 833 utils/jpgicc/jpgicc.c fclose(f); f 659 utils/tificc/tificc.c FILE* f; f 663 utils/tificc/tificc.c f = fopen(ProfileFile, "rb"); f 664 utils/tificc/tificc.c if (f == NULL) return; f 666 utils/tificc/tificc.c size = cmsfilelength(f); f 673 utils/tificc/tificc.c EmbedLen = (cmsUInt32Number) fread(EmbedBuffer, 1, (size_t) size, f); f 678 utils/tificc/tificc.c fclose(f);