Blender V4.3
openimageio_api.cpp
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2013 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#include "openimageio_api.h"
10
11#include <OpenImageIO/imageio.h>
12
13#include "BLI_threads.h"
14
15OIIO_NAMESPACE_USING
16
17extern "C" {
18
20{
21 /* Make OIIO thread pool follow Blender number of threads override. */
22 const int threads_override = BLI_system_num_threads_override_get();
23 if (threads_override) {
24 OIIO::attribute("threads", threads_override);
25 }
26
27 /* As of OpenEXR 3.2.1 there are still issues related to the use of OpenEXR Core. */
28 OIIO::attribute("openexr:core", 0);
29}
30
32{
33 return openimageio_version();
34}
35
36} /* extern "C" */
int BLI_system_num_threads_override_get(void)
Definition threads.cc:294
OIIO_NAMESPACE_USING void OIIO_init()
int OIIO_getVersionHex()