summaryrefslogtreecommitdiff
path: root/libavfilter/vf_edgedetect.c
diff options
context:
space:
mode:
authorThilo Borgmann <thilo.borgmann@mail.de>2022-07-18 16:09:46 +0200
committerThilo Borgmann <thilo.borgmann@mail.de>2022-07-30 13:17:28 +0200
commitcf1f57443158bcbe84a213e8dc631a302993f9a2 (patch)
tree15ffa8ca7f156df27c594ec63e82139b7c4814f0 /libavfilter/vf_edgedetect.c
parent1001bdc5047ec7ed0754a2084b77637028bb82cc (diff)
lavfi/edge_common: Templatify ff_gaussian_blur and ff_sobel
Diffstat (limited to 'libavfilter/vf_edgedetect.c')
-rw-r--r--libavfilter/vf_edgedetect.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libavfilter/vf_edgedetect.c b/libavfilter/vf_edgedetect.c
index 90390ceb3e..603f06f141 100644
--- a/libavfilter/vf_edgedetect.c
+++ b/libavfilter/vf_edgedetect.c
@@ -191,15 +191,15 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
}
/* gaussian filter to reduce noise */
- ff_gaussian_blur(width, height,
- tmpbuf, width,
- in->data[p], in->linesize[p]);
+ ff_gaussian_blur_8(width, height,
+ tmpbuf, width,
+ in->data[p], in->linesize[p], 1);
/* compute the 16-bits gradients and directions for the next step */
- ff_sobel(width, height,
- gradients, width,
- directions,width,
- tmpbuf, width);
+ ff_sobel_8(width, height,
+ gradients, width,
+ directions,width,
+ tmpbuf, width, 1);
/* non_maximum_suppression() will actually keep & clip what's necessary and
* ignore the rest, so we need a clean output buffer */