Blender  V3.3
openimagedenoise.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: Apache-2.0
2  * Copyright 2011-2022 Blender Foundation */
3 
4 #ifndef __UTIL_OPENIMAGEDENOISE_H__
5 #define __UTIL_OPENIMAGEDENOISE_H__
6 
7 #ifdef WITH_OPENIMAGEDENOISE
8 # include <OpenImageDenoise/oidn.hpp>
9 #endif
10 
11 #include "util/system.h"
12 
14 
15 static inline bool openimagedenoise_supported()
16 {
17 #ifdef WITH_OPENIMAGEDENOISE
18 # ifdef __APPLE__
19  /* Always supported through Accelerate framework BNNS. */
20  return true;
21 # else
22  return system_cpu_support_sse41();
23 # endif
24 #else
25  return false;
26 #endif
27 }
28 
30 
31 #endif /* __UTIL_OPENIMAGEDENOISE_H__ */
#define CCL_NAMESPACE_END
Definition: cuda/compat.h:9
static CCL_NAMESPACE_BEGIN bool openimagedenoise_supported()
bool system_cpu_support_sse41()
Definition: system.cpp:242