OSDN Git Service

LinGui: Add filters line to queue description. Improve framerate description
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Wed, 24 Sep 2008 17:55:01 +0000 (17:55 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Wed, 24 Sep 2008 17:55:01 +0000 (17:55 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@1757 b64f7644-9d1e-0410-96f1-a4d463321fa5

gtk/src/callbacks.c
gtk/src/ghb.ui
gtk/src/resource_data.h
gtk/src/resources.plist

index a1babd4..66c1a46 100644 (file)
@@ -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)
index 4bb77a5..e64bda5 100644 (file)
@@ -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>
index 490dc8b..4797444 100644 (file)
 "            &lt;child&gt;\n"
 "              &lt;object class=&quot;GtkTreeView&quot; id=&quot;queue_l"
 "ist&quot;&gt;\n"
-"                &lt;property name=&quot;width_request&quot;&gt;840&lt;/"
-"property&gt;\n"
+"                &lt;property name=&quot;width_request&quot;&gt;1024&lt;"
+"/property&gt;\n"
 "                &lt;property name=&quot;height_request&quot;&gt;300&lt;"
 "/property&gt;\n"
 "                &lt;property name=&quot;visible&quot;&gt;True&lt;/prope"
index 559709c..f4bd23c 100644 (file)
@@ -3953,7 +3953,7 @@ this setting.&lt;/property&gt;
             &lt;property name=&quot;vscrollbar_policy&quot;&gt;GTK_POLICY_AUTOMATIC&lt;/property&gt;
             &lt;child&gt;
               &lt;object class=&quot;GtkTreeView&quot; id=&quot;queue_list&quot;&gt;
-                &lt;property name=&quot;width_request&quot;&gt;840&lt;/property&gt;
+                &lt;property name=&quot;width_request&quot;&gt;1024&lt;/property&gt;
                 &lt;property name=&quot;height_request&quot;&gt;300&lt;/property&gt;
                 &lt;property name=&quot;visible&quot;&gt;True&lt;/property&gt;
                 &lt;property name=&quot;can_focus&quot;&gt;True&lt;/property&gt;