vlc/vlc-2.2 | branch: master | Jean-Baptiste Kempf <j...@videolan.org> | Fri Aug 15 08:05:42 2014 +0200| [94c56b98fe4900cfe3ff2a0e7d254e074617f749] | committer: Jean-Baptiste Kempf
Qt: PostProc getter helper Ref #11613 (cherry picked from commit 36f457d0ad9bb8dabfac5a51328799c48ed33a9f) Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org> > http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=94c56b98fe4900cfe3ff2a0e7d254e074617f749 --- 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 c87fcc4..4ee8eed 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; _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits