Don't scale chroma subsampled images to sizes that don't align with the subsampling... v2.15.166
authorCarl Hetherington <cth@carlh.net>
Sun, 3 Oct 2021 19:22:14 +0000 (21:22 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 3 Oct 2021 21:41:02 +0000 (23:41 +0200)
commit969906f2dd6c5c144781861f53e2a0f6baefb9a3
treed4091610b2c0582f52a8d484fd7a36a9c4878111
parent70b72b53eab0f247eb4dc605a2d669d4adb4e469
Don't scale chroma subsampled images to sizes that don't align with the subsampling (#1872).

There's a slightly odd effect when scaling e.g. YVU420 images to
odd and then even widths - there's a small but visible luminance
shift.  I don't know why this happens, but keeping the scaling
sizes locked to the subsampling seems to help.
src/lib/pixel_quanta.cc
src/lib/pixel_quanta.h
src/lib/player.cc
src/lib/player_video.cc
src/lib/util.cc
src/lib/util.h
src/lib/video_content.cc
src/lib/video_content.h