commit | 016f0060a30fb8c80486b671a425f8ca65784875 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Sun Jan 08 05:42:25 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Sun Jan 08 05:42:25 2023 +0000 |
tree | ef7dc2aec2bd82036a2ec9ea0d9d179a9b4b2165 | |
parent | 65f4f4f6982fc273b6d9dfd1415aa558c002b803 [diff] | |
parent | bbce92f05bc29fc86a175b8c195febba13a3deb7 [diff] |
Merge "ImageUtils: Fix estimated bytes factor for P010" am: bbce92f05b Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2366093 Change-Id: I21df5eecbe48a9805258f3c14414f8de1a4d7ca0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/media/java/android/media/ImageUtils.java b/media/java/android/media/ImageUtils.java index 2f1a36c..4957300 100644 --- a/media/java/android/media/ImageUtils.java +++ b/media/java/android/media/ImageUtils.java
@@ -255,10 +255,10 @@ case ImageFormat.RAW_SENSOR: case ImageFormat.RAW_PRIVATE: // round estimate, real size is unknown case ImageFormat.DEPTH16: - case ImageFormat.YCBCR_P010: estimatedBytePerPixel = 2.0; break; case PixelFormat.RGB_888: + case ImageFormat.YCBCR_P010: estimatedBytePerPixel = 3.0; break; case PixelFormat.RGBA_8888: