fix chroma keyer
This commit is contained in:
@@ -481,6 +481,15 @@ void olive::plugin::OliveClipInstance::setDefaultRegionOfDefinition(
|
||||
{
|
||||
defaultRegionOfDefinitions_ = regionOfDefinition;
|
||||
}
|
||||
|
||||
void olive::plugin::OliveClipInstance::setParams(const VideoParams ¶ms)
|
||||
{
|
||||
params_ = params;
|
||||
// Sync with OpenFX Host Support's _pixelDepth and _components
|
||||
setPixelDepth(getUnmappedBitDepth());
|
||||
setComponents(getUnmappedComponents());
|
||||
}
|
||||
|
||||
void olive::plugin::OliveClipInstance::setInputTexture(TexturePtr texture, OfxTime time){
|
||||
if (!texture) {
|
||||
return;
|
||||
@@ -488,6 +497,9 @@ void olive::plugin::OliveClipInstance::setInputTexture(TexturePtr texture, OfxTi
|
||||
VideoParams incoming = texture->params();
|
||||
|
||||
this->params_ = incoming;
|
||||
// Sync with OpenFX Host Support's _pixelDepth and _components
|
||||
setPixelDepth(getUnmappedBitDepth());
|
||||
setComponents(getUnmappedComponents());
|
||||
#ifdef OFX_SUPPORTS_OPENGLRENDER
|
||||
input_textures_.insert(time, texture);
|
||||
#endif
|
||||
|
||||
@@ -62,10 +62,7 @@ public:
|
||||
|
||||
void setRegionOfDefinition(OfxRectD regionOfDefinition, OfxTime time);
|
||||
void setDefaultRegionOfDefinition(OfxRectD regionOfDefinition);
|
||||
void setParams(const VideoParams ¶ms)
|
||||
{
|
||||
params_ = params;
|
||||
}
|
||||
void setParams(const VideoParams ¶ms);
|
||||
# ifdef OFX_SUPPORTS_OPENGLRENDER
|
||||
OFX::Host::ImageEffect::Texture* loadTexture(OfxTime time,
|
||||
const char *format,
|
||||
|
||||
Reference in New Issue
Block a user