diff options
| author | 2022-07-03 05:53:04 +0000 | |
|---|---|---|
| committer | 2022-07-03 06:33:49 +0000 | |
| commit | 6cf96a571df9f070058d0d7d094f7cc17d7a6f7c (patch) | |
| tree | ac820ea5a0b8c9f465eedca57bffc930ec2a132c /libs/androidfw/StringPool.cpp | |
| parent | 7d21782d90551a4791607cf6cb9bf597d0ba486a (diff) | |
PixelCopy: align with legacy GLConsumer::computeTransformMatrix
Chroma channels of YUV420 images are subsampled we may need to shrink
the crop region by a whole texel on each side. Since skia still adds
its own 0.5 inset, we apply an additional 0.5 inset. See
GLConsumer::computeTransformMatrix for details.
Bug: 204725913
Test: android.media.cts.DecodeAccuracyTest
Test: android.view.cts.PixelCopyTest
Change-Id: I38bd3d1e5f4c62fff3dd0374c3f2500f1a2d90b9
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions