From 1df0fa1323fbb927ae8e869a85e2eca0a03fff0f Mon Sep 17 00:00:00 2001 From: Branko Kokanovic Date: Thu, 16 Sep 2010 00:35:45 +0200 Subject: [PATCH] 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 --- .../gui/qt4/components/extended_panels.cpp | 3 ++ modules/gui/qt4/ui/video_effects.ui | 37 ++++++++++++++++++- 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/modules/gui/qt4/components/extended_panels.cpp b/modules/gui/qt4/components/extended_panels.cpp index 8313536b8c..b7d6e3effb 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 65f52eebdd..193c12d268 100644 --- a/modules/gui/qt4/ui/video_effects.ui +++ b/modules/gui/qt4/ui/video_effects.ui @@ -523,7 +523,7 @@ - + Color threshold @@ -580,6 +580,41 @@ + + + + Posterize + + + true + + + false + + + + + + Posterize level + + + + + + + 2 + + + 256 + + + 3 + + + + + + -- 2.39.2