[vlc-commits] commit: Adding posterize filter to effects dialog (Branko Kokanovic )

git at videolan.org git at videolan.org
Thu Sep 16 10:10:39 CEST 2010


vlc | branch: master | Branko Kokanovic <branko.kokanovic at gmail.com> | Thu Sep 16 00:35:45 2010 +0200| [1df0fa1323fbb927ae8e869a85e2eca0a03fff0f] | committer: Jean-Baptiste Kempf 

Adding posterize filter to effects dialog

Adding posterize filter to Color fun tab of Video effects tab of Effects
and filters dialog

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/qt4/components/extended_panels.cpp |    3 ++
 modules/gui/qt4/ui/video_effects.ui            |   37 +++++++++++++++++++++++-
 2 files changed, 39 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/components/extended_panels.cpp b/modules/gui/qt4/components/extended_panels.cpp
index 8313536..b7d6e3e 100644
--- a/modules/gui/qt4/components/extended_panels.cpp
+++ b/modules/gui/qt4/components/extended_panels.cpp
@@ -138,6 +138,9 @@ ExtVideo::ExtVideo( intf_thread_t *_p_intf, QTabWidget *_parent ) :
     SETUP_VFILTER( extract )
     SETUP_VFILTER_OPTION( extractComponentText, textChanged( const QString& ) )
 
+    SETUP_VFILTER( posterize )
+    SETUP_VFILTER_OPTION( posterizeLevelSpin, valueChanged( int ) )
+
     SETUP_VFILTER( colorthres )
     SETUP_VFILTER_OPTION( colorthresColorText, textChanged( const QString& ) )
     SETUP_VFILTER_OPTION( colorthresSaturationthresSlider, valueChanged( int ) )
diff --git a/modules/gui/qt4/ui/video_effects.ui b/modules/gui/qt4/ui/video_effects.ui
index 65f52ee..193c12d 100644
--- a/modules/gui/qt4/ui/video_effects.ui
+++ b/modules/gui/qt4/ui/video_effects.ui
@@ -523,7 +523,7 @@
       </property>
      </widget>
     </item>
-    <item row="0" column="0" rowspan="2">
+    <item row="0" column="0" rowspan="3">
      <widget class="QGroupBox" name="colorthresEnable">
       <property name="title">
        <string>Color threshold</string>
@@ -580,6 +580,41 @@
       </layout>
      </widget>
     </item>
+    <item row="2" column="1">
+     <widget class="QGroupBox" name="posterizeEnable">
+      <property name="title">
+       <string>Posterize</string>
+      </property>
+      <property name="checkable">
+       <bool>true</bool>
+      </property>
+      <property name="checked">
+       <bool>false</bool>
+      </property>
+      <layout class="QGridLayout" name="gridLayout_3">
+       <item row="0" column="0">
+        <widget class="QLabel" name="label_33">
+         <property name="text">
+          <string>Posterize level</string>
+         </property>
+        </widget>
+       </item>
+       <item row="0" column="1">
+        <widget class="QSpinBox" name="posterizeLevelSpin">
+         <property name="minimum">
+          <number>2</number>
+         </property>
+         <property name="maximum">
+          <number>256</number>
+         </property>
+         <property name="value">
+          <number>3</number>
+         </property>
+        </widget>
+       </item>
+      </layout>
+     </widget>
+    </item>
    </layout>
   </widget>
   <widget class="QWidget" name="tab_7">



More information about the vlc-commits mailing list