[vlc-devel] [PATCH 1/2] Qt: Add Anaglyph 3D video filter to effects dialog.

Zoran Turalija zoran.turalija at gmail.com
Thu Aug 23 15:44:38 CEST 2012


Add new option in Tools/Effects and Filters/Video Effects/Advanced GUI
to toggle on/off Anaglyph 3D video filter.
---
 modules/gui/qt4/components/extended_panels.cpp |    5 ++++-
 modules/gui/qt4/ui/video_effects.ui            |    7 +++++++
 2 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/components/extended_panels.cpp b/modules/gui/qt4/components/extended_panels.cpp
index 719318c..6dda355 100644
--- a/modules/gui/qt4/components/extended_panels.cpp
+++ b/modules/gui/qt4/components/extended_panels.cpp
@@ -247,6 +247,8 @@ ExtVideo::ExtVideo( intf_thread_t *_p_intf, QTabWidget *_parent ) :
         _parent->removeTab( _parent->indexOf( ui.tab_atmo ) );
     }
 
+    SETUP_VFILTER( anaglyph )
+
 #undef SETUP_VFILTER
 #undef SETUP_VFILTER_OPTION
 
@@ -685,7 +687,8 @@ void ExtVideo::gotoConf( QObject* src )
     SHOWCONF( "puzzle" );
     SHOWCONF( "wall" );
     SHOWCONF( "gradient" );
-    SHOWCONF( "colorthres" )
+    SHOWCONF( "colorthres" );
+    SHOWCONF( "anaglyph" )
 }
 #endif
 
diff --git a/modules/gui/qt4/ui/video_effects.ui b/modules/gui/qt4/ui/video_effects.ui
index d69381f..2d21e43 100644
--- a/modules/gui/qt4/ui/video_effects.ui
+++ b/modules/gui/qt4/ui/video_effects.ui
@@ -1785,6 +1785,13 @@
       </property>
      </widget>
     </item>
+    <item row="8" column="2">
+     <widget class="QCheckBox" name="anaglyphEnable">
+      <property name="text">
+       <string>Anaglyph 3D</string>
+      </property>
+     </widget>
+    </item>
    </layout>
   </widget>
  </widget>
-- 
1.7.5.4


-- 
Kind regards,
Zoran Turalija



More information about the vlc-devel mailing list