We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cafceb commit 4a3b5ceCopy full SHA for 4a3b5ce
libulc/ulcEncoder_Psycho.h
@@ -95,7 +95,7 @@ static inline void Block_Transform_CalculatePsychoacoustics(
95
//! become way too low, and brightness degrades.
96
v = BufferAmp2[n] * Norm;
97
float ve = v * (1.0f - 0x1.6B5434p-2f*ThisFreqWeightTable[n]); //! 0x1.6B5434p-2 = 10^(-9/20)
98
- float vw = 0x1.0p16f * sqrtf(v) * (1.0f - ThisFreqWeightTable[n]);
+ float vw = 0x1.0p16f * sqrtf(ve);
99
EnergyNp[n] = (ve <= 1.0f) ? 0 : (uint32_t)(logf(ve) * LogScale);
100
Weight [n] = (vw <= 1.0f) ? 1 : (uint32_t)vw;
101
}
0 commit comments