Merge "Remove bitwise plane information from ImageFormat's P010 docs" into sc-dev am: b0766d70d9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15529193 Change-Id: I4c48510f03598d082d6e51c1de67c513e5c89795
This commit is contained in:
@@ -178,22 +178,8 @@ public class ImageFormat {
|
|||||||
* <p>Android YUV P010 format.</p>
|
* <p>Android YUV P010 format.</p>
|
||||||
*
|
*
|
||||||
* P010 is a 4:2:0 YCbCr semiplanar format comprised of a WxH Y plane
|
* 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
|
* followed by a Wx(H/2) CbCr plane. Each sample is represented by a 16-bit
|
||||||
* represented by a 16-bit little-endian value, with the lower 6 bits set
|
* little-endian value, with the lower 6 bits set to zero.
|
||||||
* 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>
|
|
||||||
*
|
*
|
||||||
* <p>For example, the {@link android.media.Image} object can provide data
|
* <p>For example, the {@link android.media.Image} object can provide data
|
||||||
* in this format from a {@link android.hardware.camera2.CameraDevice}
|
* in this format from a {@link android.hardware.camera2.CameraDevice}
|
||||||
|
|||||||
Reference in New Issue
Block a user