Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e4720b3 authored by Shuzhen Wang's avatar Shuzhen Wang
Browse files

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
parent 6e60223a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;