* Replace license text in headers with SPDX identifiers. * Remove specific license info from outdated readme.txt, instead leave details to the source files. * Add list of SPDX license identifiers used, and corresponding license texts. * Update copyright dates while we're at it. Ref D14069, T95597
32 lines
600 B
C
32 lines
600 B
C
/* SPDX-License-Identifier: Apache-2.0
|
|
* Copyright 2011-2022 Blender Foundation */
|
|
|
|
#ifndef __UTIL_OPENIMAGEDENOISE_H__
|
|
#define __UTIL_OPENIMAGEDENOISE_H__
|
|
|
|
#ifdef WITH_OPENIMAGEDENOISE
|
|
# include <OpenImageDenoise/oidn.hpp>
|
|
#endif
|
|
|
|
#include "util/system.h"
|
|
|
|
CCL_NAMESPACE_BEGIN
|
|
|
|
static inline bool openimagedenoise_supported()
|
|
{
|
|
#ifdef WITH_OPENIMAGEDENOISE
|
|
# ifdef __APPLE__
|
|
/* Always supported through Accelerate framework BNNS. */
|
|
return true;
|
|
# else
|
|
return system_cpu_support_sse41();
|
|
# endif
|
|
#else
|
|
return false;
|
|
#endif
|
|
}
|
|
|
|
CCL_NAMESPACE_END
|
|
|
|
#endif /* __UTIL_OPENIMAGEDENOISE_H__ */
|