renderprocessor: add generate resolution override
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user