commit | 2e8051f88665ca00d783dd349801a744a804819d | [log] [tgz] |
---|---|---|
author | Yiwei Zhang <zzyiwei@google.com> | Sun Jul 03 05:53:04 2022 +0000 |
committer | Yiwei Zhang <zzyiwei@google.com> | Wed Jul 06 19:29:18 2022 +0000 |
tree | da4700356b014abfc66415cf32f62805f3c8cfd5 | |
parent | 262f1f312c36ba15c45b8c7850b8432f6314073b [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