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.
609 if (Plugin ->Factory(&p->xform, &p->UserData, &p ->FreeUserData, &p ->Lut, InputFormat, OutputFormat, dwFlags)) {
655 p ->xform = NullFloatXFORM;
659 p ->xform = FloatXFORM;
691 p ->xform = NullXFORM;
697 p ->xform = PrecalculatedXFORMGamutCheck; // Gamut check, no cach?
699 p ->xform = PrecalculatedXFORM; // No cach? no gamut check
704 p ->xform = CachedXFORMGamutCheck; // Gamut check, cach?
706 p ->xform = CachedXFORM; // No gamut check, cach?
817 _cmsTRANSFORM* xform;
872 xform = AllocEmptyTransform(ContextID, Lut, LastIntent, &InputFormat, &OutputFormat, &dwFlags);
873 if (xform == NULL) {
878 xform ->EntryColorSpace = EntryColorSpace;
879 xform ->ExitColorSpace = ExitColorSpace;
880 xform ->RenderingIntent = Intents[nProfiles-1];
883 SetWhitePoint(&xform->EntryWhitePoint, (cmsCIEXYZ*) cmsReadTag(hProfiles[0], cmsSigMediaWhitePointTag));
884 SetWhitePoint(&xform->ExitWhitePoint, (cmsCIEXYZ*) cmsReadTag(hProfiles[nProfiles-1], cmsSigMediaWhitePointTag));
889 xform ->GamutCheck = _cmsCreateGamutCheckPipeline(ContextID, hProfiles,
900 xform ->InputColorant = cmsDupNamedColorList((cmsNAMEDCOLORLIST*) cmsReadTag(hProfiles[0], cmsSigColorantTableTag));
910 xform ->OutputColorant = cmsDupNamedColorList((cmsNAMEDCOLORLIST*) cmsReadTag(hProfiles[nProfiles-1], cmsSigColorantTableOutTag));
917 xform -> OutputColorant = cmsDupNamedColorList((cmsNAMEDCOLORLIST*) cmsReadTag(hProfiles[nProfiles-1], cmsSigColorantTableTag));
923 xform ->Sequence = _cmsCompileProfileSequence(ContextID, nProfiles, hProfiles);
926 xform ->Sequence = NULL;
931 memset(&xform ->Cache.CacheIn, 0, sizeof(xform ->Cache.CacheIn));
933 if (xform ->GamutCheck != NULL) {
934 TransformOnePixelWithGamutCheck(xform, xform ->Cache.CacheIn, xform->Cache.CacheOut);
938 xform ->Lut ->Eval16Fn(xform ->Cache.CacheIn, xform->Cache.CacheOut, xform -> Lut->Data);
943 return (cmsHTRANSFORM) xform;
1083 _cmsTRANSFORM* xform = (_cmsTRANSFORM*) hTransform;
1085 if (xform == NULL) return NULL;
1086 return xform -> ContextID;
1092 _cmsTRANSFORM* xform = (_cmsTRANSFORM*) hTransform;
1094 if (xform == NULL) return 0;
1095 return xform->InputFormat;
1100 _cmsTRANSFORM* xform = (_cmsTRANSFORM*) hTransform;
1102 if (xform == NULL) return 0;
1103 return xform->OutputFormat;
1112 _cmsTRANSFORM* xform = (_cmsTRANSFORM*) hTransform;
1117 if (!(xform ->dwOriginalFlags & cmsFLAGS_CAN_CHANGE_FORMATTER)) {
1119 cmsSignalError(xform ->ContextID, cmsERROR_NOT_SUITABLE, "cmsChangeBuffersFormat works only on transforms created originally with at least 16 bits of precision");
1123 FromInput = _cmsGetFormatter(xform->ContextID, InputFormat, cmsFormatterInput, CMS_PACK_FLAGS_16BITS).Fmt16;
1124 ToOutput = _cmsGetFormatter(xform->ContextID, OutputFormat, cmsFormatterOutput, CMS_PACK_FLAGS_16BITS).Fmt16;
1128 cmsSignalError(xform -> ContextID, cmsERROR_UNKNOWN_EXTENSION, "Unsupported raster format");
1132 xform ->InputFormat = InputFormat;
1133 xform ->OutputFormat = OutputFormat;
1134 xform ->FromInput = FromInput;
1135 xform ->ToOutput = ToOutput;