forked from syberia-project/platform_frameworks_base
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Yiwei Zhang
committed
Jul 3, 2022
1 parent
7d21782
commit 6cf96a5
Showing
1 changed file
with
30 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters