media node upgrades to reference pixel format

This commit is contained in:
itsmattkc
2019-08-29 12:30:42 +10:00
parent 7dc2290496
commit deff114241
21 changed files with 574 additions and 197 deletions
+8 -3
View File
@@ -2,13 +2,13 @@
const int kRGBAChannels = 4;
ColorService::ColorService()
ColorService::ColorService(const char* source_space, const char* dest_space)
{
// FIXME: Hardcoded values for testing purposes
OCIO::ConstConfigRcPtr config = OCIO::Config::CreateFromFile("/run/media/matt/Home/OpenColorIO/ocio.configs.0.7v4/nuke-default/config.ocio");
processor = config->getProcessor("srgb",
OCIO::ROLE_SCENE_LINEAR);
processor = config->getProcessor(source_space,
dest_space);
}
void ColorService::ConvertFrame(FramePtr f)
@@ -17,3 +17,8 @@ void ColorService::ConvertFrame(FramePtr f)
processor->apply(img);
}
OpenColorIO::v1::ConstProcessorRcPtr ColorService::GetProcessor()
{
return processor;
}