ffmpeg | branch: master | Paul B Mahol <[email protected]> | Sun Jun  7 13:12:34 
2020 +0200| [6c57b0d63ac9b7a14012b8a00650d4fafbc18dc5] | committer: Paul B Mahol

avfilter/vf_vaguedenoiser: remove excessive code from soft thresholding

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6c57b0d63ac9b7a14012b8a00650d4fafbc18dc5
---

 libavfilter/vf_vaguedenoiser.c | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/libavfilter/vf_vaguedenoiser.c b/libavfilter/vf_vaguedenoiser.c
index 023bd5d16a..e3d4d30f25 100644
--- a/libavfilter/vf_vaguedenoiser.c
+++ b/libavfilter/vf_vaguedenoiser.c
@@ -352,18 +352,10 @@ static void soft_thresholding(float *block, const int 
width, const int height, c
 {
     const float frac = 1.f - percent * 0.01f;
     const float shift = threshold * 0.01f * percent;
-    int w = width;
-    int h = height;
-    int y, x, l;
-
-    for (l = 0; l < nsteps; l++) {
-        w = (w + 1) >> 1;
-        h = (h + 1) >> 1;
-    }
+    int y, x;
 
     for (y = 0; y < height; y++) {
-        const int x0 = (y < h) ? w : 0;
-        for (x = x0; x < width; x++) {
+        for (x = 0; x < width; x++) {
             const float temp = FFABS(block[x]);
             if (temp <= threshold)
                 block[x] *= frac;

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to