lavfi/nlmeans: move final weighted averaging out of nlmeans_plane
authorClément Bœsch <u@pkh.me>
Sun, 6 May 2018 11:26:45 +0000 (13:26 +0200)
committerClément Bœsch <u@pkh.me>
Tue, 8 May 2018 08:28:06 +0000 (10:28 +0200)
commit34e1e53e28856af9b06460d0c061e7623d73dd5a
treec351982217bd82b0207c7bf061d5472f4d2f71d1
parent667503ef6879926834e73357cfbdf2a539327347
lavfi/nlmeans: move final weighted averaging out of nlmeans_plane

This helps figuring out where the filter is slow:

  70.53%  ffmpeg_g  ffmpeg_g          [.] nlmeans_slice
  25.73%  ffmpeg_g  ffmpeg_g          [.] compute_safe_ssd_integral_image_c
   1.74%  ffmpeg_g  ffmpeg_g          [.] compute_unsafe_ssd_integral_image
   0.82%  ffmpeg_g  ffmpeg_g          [.] ff_mjpeg_decode_sos
   0.51%  ffmpeg_g  [unknown]         [k] 0xffffffff91800a80
   0.24%  ffmpeg_g  ffmpeg_g          [.] weight_averages

(Tested with a large image that takes several seconds to process)

Since this function is irrelevant speed wise, the file's TODO is
updated.
libavfilter/vf_nlmeans.c