[vlc-commits] Qt: PostProc setter helper
Jean-Baptiste Kempf
git at videolan.org
Fri Aug 15 20:39:27 CEST 2014
vlc/vlc-2.2 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Aug 15 07:53:57 2014 +0200| [fa439d80472d4a4b758d58d9cd8701aa776ee9bb] | committer: Jean-Baptiste Kempf
Qt: PostProc setter helper
Ref #11613
(cherry picked from commit cca1c1efc30abed41eba0f3b3091735d3cd2e46d)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=fa439d80472d4a4b758d58d9cd8701aa776ee9bb
---
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 c579732..c87fcc4 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