renderprocessor: add generate resolution override

This commit is contained in:
itsmattkc
2020-11-22 10:32:01 +11:00
parent 065fc9e10e
commit 425e69c789
2 changed files with 10 additions and 0 deletions
+8
View File
@@ -517,4 +517,12 @@ QVariant RenderProcessor::GetCachedFrame(const Node *node, const rational &time)
return QVariant();
}
QVector2D RenderProcessor::GenerateResolution() const
{
// Set resolution to the destination to the "logical" resolution of the destination
const VideoParams& video_params = ticket_->property("vparam").value<VideoParams>();
return QVector2D(video_params.width() * video_params.pixel_aspect_ratio().toDouble(),
video_params.height());
}
}