Skip to content
Snippets Groups Projects
Commit f9ac4d14 authored by Karsten Suehring's avatar Karsten Suehring
Browse files

Merge branch 'ConfWindow_w_UpscaledOutput=1' into 'master'

Fix #1643 on different pps.conformanceWindows when using --UpscaledOutput=1 with RPR

See merge request jvet/VVCSoftware_VTM!2767
parents 66f2bdf1 e2d2c9fb
No related branches found
No related tags found
Loading
......@@ -1478,8 +1478,10 @@ bool VideoIOYuv::writeUpscaledPicture(const SPS &sps, const PPS &pps, const CPel
else
{
const Window &conf = pps.getConformanceWindow();
int curPicWidth = maxWidth - SPS::getWinUnitX( sps.getChromaFormatIdc() ) * ( afterScaleWindowFullResolution.getWindowLeftOffset() + afterScaleWindowFullResolution.getWindowRightOffset() );
int curPicHeight = maxHeight - SPS::getWinUnitY( sps.getChromaFormatIdc() ) * ( afterScaleWindowFullResolution.getWindowTopOffset() + afterScaleWindowFullResolution.getWindowBottomOffset() );
ret = write(maxWidth, maxHeight, pic, ipCSC,
ret = write(curPicWidth, curPicHeight, pic, ipCSC,
packedYuvOutputMode, conf.getWindowLeftOffset() * SPS::getWinUnitX(chromaFormatIdc),
conf.getWindowRightOffset() * SPS::getWinUnitX(chromaFormatIdc),
conf.getWindowTopOffset() * SPS::getWinUnitY(chromaFormatIdc),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment