Obtaining the sequence and clip color spaces using the Premiere Pro Effect SDK
Hi community,
I'd like my effect to know which color spaces both the clip (if applied to a clip) and sequence are set up as - eg. Rec709, HLG or PQ. Something like the ColorSpaceRec struct used by importers, exporters and transmitters would be perfect but I haven't encountered any API like it for effects searching through the SDK headers.
The furthest I've gotten so far is getting an "opaque" color space ID for the sequence in the render callback which I can see does change based the sequence's color space setting in Premiere, only I don't know how to get anything meaningful from that opaque ID:
AEFX_SuiteScoper<PF_UtilitySuite4> utilitySuite(inData, kPFUtilitySuite, kPFUtilitySuiteVersion4, outData);
AEFX_SuiteScoper<PrSDKSequenceInfoSuite> infoSuite(inData, kPrSDKSequenceInfoSuite, kPrSDKSequenceInfoSuiteVersion, outData);
PrTimelineID timelineID;
PrSDKColorSpaceID colourSpaceID;
utilitySuite->GetContainingTimelineID(inData->effect_ref, &timelineID);
infoSuite->GetWorkingColorSpace(timelineID, &colourSpaceID);
Any clues would be appreciated!
