summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2023-01-08 05:17:09 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-01-08 05:17:09 +0000
commitbbce92f05bc29fc86a175b8c195febba13a3deb7 (patch)
treeef7dc2aec2bd82036a2ec9ea0d9d179a9b4b2165
parentaf9b52bdf89b3278a5798710ce5adf63d6f758d8 (diff)
parent15390d0a40d1433a6eeae15ab8a3a2e2df4debac (diff)
Merge "ImageUtils: Fix estimated bytes factor for P010"
-rw-r--r--media/java/android/media/ImageUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/java/android/media/ImageUtils.java b/media/java/android/media/ImageUtils.java
index 2f1a36cba9d0..4957300dd062 100644
--- a/media/java/android/media/ImageUtils.java
+++ b/media/java/android/media/ImageUtils.java
@@ -255,10 +255,10 @@ class ImageUtils {
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: