| 1106 | } |
| 1107 | |
| 1108 | OFX::Host::Memory::Instance* |
| 1109 | OfxImageEffectInstance::newMemoryInstance(size_t nBytes) |
| 1110 | { |
| 1111 | OfxEffectInstancePtr effect = getOfxEffectInstance(); |
| 1112 | OfxMemory* ret = new OfxMemory(effect); |
| 1113 | bool allocated = ret->alloc(nBytes); |
| 1114 | |
| 1115 | if ( ( (nBytes != 0) && !ret->getPtr() ) || !allocated ) { |
| 1116 | Dialogs::errorDialog( tr("Out of memory").toStdString(), |
| 1117 | tr("%1 failed to allocate memory (%2).") |
| 1118 | .arg( QString::fromUtf8( getOfxEffectInstance()->getNode()->getLabel_mt_safe().c_str() ) ) |
| 1119 | .arg( printAsRAM(nBytes) ).toStdString() ); |
| 1120 | } |
| 1121 | |
| 1122 | return ret; |
| 1123 | } |
| 1124 | |
| 1125 | bool |
| 1126 | OfxImageEffectInstance::areAllNonOptionalClipsConnected() const |
nothing calls this directly
no test coverage detected