Skip to content

Commit

Permalink
Update to latest spec
Browse files Browse the repository at this point in the history
Signed-off-by: Gary Oberbrunner <[email protected]>
  • Loading branch information
garyo committed Jul 12, 2024
1 parent 6e95184 commit 63d3227
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Examples/ColourSpace/colourspace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "ofxMemory.h"
#include "ofxMultiThread.h"
#include "ofxColour.h"
#include "ofxColourspaceList.h"
#include "ofx-native-v1.5_aces-v1.3_ocio-v2.3.h"

#include "../include/ofxUtilities.H" // example support utils

Expand Down Expand Up @@ -675,12 +675,12 @@ describe(OfxImageEffectHandle effect)
gPropHost->propSetString(effectProps, kOfxImageEffectPropSupportedContexts, 1, kOfxImageEffectContextGeneral);

if (gHostColourManagementStyle != kOfxImageEffectPropColourManagementNone) {
// host supports colour management, either OCIO or Native.
// OCIO implies native, so here we can assume it supports native.
// Tell it we support native.
// host supports colour management, either OCIO or Core (or others; see the spec).
// OCIO implies core, so here we can assume it supports Core.
// Tell it we support Core.
stat = gPropHost->propSetString(effectProps,
kOfxImageEffectPropColourManagementStyle, 0,
kOfxImageEffectPropColourManagementNative);
kOfxImageEffectPropColourManagementCore);
if (stat != kOfxStatOK) {
spdlog::error("setting kOfxImageEffectPropColourManagementStyle prop: stat={}", errMsg(stat));
}
Expand Down

0 comments on commit 63d3227

Please sign in to comment.