Add YCBCR_P010 in switch content in ImageUtil getNumPlanes.

Bug: 266292294
Test: builds
Change-Id: Id4f809a1770739b279bb653bdb32e9a010d21fd4
This commit is contained in:
Sally Qi
2023-01-24 16:58:10 +00:00
parent 7c053765d7
commit e4bc60d543

View File

@@ -84,6 +84,7 @@ class ImageUtils {
public static int getNumPlanesForHardwareBufferFormat(int hardwareBufferFormat) {
switch(hardwareBufferFormat) {
case HardwareBuffer.YCBCR_420_888:
case HardwareBuffer.YCBCR_P010:
return 3;
case HardwareBuffer.RGBA_8888:
case HardwareBuffer.RGBX_8888: