diff options
author | Eric Arseneau <earseneau@google.com> | 2021-12-13 11:13:18 -0800 |
---|---|---|
committer | Eric Arseneau <earseneau@google.com> | 2021-12-13 12:53:06 -0800 |
commit | 48cbb14e1815430efd7ff5086e7a4c70e75d475f (patch) | |
tree | a752bdec4c37856853b1e12f02daeebee65ffe13 /graphics/java/android | |
parent | 88daf9ce34ae13a85aa6d41d42d7f6d5f7d07c1a (diff) | |
parent | ea8a98f046c81acd5bdb72169a00ce133e4d27c5 (diff) |
Merge mpr-2021-11-05
Change-Id: If7c68a17857eee4194f28413b938d5647820162c
Diffstat (limited to 'graphics/java/android')
-rw-r--r-- | graphics/java/android/graphics/ImageFormat.java | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/graphics/java/android/graphics/ImageFormat.java b/graphics/java/android/graphics/ImageFormat.java index ccb121770977..9feb619b34e3 100644 --- a/graphics/java/android/graphics/ImageFormat.java +++ b/graphics/java/android/graphics/ImageFormat.java @@ -178,22 +178,8 @@ public class ImageFormat { * <p>Android YUV P010 format.</p> * * P010 is a 4:2:0 YCbCr semiplanar format comprised of a WxH Y plane - * followed immediately by a Wx(H/2) CbCr plane. Each sample is - * represented by a 16-bit little-endian value, with the lower 6 bits set - * to zero. - * - * <p>This format assumes - * <ul> - * <li>an even height</li> - * <li>a vertical stride equal to the height</li> - * </ul> - * </p> - * - * <pre> stride_in_bytes = stride * 2 </pre> - * <pre> y_size = stride_in_bytes * height </pre> - * <pre> cbcr_size = stride_in_bytes * (height / 2) </pre> - * <pre> cb_offset = y_size </pre> - * <pre> cr_offset = cb_offset + 2 </pre> + * followed by a Wx(H/2) CbCr plane. Each sample is represented by a 16-bit + * little-endian value, with the lower 6 bits set to zero. * * <p>For example, the {@link android.media.Image} object can provide data * in this format from a {@link android.hardware.camera2.CameraDevice} |