summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-08-13 16:30:44 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-08-14 16:29:44 +0200
commitb854c2a709866d30a21592b580c4a95d1eb3a368 (patch)
tree161f0ce41743b3e4f64f56804cc1bae0a41d1f67
parent63b61d55f9592e61cc8f7d973482c1120e0dc987 (diff)
vf_unsharp: set default chroma size value to 5x5
The previous default value 0x0 was not good, since it is not even valid.
-rw-r--r--doc/filters.texi6
-rw-r--r--libavfilter/vf_unsharp.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index 6eb1970238..73e2ac8fb8 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -1850,7 +1850,7 @@ It accepts the following parameters:
Negative values for the amount will blur the input video, while positive
values will sharpen. All parameters are optional and default to the
-equivalent of the string '5:5:1.0:0:0:0.0'.
+equivalent of the string '5:5:1.0:5:5:0.0'.
@table @option
@@ -1868,11 +1868,11 @@ and 5.0, default value is 1.0.
@item chroma_msize_x
Set the chroma matrix horizontal size. It can be an integer between 3
-and 13, default value is 0.
+and 13, default value is 5.
@item chroma_msize_y
Set the chroma matrix vertical size. It can be an integer between 3
-and 13, default value is 0.
+and 13, default value is 5.
@item chroma_amount
Set the chroma effect strength. It can be a float number between -2.0
diff --git a/libavfilter/vf_unsharp.c b/libavfilter/vf_unsharp.c
index ce728283d0..bd78ade39c 100644
--- a/libavfilter/vf_unsharp.c
+++ b/libavfilter/vf_unsharp.c
@@ -132,8 +132,8 @@ static void set_filter_param(FilterParam *fp, int msize_x, int msize_y, double a
static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
{
UnsharpContext *unsharp = ctx->priv;
- int lmsize_x = 5, cmsize_x = 0;
- int lmsize_y = 5, cmsize_y = 0;
+ int lmsize_x = 5, cmsize_x = 5;
+ int lmsize_y = 5, cmsize_y = 5;
double lamount = 1.0f, camount = 0.0f;
if (args)