Author: post
Date: 2013-02-13 12:34:15 +0100 (Wed, 13 Feb 2013)
New Revision: 4329
Modified:
trunk/plugins/dcp/dcp.c
Log:
Reset all settings on profile unload and avoid unneeded precalculation.
Modified: trunk/plugins/dcp/dcp.c
===================================================================
--- trunk/plugins/dcp/dcp.c 2013-02-11 16:54:14 UTC (rev 4328)
+++ trunk/plugins/dcp/dcp.c 2013-02-13 11:34:15 UTC (rev 4329)
@@ -317,7 +317,6 @@
dcp->huesatmap = NULL;
dcp->tone_curve = NULL;
dcp->looktable = NULL;
- dcp->looktable = NULL;
dcp->tone_curve_lut = NULL;
dcp->use_profile = FALSE;
if (dcp->huesatmap_precalc->lookups)
@@ -330,6 +329,9 @@
free(dcp->looktable_precalc->lookups);
dcp->looktable_precalc->lookups = NULL;
}
+ dcp->temp1 = dcp->temp2 = 0;
+ dcp->has_color_matrix1 = dcp->has_color_matrix2 =
dcp->has_forward_matrix1 = dcp->has_forward_matrix2 = FALSE;
+
}
#define ALIGNTO16(PTR) ((guintptr)PTR + ((16 - ((guintptr)PTR % 16)) % 16))
@@ -437,7 +439,6 @@
case PROP_PROFILE:
g_static_rec_mutex_lock(&dcp_mutex);
read_profile(dcp, g_value_get_object(value));
- precalc(dcp);
changed = TRUE;
g_static_rec_mutex_unlock(&dcp_mutex);
break;
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit