Closed ghost closed 6 years ago
When Slimit < 0, the sharpdiff is normalized to 8-bit range before doing pow(diff,1/abs(limit)) So SLIM used don't need to scale by bit depth when Slimit < 0 SLIM = scale(Slimit, peak) if Slimit >= 0 else abs(Slimit) should solve this problem.
Slimit < 0
pow(diff,1/abs(limit))
SLIM
SLIM = scale(Slimit, peak) if Slimit >= 0 else abs(Slimit)
https://github.com/WolframRhodium/muvsfunc/commit/d181c4b44659975ecb6b7b829f21abfbd4c4ba06
thx
Uh... A copy-paste error here, your scale function is scale(value, bits), also peak is undefined in your main function (though not needed)
scale(value, bits)
peak
When
Slimit < 0
, the sharpdiff is normalized to 8-bit range before doingpow(diff,1/abs(limit))
SoSLIM
used don't need to scale by bit depth whenSlimit < 0
SLIM = scale(Slimit, peak) if Slimit >= 0 else abs(Slimit)
should solve this problem.