dfttest icon indicating copy to clipboard operation
dfttest copied to clipboard

Planes in getNoiseSpectrum are wrongly assigned

Open erazortt opened this issue 3 years ago • 2 comments

The function getNoiseSpectrum expects the planes as a number: 0 for Y, 1 for U, 2 for V

However avisynth.h assignes the planes one off: PLANAR_Y=1<<0, PLANAR_U=1<<1, PLANAR_V=1<<2,

This yields the following error when using nfile or nstring with 0 as a plane: GetPlaneHeightSubsampling called with supported plane.

On top of all, getNoiseSpectrum does not allow the user to set the plane to 3 so currently the V plane cannot be accessed here.

erazortt avatar Jan 16 '22 15:01 erazortt

That's a issue, I would like to know if this can be fix?

Globefishp avatar Oct 21 '22 19:10 Globefishp

Following this post(https://forum.doom9.org/showthread.php?t=171385), I modified the "getNoiseSpectrum" function in dfttest.cpp and compiled it with VS2022. In my test, no significant performance change due to different compile tools (original VS2019). I would like to share this file here. dfttest.zip

Globefishp avatar Oct 22 '22 15:10 Globefishp