[vlc-commits] Add ranges to Panoramix

Kaarlo Raiha git at videolan.org
Sun Apr 8 19:25:13 CEST 2012


vlc | branch: master | Kaarlo Raiha <kaarlo.raiha at gmail.com> | Sat Apr  7 22:55:09 2012 +0300| [ab01c5b58302503e86c8c7418cc6902c602de564] | committer: Jean-Baptiste Kempf

Add ranges to Panoramix

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

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

 modules/video_filter/panoramix.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/modules/video_filter/panoramix.c b/modules/video_filter/panoramix.c
index 11160c9..e8e8664 100644
--- a/modules/video_filter/panoramix.c
+++ b/modules/video_filter/panoramix.c
@@ -51,6 +51,9 @@
 #   endif
 #endif
 
+#define ROW_MAX (15)
+#define COL_MAX (15)
+
 /*****************************************************************************
  * Module descriptor
  *****************************************************************************/
@@ -83,7 +86,9 @@ vlc_module_begin()
     set_subcategory( SUBCAT_VIDEO_VFILTER )
 
     add_integer( CFG_PREFIX "cols", -1, COLS_TEXT, COLS_LONGTEXT, true )
+    change_integer_range( -1, COL_MAX )
     add_integer( CFG_PREFIX "rows", -1, ROWS_TEXT, ROWS_LONGTEXT, true )
+    change_integer_range( -1, ROW_MAX )
 
 #ifdef OVERLAP
 #define LENGTH_TEXT N_("length of the overlapping area (in %)")
@@ -191,9 +196,6 @@ static const char *const ppsz_filter_options[] = {
     NULL
 };
 
-#define ROW_MAX (15)
-#define COL_MAX (15)
-
 #define ACCURACY 1000
 
 /* */



More information about the vlc-commits mailing list