Author: post
Date: 2009-06-28 12:31:00 +0200 (Sun, 28 Jun 2009)
New Revision: 2521
Modified:
trunk/src/application.c
trunk/src/rs-batch.c
trunk/src/rs-preview-widget.c
trunk/src/rs-save-dialog.c
Log:
Denoise: Also send setting (WB/Exposure) settings to denoise filter.
Modified: trunk/src/application.c
===================================================================
--- trunk/src/application.c 2009-06-28 10:18:48 UTC (rev 2520)
+++ trunk/src/application.c 2009-06-28 10:31:00 UTC (rev 2521)
@@ -139,6 +139,7 @@
if (0 < width && 0 < height) /* We only wan't to set width and height
if they are not -1 */
g_object_set(fresample, "width", width, "height", height, NULL);
g_object_set(fbasic_render, "settings", photo->settings[snapshot],
NULL);
+ g_object_set(fdenoise, "settings", photo->settings[snapshot], NULL);
/* actually save */
g_assert(rs_output_execute(output, fend));
Modified: trunk/src/rs-batch.c
===================================================================
--- trunk/src/rs-batch.c 2009-06-28 10:18:48 UTC (rev 2520)
+++ trunk/src/rs-batch.c 2009-06-28 10:31:00 UTC (rev 2521)
@@ -535,6 +535,7 @@
g_object_set(fdenoise, "sharpen", (gint)
photo->settings[setting_id]->sharpen, NULL);
g_object_set(fdenoise, "denoise_luma", (gint)
photo->settings[setting_id]->denoise_luma, NULL);
g_object_set(fdenoise, "denoise_chroma", (gint)
photo->settings[setting_id]->denoise_chroma, NULL);
+ g_object_set(fdenoise, "settings",
photo->settings[setting_id], NULL);
/* Save the image */
g_object_set(queue->output, "filename",
parsed_filename, NULL);
Modified: trunk/src/rs-preview-widget.c
===================================================================
--- trunk/src/rs-preview-widget.c 2009-06-28 10:18:48 UTC (rev 2520)
+++ trunk/src/rs-preview-widget.c 2009-06-28 10:31:00 UTC (rev 2521)
@@ -489,8 +489,11 @@
{
g_signal_connect(G_OBJECT(preview->photo), "settings-changed",
G_CALLBACK(settings_changed), preview);
- for(view=0;view<MAX_VIEWS;view++)
+ for(view=0;view<MAX_VIEWS;view++)
+ {
g_object_set(preview->filter_render[view], "settings",
preview->photo->settings[preview->snapshot[view]], NULL);
+ g_object_set(preview->filter_denoise[view], "settings",
preview->photo->settings[preview->snapshot[view]], NULL);
+ }
for(view=0;view<MAX_VIEWS;view++)
{
Modified: trunk/src/rs-save-dialog.c
===================================================================
--- trunk/src/rs-save-dialog.c 2009-06-28 10:18:48 UTC (rev 2520)
+++ trunk/src/rs-save-dialog.c 2009-06-28 10:31:00 UTC (rev 2521)
@@ -248,6 +248,7 @@
g_object_set(dialog->filter_denoise, "denoise_luma", (gint)
dialog->photo->settings[dialog->snapshot]->denoise_luma, NULL);
g_object_set(dialog->filter_denoise, "denoise_chroma", (gint)
dialog->photo->settings[dialog->snapshot]->denoise_chroma, NULL);
g_object_set(dialog->filter_basic_render, "settings",
dialog->photo->settings[dialog->snapshot], NULL);
+ g_object_set(dialog->filter_denoise, "settings",
dialog->photo->settings[dialog->snapshot], NULL);
g_object_set(dialog->output, "filename",
gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog->chooser)), NULL);
rs_output_execute(dialog->output, dialog->filter_basic_render);
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit