Merge "ImageUtils: Fix estimated bytes factor for P010" am: bbce92f05b am: 016f0060a3

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2366093

Change-Id: Id8cb0308b104535916358ff34e911f7ab34cc4a9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2023-01-08 06:14:21 +00:00
committed by Automerger Merge Worker

View File

@@ -255,10 +255,10 @@ class ImageUtils {
case ImageFormat.RAW_SENSOR: case ImageFormat.RAW_SENSOR:
case ImageFormat.RAW_PRIVATE: // round estimate, real size is unknown case ImageFormat.RAW_PRIVATE: // round estimate, real size is unknown
case ImageFormat.DEPTH16: case ImageFormat.DEPTH16:
case ImageFormat.YCBCR_P010:
estimatedBytePerPixel = 2.0; estimatedBytePerPixel = 2.0;
break; break;
case PixelFormat.RGB_888: case PixelFormat.RGB_888:
case ImageFormat.YCBCR_P010:
estimatedBytePerPixel = 3.0; estimatedBytePerPixel = 3.0;
break; break;
case PixelFormat.RGBA_8888: case PixelFormat.RGBA_8888: