From b01359c9d5bbd11e26c5d00f8f8b951887f26730 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Devernay?= Date: Sun, 25 Apr 2021 19:13:20 -0700 Subject: [PATCH] ReadNode: add braw support --- Engine/EffectInstance.h | 1 + Engine/ReadNode.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Engine/EffectInstance.h b/Engine/EffectInstance.h index e3ce0f0a96..dfe5861bd3 100644 --- a/Engine/EffectInstance.h +++ b/Engine/EffectInstance.h @@ -89,6 +89,7 @@ #define PLUGINID_OFX_READPNG "fr.inria.openfx.ReadPNG" #define PLUGINID_OFX_WRITEPNG "fr.inria.openfx.WritePNG" #define PLUGINID_OFX_READPDF "fr.inria.openfx.ReadPDF" +#define PLUGINID_OFX_READBRAW "net.sf.openfx.BlackMagicRAW" #define PLUGINID_NATRON_VIEWER (NATRON_ORGANIZATION_DOMAIN_TOPLEVEL "." NATRON_ORGANIZATION_DOMAIN_SUB ".built-in.Viewer") #define PLUGINID_NATRON_DISKCACHE (NATRON_ORGANIZATION_DOMAIN_TOPLEVEL "." NATRON_ORGANIZATION_DOMAIN_SUB ".built-in.DiskCache") diff --git a/Engine/ReadNode.cpp b/Engine/ReadNode.cpp index 7cac9e145a..647a109341 100644 --- a/Engine/ReadNode.cpp +++ b/Engine/ReadNode.cpp @@ -196,7 +196,8 @@ ReadNode::isBundledReader(const std::string& pluginID, boost::iequals(pluginID, PLUGINID_OFX_READORA) || boost::iequals(pluginID, PLUGINID_OFX_READCDR) || boost::iequals(pluginID, PLUGINID_OFX_READPNG) || - boost::iequals(pluginID, PLUGINID_OFX_READPDF) ); + boost::iequals(pluginID, PLUGINID_OFX_READPDF) || + boost::iequals(pluginID, PLUGINID_OFX_READBRAW) ); } return (pluginID == PLUGINID_OFX_READOIIO || @@ -209,7 +210,8 @@ ReadNode::isBundledReader(const std::string& pluginID, pluginID == PLUGINID_OFX_READORA || pluginID == PLUGINID_OFX_READCDR || pluginID == PLUGINID_OFX_READPNG || - pluginID == PLUGINID_OFX_READPDF); + pluginID == PLUGINID_OFX_READPDF || + pluginID == PLUGINID_OFX_READBRAW); } bool