media node upgrades to reference pixel format
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user