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());
}
}
+2
View File
@@ -55,6 +55,8 @@ protected:
virtual QVariant GetCachedFrame(const Node *node, const rational &time) override;
virtual QVector2D GenerateResolution() const override;
private:
RenderProcessor(RenderTicketPtr ticket, Renderer* render_ctx, StillImageCache* still_image_cache, DecoderCache* decoder_cache, ShaderCache* shader_cache, QVariant default_shader);