Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-05 14:14:37 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-06 13:05:44 +0300
commit2c0da4a3db96d4aeeeec1cfba4a0a9f5bf0fa970 (patch)
treecf6ee2d2b9b123035bdfbfa7936713b48a5a4f65 /intern/opencolorio/ocio_capi.cc
parent8794779a2dd5744e9fd069361d3774d2b546fda1 (diff)
Color management: add functions to detect scene linear and sRGB color spaces
Same as the ones in Cycles, but intended for GPU textures.
Diffstat (limited to 'intern/opencolorio/ocio_capi.cc')
-rw-r--r--intern/opencolorio/ocio_capi.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/intern/opencolorio/ocio_capi.cc b/intern/opencolorio/ocio_capi.cc
index 530d1fb8a27..d259ba73e45 100644
--- a/intern/opencolorio/ocio_capi.cc
+++ b/intern/opencolorio/ocio_capi.cc
@@ -174,6 +174,14 @@ int OCIO_colorSpaceIsData(OCIO_ConstColorSpaceRcPtr *cs)
return impl->colorSpaceIsData(cs);
}
+void OCIO_colorSpaceIsBuiltin(OCIO_ConstConfigRcPtr *config,
+ OCIO_ConstColorSpaceRcPtr *cs,
+ bool *is_scene_linear,
+ bool *is_srgb)
+{
+ impl->colorSpaceIsBuiltin(config, cs, *is_scene_linear, *is_srgb);
+}
+
void OCIO_colorSpaceRelease(OCIO_ConstColorSpaceRcPtr *cs)
{
impl->colorSpaceRelease(cs);