diff options
author | Shuzhen Wang <shuzhenwang@google.com> | 2021-09-23 15:18:44 -0700 |
---|---|---|
committer | Susmitha Gummalla <vgummall@quicinc.com> | 2021-10-08 04:49:31 +0000 |
commit | 518704779efe5d7a19ecce71b131f29f8a080907 (patch) | |
tree | 5c833d152fd50a057b36f9be160902f4df77804b /graphics/java/android | |
parent | 80e443922e0465ad3b2716cd708baff47568bd11 (diff) |
ImageFormat: Fix YCBCR_P010 bitsPerPixel
For P010 format, Each pixel has Y and subsampled CbCr. So:
bitPerPixel = 1.5 * bitPerPixelY
bitPerPixelY = 16 bits
Bug: 200949749
Test: Camera CTS
CRs-Fixed: 3027052
Change-Id: I7964d64c25961dbef634ac1ef82898147ec57111
Diffstat (limited to 'graphics/java/android')
-rw-r--r-- | graphics/java/android/graphics/ImageFormat.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/java/android/graphics/ImageFormat.java b/graphics/java/android/graphics/ImageFormat.java index 5b79d76dd6b9..ccb121770977 100644 --- a/graphics/java/android/graphics/ImageFormat.java +++ b/graphics/java/android/graphics/ImageFormat.java @@ -841,7 +841,7 @@ public class ImageFormat { case RAW_SENSOR: return 16; case YCBCR_P010: - return 20; + return 24; case RAW_DEPTH10: case RAW10: return 10; |