[vlc-commits] Qt: PostProc getter 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 08:05:42 2014 +0200| [36f457d0ad9bb8dabfac5a51328799c48ed33a9f] | committer: Jean-Baptiste Kempf

Qt: PostProc getter helper

Ref #11613

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

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

diff --git a/modules/gui/qt4/components/extended_panels.cpp b/modules/gui/qt4/components/extended_panels.cpp
index e3120a0..924f890 100644
--- a/modules/gui/qt4/components/extended_panels.cpp
+++ b/modules/gui/qt4/components/extended_panels.cpp
@@ -698,6 +698,18 @@ void ExtVideo::updateFilterOptions()
     setFilterOption( p_intf, qtu( module ), qtu( option ), i_int, f_float, val);
 }
 
+int ExtVideo::getPostprocessing( struct intf_thread_t *p_intf)
+{
+    char *psz_config = config_GetPsz(p_intf, "video-filter");
+    int i_q = -1;
+    if (psz_config) {
+        if (strstr(psz_config, "postproc"))
+            i_q = config_GetInt(p_intf, "postproc-q");
+        free(psz_config);
+    }
+    return i_q;
+}
+
 void ExtVideo::setPostprocessing( struct intf_thread_t *p_intf, int q)
 {
     const char *psz_name = "postproc";
diff --git a/modules/gui/qt4/components/extended_panels.hpp b/modules/gui/qt4/components/extended_panels.hpp
index 9659a61..b4c71ea 100644
--- a/modules/gui/qt4/components/extended_panels.hpp
+++ b/modules/gui/qt4/components/extended_panels.hpp
@@ -47,6 +47,7 @@ class ExtVideo: public QObject
 public:
     ExtVideo( struct intf_thread_t *, QTabWidget * );
     static void setPostprocessing( struct intf_thread_t *, int q);
+    static int getPostprocessing( struct intf_thread_t *p_intf);
 private:
     Ui::ExtVideoWidget ui;
     QSignalMapper* filterMapper;



More information about the vlc-commits mailing list