OSDN Git Service

libavfilter/vf_owdenoise.c: skip processing when strength is 0
authorYuuki Galaxy <galaxy001@gmail.com>
Tue, 12 Apr 2016 14:53:58 +0000 (22:53 +0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 12 Apr 2016 20:57:32 +0000 (22:57 +0200)
commitaf5419f91b06cf85836ce9c8bc9efc965af79b48
treecd2f141e020fb260fd57aa6fcc19e8ba5e04224a
parentac07e57c39de856cb88ee6ff0669da3ced2fc694
libavfilter/vf_owdenoise.c: skip processing when strength is 0

It is practical to de-noise only on luma while keeping chroma unchanged.

However, libavfilter/vf_owdenoise.c always do the Wavelet transform/retransform on all 3 channels without check whether chroma_strength is 0.

Thus I make this patch. De-noise on Y only for yuv420 is now 1.5 times faster.

Signed-off-by: Yuuki Galaxy <galaxy001@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/vf_owdenoise.c