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

Klaus Post klauspost at gmail.com
Mon Jan 4 18:35:51 CET 2010


Author: post
Date: 2010-01-04 18:35:51 +0100 (Mon, 04 Jan 2010)
New Revision: 2968

Modified:
   branches/rawstudio-ng-color/plugins/dcp/dcp.c
Log:
DCP: Ensure that precalculated tables are generated when switching profile. Set a sensible default whitepoint xy.

Modified: branches/rawstudio-ng-color/plugins/dcp/dcp.c
===================================================================
--- branches/rawstudio-ng-color/plugins/dcp/dcp.c	2010-01-04 01:59:38 UTC (rev 2967)
+++ branches/rawstudio-ng-color/plugins/dcp/dcp.c	2010-01-04 17:35:51 UTC (rev 2968)
@@ -235,6 +235,9 @@
 	dcp->huesatmap_interpolated = NULL;
 	dcp->use_profile = FALSE;
 	dcp->curve_is_flat = TRUE;
+	/* Standard D65, this default should really not be used */
+	dcp->white_xy.x = 0.31271f;
+	dcp->white_xy.y = 0.32902f;
 
 	/* We cannot initialize this in class init, the RSProphoto plugin may not
 	 * be loaded yet at that time :( */
@@ -1094,6 +1097,8 @@
 	dcp->huesatmap2 = rs_dcp_file_get_huesatmap2(dcp_file);
 	dcp->huesatmap = 0;
 	dcp->use_profile = TRUE;
+	set_white_xy(dcp, &dcp->white_xy);
+	precalc(dcp);
 }
 
 /*




More information about the Rawstudio-commit mailing list