Upgrade OpenImageDenoise to v1.1.0

Upgrade OIDN to 1.1.0, the latest stable version that doesn't need
the ISPC compiler.

Documented the changes made during the removal of TBB and added a patch
file for them.
This commit is contained in:
jfons 2020-06-06 19:03:16 +02:00
parent dc67d0737b
commit dd79d1ce78
11 changed files with 634 additions and 29 deletions

View file

@ -24,9 +24,12 @@ namespace oidn {
float AutoexposureNode::autoexposure(const Image& color)
{
assert(color.format == Format::Float3);
return 1.0f;
// -- GODOT start --
// We don't want to mess with TTB and we don't use autoexposure, so we disable this code
#if 0
// -- GODOT end --
/*constexpr float key = 0.18f;
constexpr float key = 0.18f;
constexpr float eps = 1e-8f;
constexpr int K = 16; // downsampling amount
@ -89,7 +92,11 @@ namespace oidn {
tbb::static_partitioner()
);
return (sum.second > 0) ? (key / exp2(sum.first / float(sum.second))) : 1.f;*/
return (sum.second > 0) ? (key / exp2(sum.first / float(sum.second))) : 1.f;
// -- GODOT start --
#endif
return 1.0;
// -- GODOT end --
}
} // namespace oidn