Add inline for float16 compression and add code reference note

This commit is contained in:
Wojtek Figat
2021-01-12 19:05:17 +01:00
parent fd268f4e15
commit 89f25516fc
5 changed files with 60 additions and 69 deletions

View File

@@ -240,7 +240,7 @@ float IESLoader::ExtractInR16(Array<byte>& output)
float result = 0.0f;
for (uint32 i = 0; i < hAnglesCount; i++)
result += InterpolateBilinear(static_cast<float>(i), v);
*out++ = ConvertFloatToHalf(invMaxValue * result / (float)hAnglesCount);
*out++ = Float16Compressor::Compress(invMaxValue * result / (float)hAnglesCount);
}
}