| 177 | } |
| 178 | |
| 179 | bool |
| 180 | ReadNode::isBundledReader(const std::string& pluginID, |
| 181 | bool wasProjectCreatedWithLowerCaseIDs) |
| 182 | { |
| 183 | if (wasProjectCreatedWithLowerCaseIDs) { |
| 184 | // Natron 1.x has plugin ids stored in lowercase |
| 185 | return ( StrUtils::iequals(pluginID, PLUGINID_OFX_READOIIO) || |
| 186 | StrUtils::iequals(pluginID, PLUGINID_OFX_READFFMPEG) || |
| 187 | StrUtils::iequals(pluginID, PLUGINID_OFX_READPFM) || |
| 188 | StrUtils::iequals(pluginID, PLUGINID_OFX_READPSD) || |
| 189 | StrUtils::iequals(pluginID, PLUGINID_OFX_READKRITA) || |
| 190 | StrUtils::iequals(pluginID, PLUGINID_OFX_READSVG) || |
| 191 | StrUtils::iequals(pluginID, PLUGINID_OFX_READMISC) || |
| 192 | StrUtils::iequals(pluginID, PLUGINID_OFX_READORA) || |
| 193 | StrUtils::iequals(pluginID, PLUGINID_OFX_READCDR) || |
| 194 | StrUtils::iequals(pluginID, PLUGINID_OFX_READPNG) || |
| 195 | StrUtils::iequals(pluginID, PLUGINID_OFX_READPDF) || |
| 196 | StrUtils::iequals(pluginID, PLUGINID_OFX_READBRAW) ); |
| 197 | } |
| 198 | |
| 199 | return (pluginID == PLUGINID_OFX_READOIIO || |
| 200 | pluginID == PLUGINID_OFX_READFFMPEG || |
| 201 | pluginID == PLUGINID_OFX_READPFM || |
| 202 | pluginID == PLUGINID_OFX_READPSD || |
| 203 | pluginID == PLUGINID_OFX_READKRITA || |
| 204 | pluginID == PLUGINID_OFX_READSVG || |
| 205 | pluginID == PLUGINID_OFX_READMISC || |
| 206 | pluginID == PLUGINID_OFX_READORA || |
| 207 | pluginID == PLUGINID_OFX_READCDR || |
| 208 | pluginID == PLUGINID_OFX_READPNG || |
| 209 | pluginID == PLUGINID_OFX_READPDF || |
| 210 | pluginID == PLUGINID_OFX_READBRAW); |
| 211 | } |
| 212 | |
| 213 | bool |
| 214 | ReadNode::isBundledReader(const std::string& pluginID) |
nothing calls this directly
no test coverage detected