vf_unsharp: set default chroma size value to 5x5

The previous default value 0x0 was not good, since it is not even
valid.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
(cherry picked from commit 1ee2014190)
This commit is contained in:
Stefano Sabatini
2011-08-13 16:30:44 +02:00
committed by Michael Niedermayer
parent d155fdefb8
commit 8d61c68442
2 changed files with 5 additions and 5 deletions

View File

@@ -1683,7 +1683,7 @@ It accepts the following parameters:
Negative values for the amount will blur the input video, while positive Negative values for the amount will blur the input video, while positive
values will sharpen. All parameters are optional and default to the 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 @table @option
@@ -1701,11 +1701,11 @@ and 5.0, default value is 1.0.
@item chroma_msize_x @item chroma_msize_x
Set the chroma matrix horizontal size. It can be an integer between 3 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 @item chroma_msize_y
Set the chroma matrix vertical size. It can be an integer between 3 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 luma_amount @item luma_amount
Set the chroma effect strength. It can be a float number between -2.0 Set the chroma effect strength. It can be a float number between -2.0

View File

@@ -129,8 +129,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) static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
{ {
UnsharpContext *unsharp = ctx->priv; UnsharpContext *unsharp = ctx->priv;
int lmsize_x = 5, cmsize_x = 0; int lmsize_x = 5, cmsize_x = 5;
int lmsize_y = 5, cmsize_y = 0; int lmsize_y = 5, cmsize_y = 5;
double lamount = 1.0f, camount = 0.0f; double lamount = 1.0f, camount = 0.0f;
if (args) if (args)