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
Change-Id: I7964d64c25961dbef634ac1ef82898147ec57111
This commit is contained in:
Shuzhen Wang
2021-09-23 15:18:44 -07:00
parent 6e60223a63
commit 3e4720b3b4

View File

@@ -827,7 +827,7 @@ public class ImageFormat {
case RAW_SENSOR:
return 16;
case YCBCR_P010:
return 20;
return 24;
case RAW_DEPTH10:
case RAW10:
return 10;