summaryrefslogtreecommitdiffstats
path: root/gtk/src
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-03-21 02:20:48 +0000
committerjstebbins <[email protected]>2011-03-21 02:20:48 +0000
commit01372381e86f1f89ab40cdf8c2a08b9a71bbca23 (patch)
tree47baa6104b656865606323a82f514ef8b39ba79d /gtk/src
parentfdef4b5164b56403a2a6710ffb5a605d0e434924 (diff)
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
Diffstat (limited to 'gtk/src')
-rw-r--r--gtk/src/presets.c36
1 files changed, 0 insertions, 36 deletions
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