]> git.sesse.net Git - vlc/commitdiff
Adding posterize filter to effects dialog
authorBranko Kokanovic <branko.kokanovic@gmail.com>
Wed, 15 Sep 2010 22:35:45 +0000 (00:35 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 16 Sep 2010 08:10:21 +0000 (10:10 +0200)
Adding posterize filter to Color fun tab of Video effects tab of Effects
and filters dialog

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/ui/video_effects.ui

index 8313536b8cafce6038b1c3a8e6a1dbc13433d3b5..b7d6e3effb8096917a5b4a6ce00ce94467defb7c 100644 (file)
@@ -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 ) )
index 65f52eebddd7cad19a16091db2c05183bde3d8dd..193c12d26896175a03f4587975c420311ef5931b 100644 (file)
       </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>
       </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">