diff options
author | Thilo Borgmann <thilo.borgmann@mail.de> | 2022-07-18 16:09:46 +0200 |
---|---|---|
committer | Thilo Borgmann <thilo.borgmann@mail.de> | 2022-07-30 13:17:28 +0200 |
commit | cf1f57443158bcbe84a213e8dc631a302993f9a2 (patch) | |
tree | 15ffa8ca7f156df27c594ec63e82139b7c4814f0 /libavfilter/vf_blurdetect.c | |
parent | 1001bdc5047ec7ed0754a2084b77637028bb82cc (diff) | |
download | ffmpeg-cf1f57443158bcbe84a213e8dc631a302993f9a2.tar.gz |
lavfi/edge_common: Templatify ff_gaussian_blur and ff_sobel
Diffstat (limited to 'libavfilter/vf_blurdetect.c')
-rw-r--r-- | libavfilter/vf_blurdetect.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/vf_blurdetect.c b/libavfilter/vf_blurdetect.c index 0e08ba96de..db06efcce7 100644 --- a/libavfilter/vf_blurdetect.c +++ b/libavfilter/vf_blurdetect.c @@ -283,12 +283,12 @@ static int blurdetect_filter_frame(AVFilterLink *inlink, AVFrame *in) nplanes++; // gaussian filter to reduce noise - ff_gaussian_blur(w, h, - filterbuf, w, - in->data[plane], in->linesize[plane]); + ff_gaussian_blur_8(w, h, + filterbuf, w, + in->data[plane], in->linesize[plane], 1); // compute the 16-bits gradients and directions for the next step - ff_sobel(w, h, gradients, w, directions, w, filterbuf, w); + ff_sobel_8(w, h, gradients, w, directions, w, filterbuf, w, 1); // non_maximum_suppression() will actually keep & clip what's necessary and // ignore the rest, so we need a clean output buffer |