summaryrefslogtreecommitdiffstats
path: root/gtk/src/hb-backend.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2008-09-11 16:12:31 +0000
committerjstebbins <[email protected]>2008-09-11 16:12:31 +0000
commit3542367d63f7fb4d443645e5a61ff60ae709382b (patch)
tree27d8b6b1add0421ffbadf290be7048d98e23ac15 /gtk/src/hb-backend.c
parenta3a83842d26ad83b8e7a7b9dd876e8ce6af9dcb9 (diff)
LinGui: change deblock control to a slider to set deblock strength
also clean up some resource handling. delete several depricated files. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1689 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/hb-backend.c')
-rw-r--r--gtk/src/hb-backend.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c
index d9f4cdbc5..fdbd4f97b 100644
--- a/gtk/src/hb-backend.c
+++ b/gtk/src/hb-backend.c
@@ -2308,6 +2308,8 @@ ghb_validate_filters(signal_user_data_t *ud)
}
g_free(str);
}
+#if 0
+ // Deblock is being reworked
// debloc 2
str = ghb_settings_get_string(ud->settings, "tweak_deblock");
enabled = ghb_settings_get_boolean(ud->settings, "deblock");
@@ -2322,6 +2324,7 @@ ghb_validate_filters(signal_user_data_t *ud)
return FALSE;
}
g_free(str);
+#endif
// denois 4
index = ghb_settings_get_combo_index(ud->settings, "tweak_denoise");
if (index < 0)
@@ -2847,17 +2850,11 @@ ghb_add_job(GValue *js, gint unique_id)
hb_filter_deinterlace.settings = deint_str;
hb_list_add( job->filters, &hb_filter_deinterlace );
}
- if( ghb_settings_get_boolean(js, "deblock") )
+ gint deblock = ghb_settings_get_int(js, "deblock");
+ if( deblock > 0 )
{
- hb_filter_deblock.settings = NULL;
- if (tweaks)
- {
- deblock_str = ghb_settings_get_string(js, "tweak_deblock");
- if (deblock_str && deblock_str[0])
- {
- hb_filter_deblock.settings = deblock_str;
- }
- }
+ deblock_str = g_strdup_printf("%d", deblock);
+ hb_filter_deblock.settings = deblock_str;
hb_list_add( job->filters, &hb_filter_deblock );
}
gint denoise = ghb_lookup_denoise(