[Rawstudio-commit] r3511 - trunk/plugins/colorspace-transform

Klaus Post klauspost at gmail.com
Wed Aug 25 18:47:58 CEST 2010


Author: post
Date: 2010-08-25 18:47:57 +0200 (Wed, 25 Aug 2010)
New Revision: 3511

Modified:
   trunk/plugins/colorspace-transform/colorspace_transform.c
Log:
After colorspace conversion, remember to set colorspace of the output image to the new CS ;)

Modified: trunk/plugins/colorspace-transform/colorspace_transform.c
===================================================================
--- trunk/plugins/colorspace-transform/colorspace_transform.c	2010-08-24 19:09:23 UTC (rev 3510)
+++ trunk/plugins/colorspace-transform/colorspace_transform.c	2010-08-25 16:47:57 UTC (rev 3511)
@@ -121,6 +121,7 @@
 			g_object_unref(previous_response);
 			if (colorspace_transform->has_premul)
 				rs_filter_param_set_boolean(RS_FILTER_PARAM(response), "is-premultiplied", TRUE);
+			rs_filter_param_set_object(RS_FILTER_PARAM(response), "colorspace", output_space);
 			rs_filter_response_set_image(response, output);
 			g_object_unref(output);
 			g_object_unref(input);
@@ -188,6 +189,7 @@
 	convert_colorspace8(colorspace_transform, input, output, input_space, output_space, roi);
 
 	rs_filter_response_set_image8(response, output);
+	rs_filter_param_set_object(RS_FILTER_PARAM(response), "colorspace", output_space);
 	g_object_unref(output);
 	g_object_unref(input);
 	return response;




More information about the Rawstudio-commit mailing list