| 1057 | |
| 1058 | mDeclarePluginFactory(RectanglePluginFactory, {ofxsThreadSuiteCheck();}, {}); |
| 1059 | void |
| 1060 | RectanglePluginFactory::describe(ImageEffectDescriptor &desc) |
| 1061 | { |
| 1062 | #ifdef DEBUG_HOSTDESCRIPTION |
| 1063 | { |
| 1064 | const ImageEffectHostDescription& hostDesc = *getImageEffectHostDescription(); |
| 1065 | std::cout << "OFX host description follows" << std::endl; |
| 1066 | std::cout << "OFX API version " << hostDesc.APIVersionMajor << '.' << hostDesc.APIVersionMinor << std::endl; |
| 1067 | std::cout << "hostName=" << hostDesc.hostName << std::endl; |
| 1068 | std::cout << "hostLabel=" << hostDesc.hostLabel << std::endl; |
| 1069 | std::cout << "hostVersion=" << hostDesc.versionMajor << '.' << hostDesc.versionMinor << '.' << hostDesc.versionMicro; |
| 1070 | std::cout << " (" << hostDesc.versionLabel << ')' << std::endl; |
| 1071 | std::cout << "hostIsBackground=" << hostDesc.hostIsBackground << std::endl; |
| 1072 | std::cout << "supportsOverlays=" << hostDesc.supportsOverlays << std::endl; |
| 1073 | std::cout << "supportsMultiResolution=" << hostDesc.supportsMultiResolution << std::endl; |
| 1074 | std::cout << "supportsTiles=" << hostDesc.supportsTiles << std::endl; |
| 1075 | std::cout << "temporalClipAccess=" << hostDesc.temporalClipAccess << std::endl; |
| 1076 | bool first; |
| 1077 | first = true; |
| 1078 | std::cout << "supportedComponents="; |
| 1079 | for (std::vector<PixelComponentEnum>::const_iterator it = hostDesc._supportedComponents.begin(); it != hostDesc._supportedComponents.end(); ++it) { |
| 1080 | if (!first) { |
| 1081 | std::cout << ","; |
| 1082 | } |
| 1083 | first = false; |
| 1084 | std::cout << mapPixelComponentEnumToStr(*it); |
| 1085 | } |
| 1086 | std::cout << std::endl; |
| 1087 | first = true; |
| 1088 | std::cout << "supportedContexts="; |
| 1089 | for (std::vector<ContextEnum>::const_iterator it = hostDesc._supportedContexts.begin(); it != hostDesc._supportedContexts.end(); ++it) { |
| 1090 | if (!first) { |
| 1091 | std::cout << ","; |
| 1092 | } |
| 1093 | first = false; |
| 1094 | std::cout << mapContextEnumToStr(*it); |
| 1095 | } |
| 1096 | std::cout << std::endl; |
| 1097 | first = true; |
| 1098 | std::cout << "supportedPixelDepths="; |
| 1099 | for (std::vector<BitDepthEnum>::const_iterator it = hostDesc._supportedPixelDepths.begin(); it != hostDesc._supportedPixelDepths.end(); ++it) { |
| 1100 | if (!first) { |
| 1101 | std::cout << ","; |
| 1102 | } |
| 1103 | first = false; |
| 1104 | std::cout << mapBitDepthEnumToStr(*it); |
| 1105 | } |
| 1106 | std::cout << std::endl; |
| 1107 | std::cout << "supportsMultipleClipDepths=" << hostDesc.supportsMultipleClipDepths << std::endl; |
| 1108 | std::cout << "supportsMultipleClipPARs=" << hostDesc.supportsMultipleClipPARs << std::endl; |
| 1109 | std::cout << "supportsSetableFrameRate=" << hostDesc.supportsSetableFrameRate << std::endl; |
| 1110 | std::cout << "supportsSetableFielding=" << hostDesc.supportsSetableFielding << std::endl; |
| 1111 | std::cout << "supportsStringAnimation=" << hostDesc.supportsStringAnimation << std::endl; |
| 1112 | std::cout << "supportsCustomInteract=" << hostDesc.supportsCustomInteract << std::endl; |
| 1113 | std::cout << "supportsChoiceAnimation=" << hostDesc.supportsChoiceAnimation << std::endl; |
| 1114 | std::cout << "supportsBooleanAnimation=" << hostDesc.supportsBooleanAnimation << std::endl; |
| 1115 | std::cout << "supportsCustomAnimation=" << hostDesc.supportsCustomAnimation << std::endl; |
| 1116 | std::cout << "supportsParametricAnimation=" << hostDesc.supportsParametricAnimation << std::endl; |