Ensure render path sets per-frame output data and handles ROD/bounds correctly.

This commit is contained in:
2026-01-04 22:40:05 +08:00
parent f191486375
commit 3b16824f34
4 changed files with 48 additions and 10 deletions
+5 -2
View File
@@ -220,8 +220,8 @@ void olive::plugin::PluginRenderer::RenderPlugin(TexturePtr src, olive::plugin::
renderWindow.x1 = renderWindow.y1 = 0;
renderWindow.x2 = src->params().width();
renderWindow.y2 = src->params().height();
renderWindow.x2 = destination_params.width();
renderWindow.y2 = destination_params.height();
/// RoI is in canonical coords,
OfxRectD regionOfInterest;
@@ -253,6 +253,9 @@ void olive::plugin::PluginRenderer::RenderPlugin(TexturePtr src, olive::plugin::
// call get region of interest on each of the inputs
OfxTime frame = 0;
clip->setParams(destination_params);
clip->setRegionOfDefinition(regionOfDefinition, frame);
const NodeValueRow &values = job.GetValues();
const auto &clips = instance->getDescriptor().getClips();
for (const auto &entry : clips) {