summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Yiwei Zhang <zzyiwei@google.com> 2022-07-03 05:53:04 +0000
committer Yiwei Zhang <zzyiwei@google.com> 2022-07-06 19:29:18 +0000
commit2e8051f88665ca00d783dd349801a744a804819d (patch)
treeda4700356b014abfc66415cf32f62805f3c8cfd5 /api/api.go
parent262f1f312c36ba15c45b8c7850b8432f6314073b (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 'api/api.go')
0 files changed, 0 insertions, 0 deletions