Merge "Add YCBCR_P010 in switch content in ImageUtil getNumPlanes."

This commit is contained in:
Treehugger Robot
2023-01-25 03:02:27 +00:00
committed by Gerrit Code Review

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: