Home | History | Annotate | Download | only in src

Lines Matching refs:CLUT

1605 (matrix) -> (1d input tables)  -> (multidimensional lookup table - CLUT) -> (1d output tables)
1610 10 1 Number of CLUT grid points (identical for each side) (g) uInt8Number
1733 // That will create a MPE LUT with Matrix, pre tables, CLUT and post tables.
1752 if (CLUTpoints == 1) goto Error; // Impossible value, 0 for no CLUT and then 2 at least
1787 // Get 3D CLUT. Check the overflow....
1835 // We only allow a specific MPE structure: Matrix plus prelin, plus clut, plus post-lin.
1845 _cmsStageCLutData* clut = NULL;
1862 clut = (_cmsStageCLutData*) mpe -> Data;
1878 if (clut == NULL)
1881 clutPoints = clut->Params->nSamples[0];
1922 // The 3D CLUT.
1923 if (clut != NULL) {
1927 val = (cmsUInt8Number) FROM_16_TO_8(clut ->Tab.T[j]);
2081 if (CLUTpoints == 1) goto Error; // Impossible value, 0 for no CLUT and then 2 at least
2086 // Get 3D CLUT
2122 // We only allow some specific MPE structures: Matrix plus prelin, plus clut, plus post-lin.
2133 _cmsStageCLutData* clut = NULL;
2151 clut = (_cmsStageCLutData*) mpe -> Data;
2169 if (clut == NULL)
2172 clutPoints = clut->Params->nSamples[0];
2235 // The 3D CLUT.
2236 if (clut != NULL) {
2237 if (!_cmsWriteUInt16Array(io, nTabSize, clut->Tab.T)) return FALSE;
2317 // V4 stuff. Read CLUT part for LutAtoB and LutBtoA
2325 cmsStage* CLUT;
2334 if (gridPoints8[i] == 1) return NULL; // Impossible value, 0 for no CLUT and then 2 at least
2344 CLUT = cmsStageAllocCLut16bitGranular(self ->ContextID, GridPoints, InputChannels, OutputChannels, NULL);
2345 if (CLUT == NULL) return NULL;
2347 Data = (_cmsStageCLutData*) CLUT ->Data;
2357 cmsStageFree(CLUT);
2368 cmsStageFree(CLUT);
2373 cmsStageFree(CLUT);
2378 return CLUT;
2449 //("A" curves) -> (multidimensional lookup table - CLUT) -> ("M" curves) -> (matrix) -> ("B" curves).
2457 A - CLUT - B
2458 A - CLUT - M - Matrix - B
2471 cmsUInt32Number offsetC; // Offset to CLUT
2626 _cmsStageCLutData* CLUT = ( _cmsStageCLutData*) mpe -> Data;
2628 if (CLUT ->HasFloatValues) {
2629 cmsSignalError(self ->ContextID, cmsERROR_NOT_SUITABLE, "Cannot save floating point data, CLUT are 8 or 16 bit only");
2634 for (i=0; i < (cmsUInt32Number) CLUT ->Params ->nInputs; i++)
2635 gridPoints[i] = (cmsUInt8Number) CLUT ->Params ->nSamples[i];
2647 for (i=0; i < CLUT->nEntries; i++) {
2649 if (!_cmsWriteUInt8Number(io, FROM_16_TO_8(CLUT->Tab.T[i]))) return FALSE;
2655 if (!_cmsWriteUInt16Array(io, CLUT->nEntries, CLUT ->Tab.T)) return FALSE;
2677 cmsStage * CLUT = NULL;
2687 if (!cmsPipelineCheckAndRetreiveStages(Lut, 3, cmsSigCurveSetElemType, cmsSigCLutElemType, cmsSigCurveSetElemType, &A, &CLUT, &B))
2689 cmsSigMatrixElemType, cmsSigCurveSetElemType, &A, &CLUT, &M, &Matrix, &B)) {
2720 if (CLUT != NULL) {
2722 if (!WriteCLUT(self, io, Lut ->SaveAs8Bits ? 1 : 2, CLUT)) return FALSE;
2790 cmsUInt32Number offsetC; // Offset to CLUT
2854 B - CLUT - A
2855 B - Matrix - M - CLUT - A
2865 cmsStage *CLUT = NULL;
2874 if (!cmsPipelineCheckAndRetreiveStages(Lut, 3, cmsSigCurveSetElemType, cmsSigCLutElemType, cmsSigCurveSetElemType, &B, &CLUT, &A))
2876 cmsSigCLutElemType, cmsSigCurveSetElemType, &B, &Matrix, &M, &CLUT, &A)) {
2902 if (CLUT != NULL) {
2904 if (!WriteCLUT(self, io, Lut ->SaveAs8Bits ? 1 : 2, CLUT)) return FALSE;
4299 _cmsStageCLutData* clut;
4314 if (Dimensions8[i] == 1) goto Error; // Impossible value, 0 for no CLUT and then 2 at least
4318 // Allocate the true CLUT
4323 clut = (_cmsStageCLutData*) mpe ->Data;
4324 for (i=0; i < clut ->nEntries; i++) {
4326 if (!_cmsReadFloat32Number(io, &clut ->Tab.TFloat[i])) goto Error;
4340 // Write a CLUT in floating point
4347 _cmsStageCLutData* clut = (_cmsStageCLutData*) mpe ->Data;
4353 if (clut ->HasFloatValues == FALSE) return FALSE;
4361 Dimensions8[i] = (cmsUInt8Number) clut ->Params ->nSamples[i];
4365 for (i=0; i < clut ->nEntries; i++) {
4367 if (!_cmsWriteFloat32Number(io, clut ->Tab.TFloat[i])) return FALSE;