diff options
author | jstebbins <[email protected]> | 2008-09-24 17:55:01 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2008-09-24 17:55:01 +0000 |
commit | a7881d6b82326866c341d354027542cf48228033 (patch) | |
tree | b9c9ab38e40841f5b233fb718521724057b744a0 | |
parent | f3af2d88c0f03126af2ef8249a30549180731a4f (diff) |
LinGui: Add filters line to queue description. Improve framerate description
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1757 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | gtk/src/callbacks.c | 67 | ||||
-rw-r--r-- | gtk/src/ghb.ui | 2 | ||||
-rw-r--r-- | gtk/src/resource_data.h | 4 | ||||
-rw-r--r-- | gtk/src/resources.plist | 2 |
4 files changed, 63 insertions, 12 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index a1babd4d6..66c1a46bd 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -2369,28 +2369,34 @@ add_to_queue_list(signal_user_data_t *ud, GValue *settings, GtkTreeIter *piter) gchar *info; gint status; GtkTreeIter citer; - gchar *dest, *preset, *vol_name; + gchar *dest, *preset, *vol_name, *basename; const gchar *vcodec, *container; gchar *fps, *vcodec_abbr; gint title, start_chapter, end_chapter, width, height, vqvalue; gint source_width, source_height; gboolean pass2, anamorphic, round_dim, keep_aspect, vqtype, turbo; + gboolean tweaks; g_debug("update_queue_list ()"); if (settings == NULL) return; treeview = GTK_TREE_VIEW(GHB_WIDGET(ud->builder, "queue_list")); store = GTK_TREE_STORE(gtk_tree_view_get_model(treeview)); + tweaks = ghb_settings_get_boolean(settings, "allow_tweaks"); title = ghb_settings_combo_int(settings, "title"); start_chapter = ghb_settings_get_int(settings, "start_chapter"); end_chapter = ghb_settings_get_int(settings, "end_chapter"); pass2 = ghb_settings_get_boolean(settings, "two_pass"); vol_name = ghb_settings_get_string(settings, "volume_label"); + dest = ghb_settings_get_string(settings, "destination"); + basename = g_path_get_basename(dest); info = g_strdup_printf ( - "<big><b>%s</b></big> (Title %d, Chapters %d through %d, %d Video %s)", + "<big><b>%s</b></big> " + "(Title %d, Chapters %d through %d, %d Video %s)" + " --> %s", vol_name, title+1, start_chapter, end_chapter, - pass2 ? 2:1, pass2 ? "Passes":"Pass" + pass2 ? 2:1, pass2 ? "Passes":"Pass", basename ); if (piter) @@ -2427,7 +2433,6 @@ add_to_queue_list(signal_user_data_t *ud, GValue *settings, GtkTreeIter *piter) container = ghb_settings_combo_option(settings, "container"); mux = ghb_settings_combo_int(settings, "container"); - dest = ghb_settings_get_string(settings, "destination"); preset_modified = ghb_settings_get_boolean(settings, "preset_modified"); preset = ghb_settings_get_string(settings, "preset"); markers = ghb_settings_get_boolean(settings, "chapter_markers"); @@ -2531,17 +2536,63 @@ add_to_queue_list(signal_user_data_t *ud, GValue *settings, GtkTreeIter *piter) if (strcmp("source", fps) == 0) { g_free(fps); - fps = g_strdup("Same As Source"); + if (ghb_settings_get_boolean(settings, "detelecine")) + fps = g_strdup("Same As Source (vfr detelecine)"); + else + fps = g_strdup("Same As Source (variable)"); + } + else + { + gchar *tmp; + tmp = g_strdup_printf("%s (constant frame rate)", fps); + g_free(fps); + fps = tmp; } vcodec = ghb_settings_combo_option(settings, "video_codec"); vcodec_abbr = ghb_settings_get_string(settings, "video_codec"); source_width = ghb_settings_get_int(settings, "source_width"); source_height = ghb_settings_get_int(settings, "source_height"); g_string_append_printf(str, - "<b>Picture:</b> Source: %d x %d, Output %d x %d %s\n" + "<b>Picture:</b> Source: %d x %d, Output %d x %d %s\n", + source_width, source_height, width, height, aspect_desc); + + gboolean decomb; + + decomb = ghb_settings_get_boolean(settings, "decomb"); + g_string_append_printf(str, "<b>Filters:</b>"); + if (ghb_settings_get_boolean(settings, "detelecine")) + g_string_append_printf(str, " - Detelecine"); + if (decomb) + g_string_append_printf(str, " - Decomb"); + else + { + gint deint = ghb_settings_combo_int(settings, + tweaks ? "tweak_deinterlace":"deinterlace"); + if (deint) + { + const gchar *opt = ghb_settings_combo_option(settings, + tweaks ? "tweak_deinterlace":"deinterlace"); + g_string_append_printf(str, " - Deinterlace: %s", opt); + } + } + gint denoise = ghb_settings_combo_int(settings, + tweaks ? "tweak_denoise":"denoise"); + if (denoise) + { + const gchar *opt = ghb_settings_combo_option(settings, + tweaks ? "tweak_denoise":"denoise"); + g_string_append_printf(str, " - Denoise: %s", opt); + } + gint deblock = ghb_settings_get_int(settings, "deblock"); + if (deblock >= 5) + g_string_append_printf(str, " - Deblock (%d)", deblock); + if (ghb_settings_get_boolean(settings, "grayscale")) + g_string_append_printf(str, " - Grayscale"); + g_string_append_printf(str, "\n"); + + g_string_append_printf(str, "<b>Video:</b> %s, Framerate: %s, %s %d%s\n", - source_width, source_height, width, height, aspect_desc, - vcodec, fps, vq_desc, vqvalue, vq_units); + vcodec, fps, vq_desc, vqvalue, vq_units); turbo = ghb_settings_get_boolean(settings, "turbo"); if (turbo) diff --git a/gtk/src/ghb.ui b/gtk/src/ghb.ui index 4bb77a598..e64bda5d1 100644 --- a/gtk/src/ghb.ui +++ b/gtk/src/ghb.ui @@ -3948,7 +3948,7 @@ this setting.</property> <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property> <child> <object class="GtkTreeView" id="queue_list"> - <property name="width_request">840</property> + <property name="width_request">1024</property> <property name="height_request">300</property> <property name="visible">True</property> <property name="can_focus">True</property> diff --git a/gtk/src/resource_data.h b/gtk/src/resource_data.h index 490dc8bd7..479744414 100644 --- a/gtk/src/resource_data.h +++ b/gtk/src/resource_data.h @@ -6480,8 +6480,8 @@ " <child>\n" " <object class="GtkTreeView" id="queue_l" "ist">\n" -" <property name="width_request">840</" -"property>\n" +" <property name="width_request">1024<" +"/property>\n" " <property name="height_request">300<" "/property>\n" " <property name="visible">True</prope" diff --git a/gtk/src/resources.plist b/gtk/src/resources.plist index 559709c12..f4bd23c9e 100644 --- a/gtk/src/resources.plist +++ b/gtk/src/resources.plist @@ -3953,7 +3953,7 @@ this setting.</property> <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property> <child> <object class="GtkTreeView" id="queue_list"> - <property name="width_request">840</property> + <property name="width_request">1024</property> <property name="height_request">300</property> <property name="visible">True</property> <property name="can_focus">True</property> |