Lines Matching defs:CLUT
32 // Optimization for 8 bits, Shaper-CLUT (3 inputs only)
46 // Generic optimization for 16 bits Shaper-CLUT-Shaper (any inputs)
406 // Sampler implemented by another LUT. This is a clean way to precalculate the devicelink 3D CLUT for
455 cmsBool PatchLUT(cmsStage* CLUT, cmsUInt16Number At[], cmsUInt16Number Value[],
458 _cmsStageCLutData* Grid = (_cmsStageCLutData*) CLUT ->Data;
464 if (CLUT -> Type != cmsSigCLutElemType) {
465 cmsSignalError(CLUT->ContextID, cmsERROR_INTERNAL, "(internal) Attempt to PatchLUT on non-lut stage");
522 cmsSignalError(CLUT->ContextID, cmsERROR_INTERNAL, "(internal) %d Channels are not supported on PatchLUT", nChannelsIn);
554 cmsStage *PreLin = NULL, *CLUT = NULL, *PostLin = NULL;
570 // Check if the LUT comes as Prelin, CLUT or Postlin. We allow all combinations
571 if (!cmsPipelineCheckAndRetreiveStages(Lut, 3, cmsSigCurveSetElemType, cmsSigCLutElemType, cmsSigCurveSetElemType, &PreLin, &CLUT, &PostLin))
572 if (!cmsPipelineCheckAndRetreiveStages(Lut, 2, cmsSigCurveSetElemType, cmsSigCLutElemType, &PreLin, &CLUT))
573 if (!cmsPipelineCheckAndRetreiveStages(Lut, 2, cmsSigCLutElemType, cmsSigCurveSetElemType, &CLUT, &PostLin))
574 if (!cmsPipelineCheckAndRetreiveStages(Lut, 1, cmsSigCLutElemType, &CLUT))
616 PatchLUT(CLUT, WhiteIn, WhiteOut, nOuts, nIns);
623 // prelinearization curves, a CLUT of nGridPoints and optional postlinearization tables.
636 cmsStage* CLUT;
695 // Allocate the CLUT
696 CLUT = cmsStageAllocCLut16bit(Src ->ContextID, nGridPoints, Src ->InputChannels, Src->OutputChannels, NULL);
697 if (CLUT == NULL) goto Error;
699 // Add the CLUT to the destination LUT
700 if (!cmsPipelineInsertStage(Dest, cmsAT_END, CLUT)) {
729 if (!cmsStageSampleCLut16bit(CLUT, XFormSampler16, (void*) Src, 0)) {
752 DataCLUT = (_cmsStageCLutData*) CLUT ->Data;
1074 // the output from previous CLUT. We cannot optimize this case
1157 // Allocate the CLUT for result
1160 // Add the CLUT to the destination LUT
1900 // A CLUT is being asked, so force this specific optimization