mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
parent
f069a9c2a6
commit
de598f82f8
@ -155,7 +155,8 @@ static void gaussian_blur(AVFilterContext *ctx, int w, int h,
|
||||
}
|
||||
for (j = 2; j < h - 2; j++) {
|
||||
dst[0] = src[0];
|
||||
dst[1] = src[1];
|
||||
if (w > 1)
|
||||
dst[1] = src[1];
|
||||
for (i = 2; i < w - 2; i++) {
|
||||
/* Gaussian mask of size 5x5 with sigma = 1.4 */
|
||||
dst[i] = ((src[-2*src_linesize + i-2] + src[2*src_linesize + i-2]) * 2
|
||||
@ -176,8 +177,10 @@ static void gaussian_blur(AVFilterContext *ctx, int w, int h,
|
||||
+ src[i+1] * 12
|
||||
+ src[i+2] * 5) / 159;
|
||||
}
|
||||
dst[i ] = src[i ];
|
||||
dst[i + 1] = src[i + 1];
|
||||
if (w > 2)
|
||||
dst[i ] = src[i ];
|
||||
if (w > 3)
|
||||
dst[i + 1] = src[i + 1];
|
||||
|
||||
dst += dst_linesize;
|
||||
src += src_linesize;
|
||||
|
Loading…
Reference in New Issue
Block a user