[Rawstudio-commit] r2972 - branches/rawstudio-ng-color/plugins/dcp

Klaus Post klauspost at gmail.com
Tue Jan 5 22:09:29 CET 2010


Author: post
Date: 2010-01-05 22:09:28 +0100 (Tue, 05 Jan 2010)
New Revision: 2972

Modified:
   branches/rawstudio-ng-color/plugins/dcp/dcp.c
Log:
DCP: Skip curve, if neutral.

Modified: branches/rawstudio-ng-color/plugins/dcp/dcp.c
===================================================================
--- branches/rawstudio-ng-color/plugins/dcp/dcp.c	2010-01-04 19:57:15 UTC (rev 2971)
+++ branches/rawstudio-ng-color/plugins/dcp/dcp.c	2010-01-05 21:09:28 UTC (rev 2972)
@@ -187,6 +187,10 @@
 				g_free(knots);
 			}
 			dcp->curve_is_flat = FALSE;
+			if (nknots == 2)
+				if (ABS(knots[0]) < 0.0001 && ABS(knots[1]) < 0.0001)
+					if (ABS(1.0 - knots[2]) < 0.0001 && ABS(1.0 - knots[3]) < 0.0001)
+						dcp->curve_is_flat = TRUE;
 		}
 		else
 			dcp->curve_is_flat = TRUE;
@@ -224,6 +228,7 @@
 	dcp->looktable = NULL;
 	dcp->looktable = NULL;
 	dcp->tone_curve_lut = NULL;
+	dcp->use_profile = FALSE;
 }
 
 static void




More information about the Rawstudio-commit mailing list