Skip to content

Commit

Permalink
Merge pull request #40 from alggm/patch-display-luma-subsampling
Browse files Browse the repository at this point in the history
Fix display of jpeg with luminance subsampling (for instance, if MCU …
  • Loading branch information
ImpulseAdventure authored Sep 27, 2017
2 parents 52510b1 + 7ed4c5c commit 54ca563
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ImgDecode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3364,7 +3364,7 @@ void CimgDecode::DecodeScanImg(unsigned nStart,bool bDisplay,bool bQuiet)

// Store fullres value
if (bDisplay)
SetFullRes(nMcuX,nMcuY,nComp,0,0,m_nDcChrCb);
SetFullRes(nMcuX,nMcuY,nComp,nCssIndH,nCssIndV,m_nDcChrCb);

}
}
Expand Down Expand Up @@ -3396,7 +3396,7 @@ void CimgDecode::DecodeScanImg(unsigned nStart,bool bDisplay,bool bQuiet)

// Store fullres value
if (bDisplay)
SetFullRes(nMcuX,nMcuY,nComp,0,0,m_nDcChrCr);
SetFullRes(nMcuX,nMcuY,nComp,nCssIndH,nCssIndV,m_nDcChrCr);

}
}
Expand Down

0 comments on commit 54ca563

Please sign in to comment.