From 01372381e86f1f89ab40cdf8c2a08b9a71bbca23 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Mon, 21 Mar 2011 02:20:48 +0000 Subject: Remove legacy % to RF mapping. Although the % option has been gone for a while in the cli and gui's, there were some mappings happening in libhb and for preset imports. This removes the last vestages of % quality mapping. Thanks to Rodeo for the patch. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3857 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/presets.c | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'gtk/src') diff --git a/gtk/src/presets.c b/gtk/src/presets.c index 2e231bfd1..4d7217f8a 100644 --- a/gtk/src/presets.c +++ b/gtk/src/presets.c @@ -2749,42 +2749,6 @@ import_xlat_preset(GValue *dict) } g_free(str); } - - gdouble vquality; - const GValue *gval; - - vquality = ghb_value_double(preset_dict_get_value(dict, "VideoQualitySlider")); - if (vquality > 0.0 && vquality < 1.0) - { - gint vcodec; - - gval = preset_dict_get_value(dict, "VideoEncoder"); - vcodec = ghb_lookup_combo_int("VideoEncoder", gval); - switch (vcodec) - { - case HB_VCODEC_X264: - { - vquality = 51. - vquality * 51.; - } break; - - case HB_VCODEC_FFMPEG: - { - vquality = 31. - vquality * 30.; - } break; - - case HB_VCODEC_THEORA: - { - vquality = vquality * 63.; - } break; - - default: - { - vquality = 0.; - } break; - } - ghb_dict_insert(dict, g_strdup("VideoQualitySlider"), - ghb_double_value_new(vquality)); - } } static void -- cgit v1.2.3