renderer: use probed params for tex gen

This commit is contained in:
itsmattkc
2022-05-24 14:26:02 -07:00
parent 36e56b4941
commit eca236134b
6 changed files with 15 additions and 42 deletions
+7 -12
View File
@@ -117,17 +117,6 @@ FootageDescription OIIODecoder::Probe(const QString &filename, const QAtomicInt*
return desc;
}
VideoParams OIIODecoder::GetParamsForTexture(const RetrieveVideoParams &p)
{
return VideoParams(buffer_->spec().width,
buffer_->spec().height,
pix_fmt_,
channel_count_,
OIIOUtils::GetPixelAspectRatioFromOIIO(buffer_->spec()),
VideoParams::kInterlaceNone, // FIXME: Does OIIO deinterlace for us?
p.divider);
}
bool OIIODecoder::OpenInternal()
{
// If we can open the filename provided, assume everything is working
@@ -139,7 +128,13 @@ bool OIIODecoder::RetrieveVideoInternal(TexturePtr destination, const rational &
Q_UNUSED(timecode)
Q_UNUSED(cancelled)
VideoParams vp = GetParamsForTexture(params);
VideoParams vp(buffer_->spec().width,
buffer_->spec().height,
pix_fmt_,
channel_count_,
OIIOUtils::GetPixelAspectRatioFromOIIO(buffer_->spec()),
VideoParams::kInterlaceNone, // FIXME: Does OIIO deinterlace for us?
params.divider);
if (params.divider == 1) {