summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2010-02-06 20:18:50 +0000
committerjstebbins <[email protected]>2010-02-06 20:18:50 +0000
commit0c119a65cf49732501c8746bb97209bbace974e0 (patch)
treedcc2fe36eb17b55362acc1958684ee44d32f357a
parenteafb0fa7739d0863eb6a6d181c0b69a71ddf2ba1 (diff)
LinGui: remove % display from video quality slider. only show RF/QP
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3099 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--gtk/src/callbacks.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c
index 246f56b92..fa574227c 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -4656,35 +4656,29 @@ format_drc_cb(GtkScale *scale, gdouble val, signal_user_data_t *ud)
G_MODULE_EXPORT gchar*
format_vquality_cb(GtkScale *scale, gdouble val, signal_user_data_t *ud)
{
- gdouble percent;
-
gint vcodec = ghb_settings_combo_int(ud->settings, "VideoEncoder");
switch (vcodec)
{
case HB_VCODEC_X264:
{
- percent = 100. * (51 - val) / 51.;
- return g_strdup_printf("RF: %.4g (%.0f%%)", val, percent);
+ return g_strdup_printf("RF: %.4g", val);
} break;
case HB_VCODEC_FFMPEG:
{
- percent = 100. * (30 - (val - 1)) / 30.;
- return g_strdup_printf("QP: %d (%.0f%%)", (int)val, percent);
+ return g_strdup_printf("QP: %d", (int)val);
} break;
case HB_VCODEC_THEORA:
{
- percent = 100. * val / 63.;
- return g_strdup_printf("QP: %d (%.0f%%)", (int)val, percent);
+ return g_strdup_printf("QP: %d", (int)val);
} break;
default:
{
- percent = 0;
} break;
}
- return g_strdup_printf("QP: %.1f / %.1f%%", val, percent);
+ return g_strdup_printf("QP: %.4g", val);
}
static void