Lines Matching defs:xform
183 p -> xform(p, InputBuffer, OutputBuffer, Size, Size);
196 p -> xform(p, InputBuffer, OutputBuffer, Size, Stride);
202 // Float xform converts floats. Since there are no performance issues, one routine does all job, including gamut check.
606 if (Plugin ->Factory(&p->xform, &p->UserData, &p ->FreeUserData, &p ->Lut, InputFormat, OutputFormat, dwFlags)) {
652 p ->xform = NullFloatXFORM;
656 p ->xform = FloatXFORM;
688 p ->xform = NullXFORM;
694 p ->xform = PrecalculatedXFORMGamutCheck; // Gamut check, no cach? else
695 p ->xform = PrecalculatedXFORM; // No cach? no gamut check
700 p ->xform = CachedXFORMGamutCheck; // Gamut check, cach? else
701 p ->xform = CachedXFORM; // No gamut check, cach?
812 _cmsTRANSFORM* xform;
867 xform = AllocEmptyTransform(ContextID, Lut, LastIntent, &InputFormat, &OutputFormat, &dwFlags);
868 if (xform == NULL) {
873 xform ->EntryColorSpace = EntryColorSpace;
874 xform ->ExitColorSpace = ExitColorSpace;
875 xform ->RenderingIntent = Intents[nProfiles-1];
878 SetWhitePoint(&xform->EntryWhitePoint, (cmsCIEXYZ*) cmsReadTag(hProfiles[0], cmsSigMediaWhitePointTag));
879 SetWhitePoint(&xform->ExitWhitePoint, (cmsCIEXYZ*) cmsReadTag(hProfiles[nProfiles-1], cmsSigMediaWhitePointTag));
884 xform ->GamutCheck = _cmsCreateGamutCheckPipeline(ContextID, hProfiles,
895 xform ->InputColorant = cmsDupNamedColorList((cmsNAMEDCOLORLIST*) cmsReadTag(hProfiles[0], cmsSigColorantTableTag));
905 xform ->OutputColorant = cmsDupNamedColorList((cmsNAMEDCOLORLIST*) cmsReadTag(hProfiles[nProfiles-1], cmsSigColorantTableOutTag));
912 xform -> OutputColorant = cmsDupNamedColorList((cmsNAMEDCOLORLIST*) cmsReadTag(hProfiles[nProfiles-1], cmsSigColorantTableTag));
918 xform ->Sequence = _cmsCompileProfileSequence(ContextID, nProfiles, hProfiles);
921 xform ->Sequence = NULL;
926 memset(&xform ->Cache.CacheIn, 0, sizeof(xform ->Cache.CacheIn));
928 if (xform ->GamutCheck != NULL) {
929 TransformOnePixelWithGamutCheck(xform, xform ->Cache.CacheIn, xform->Cache.CacheOut);
933 xform ->Lut ->Eval16Fn(xform ->Cache.CacheIn, xform->Cache.CacheOut, xform -> Lut->Data);
938 return (cmsHTRANSFORM) xform;
1078 _cmsTRANSFORM* xform = (_cmsTRANSFORM*) hTransform;
1080 if (xform == NULL) return NULL;
1081 return xform -> ContextID;
1087 _cmsTRANSFORM* xform = (_cmsTRANSFORM*) hTransform;
1089 if (xform == NULL) return 0;
1090 return xform->InputFormat;
1095 _cmsTRANSFORM* xform = (_cmsTRANSFORM*) hTransform;
1097 if (xform == NULL) return 0;
1098 return xform->OutputFormat;
1107 _cmsTRANSFORM* xform = (_cmsTRANSFORM*) hTransform;
1112 if (!(xform ->dwOriginalFlags & cmsFLAGS_CAN_CHANGE_FORMATTER)) {
1114 cmsSignalError(xform ->ContextID, cmsERROR_NOT_SUITABLE, "cmsChangeBuffersFormat works only on transforms created originally with at least 16 bits of precision");
1118 FromInput = _cmsGetFormatter(xform->ContextID, InputFormat, cmsFormatterInput, CMS_PACK_FLAGS_16BITS).Fmt16;
1119 ToOutput = _cmsGetFormatter(xform->ContextID, OutputFormat, cmsFormatterOutput, CMS_PACK_FLAGS_16BITS).Fmt16;
1123 cmsSignalError(xform -> ContextID, cmsERROR_UNKNOWN_EXTENSION, "Unsupported raster format");
1127 xform ->InputFormat = InputFormat;
1128 xform ->OutputFormat = OutputFormat;
1129 xform ->FromInput = FromInput;
1130 xform ->ToOutput = ToOutput;