]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/vf_unsharp: limit matrix size in either direction to 23
authorPaul B Mahol <onemda@gmail.com>
Sat, 17 Sep 2016 11:55:06 +0000 (13:55 +0200)
committerPaul B Mahol <onemda@gmail.com>
Sat, 17 Sep 2016 11:57:45 +0000 (13:57 +0200)
Anything bigger is not supported anyway.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
doc/filters.texi
libavfilter/vf_unsharp.c

index c7a015b2ed12a9f0820a3775866bf72f6d003793..a6f36749b9c2aadc7777c49caf9d32823e9baf81 100644 (file)
@@ -13434,11 +13434,11 @@ It accepts the following parameters:
 @table @option
 @item luma_msize_x, lx
 Set the luma matrix horizontal size. It must be an odd integer between
-3 and 63. The default value is 5.
+3 and 23. The default value is 5.
 
 @item luma_msize_y, ly
 Set the luma matrix vertical size. It must be an odd integer between 3
-and 63. The default value is 5.
+and 23. The default value is 5.
 
 @item luma_amount, la
 Set the luma effect strength. It must be a floating point number, reasonable
@@ -13451,11 +13451,11 @@ Default value is 1.0.
 
 @item chroma_msize_x, cx
 Set the chroma matrix horizontal size. It must be an odd integer
-between 3 and 63. The default value is 5.
+between 3 and 23. The default value is 5.
 
 @item chroma_msize_y, cy
 Set the chroma matrix vertical size. It must be an odd integer
-between 3 and 63. The default value is 5.
+between 3 and 23. The default value is 5.
 
 @item chroma_amount, ca
 Set the chroma effect strength. It must be a floating point number, reasonable
index aea98509ae85a4fa3dcca3f8e9f6a6c22aac6193..7c600c91c1c096138e9cd27f797f04db6538d33f 100644 (file)
@@ -266,7 +266,7 @@ end:
 #define OFFSET(x) offsetof(UnsharpContext, x)
 #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
 #define MIN_SIZE 3
-#define MAX_SIZE 63
+#define MAX_SIZE 23
 static const AVOption unsharp_options[] = {
     { "luma_msize_x",   "set luma matrix horizontal size",   OFFSET(lmsize_x), AV_OPT_TYPE_INT,   { .i64 = 5 }, MIN_SIZE, MAX_SIZE, FLAGS },
     { "lx",             "set luma matrix horizontal size",   OFFSET(lmsize_x), AV_OPT_TYPE_INT,   { .i64 = 5 }, MIN_SIZE, MAX_SIZE, FLAGS },