[vlc-commits] Qt: PostProc setter helper

Jean-Baptiste Kempf git at videolan.org
Fri Aug 15 09:56:40 CEST 2014


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Aug 15 07:53:57 2014 +0200| [cca1c1efc30abed41eba0f3b3091735d3cd2e46d] | committer: Jean-Baptiste Kempf

Qt: PostProc setter helper

Ref #11613

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cca1c1efc30abed41eba0f3b3091735d3cd2e46d
---

 modules/gui/qt4/components/extended_panels.cpp |   15 +++++++++++++++
 modules/gui/qt4/components/extended_panels.hpp |    1 +
 2 files changed, 16 insertions(+)

diff --git a/modules/gui/qt4/components/extended_panels.cpp b/modules/gui/qt4/components/extended_panels.cpp
index 7847442..e3120a0 100644
--- a/modules/gui/qt4/components/extended_panels.cpp
+++ b/modules/gui/qt4/components/extended_panels.cpp
@@ -698,6 +698,21 @@ void ExtVideo::updateFilterOptions()
     setFilterOption( p_intf, qtu( module ), qtu( option ), i_int, f_float, val);
 }
 
+void ExtVideo::setPostprocessing( struct intf_thread_t *p_intf, int q)
+{
+    const char *psz_name = "postproc";
+
+    if( q == -1 )
+    {
+        ChangeVFiltersString( p_intf, psz_name, false );
+    }
+    else
+    {
+        ChangeVFiltersString( p_intf, psz_name, false );
+        setFilterOption( p_intf, "postproc", "postproc-q", q, -1, QString() );
+    }
+}
+
 /**********************************************************************
  * v4l2 controls
  **********************************************************************/
diff --git a/modules/gui/qt4/components/extended_panels.hpp b/modules/gui/qt4/components/extended_panels.hpp
index 2e20830..9659a61 100644
--- a/modules/gui/qt4/components/extended_panels.hpp
+++ b/modules/gui/qt4/components/extended_panels.hpp
@@ -46,6 +46,7 @@ class ExtVideo: public QObject
     friend class ExtendedDialog;
 public:
     ExtVideo( struct intf_thread_t *, QTabWidget * );
+    static void setPostprocessing( struct intf_thread_t *, int q);
 private:
     Ui::ExtVideoWidget ui;
     QSignalMapper* filterMapper;



More information about the vlc-commits mailing list