From 9184ec307be30719b2b7bfc3fb3e0a1365ccdf73 Mon Sep 17 00:00:00 2001 From: Eino-Ville Talvala Date: Tue, 10 Apr 2012 15:57:31 -0700 Subject: Editing fixes to ImageFormat documentation. Change-Id: I74738a65abc3abbb49825b16f4efe3ac2eb6d28e --- graphics/java/android/graphics/ImageFormat.java | 38 ++++++++++++++----------- 1 file changed, 21 insertions(+), 17 deletions(-) (limited to 'graphics/java') diff --git a/graphics/java/android/graphics/ImageFormat.java b/graphics/java/android/graphics/ImageFormat.java index 7269a71d91c0..b3a8fd7ba87c 100644 --- a/graphics/java/android/graphics/ImageFormat.java +++ b/graphics/java/android/graphics/ImageFormat.java @@ -25,34 +25,38 @@ public class ImageFormat { public static final int UNKNOWN = 0; /** - * RGB format used for pictures encoded as RGB_565 see + * RGB format used for pictures encoded as RGB_565. See * {@link android.hardware.Camera.Parameters#setPictureFormat(int)}. */ public static final int RGB_565 = 4; /** - * Android YUV format: + *

Android YUV format.

* - * This format is exposed to software decoders and applications. + *

This format is exposed to software decoders and applications.

* - * YV12 is a 4:2:0 YCrCb planar format comprised of a WxH Y plane followed - * by (W/2) x (H/2) Cr and Cb planes. + *

YV12 is a 4:2:0 YCrCb planar format comprised of a WxH Y plane followed + * by (W/2) x (H/2) Cr and Cb planes.

* - * This format assumes - * - an even width - * - an even height - * - a horizontal stride multiple of 16 pixels - * - a vertical stride equal to the height + *

This format assumes + *

+ *

* - * y_size = stride * height - * c_size = ALIGN(stride/2, 16) * height/2 - * size = y_size + c_size * 2 - * cr_offset = y_size - * cb_offset = y_size + c_size + *
 y_size = stride * height
+     * c_size = ALIGN(stride/2, 16) * height/2
+     * size = y_size + c_size * 2
+     * cr_offset = y_size
+     * cb_offset = y_size + c_size
* - * Whether this format is supported by the camera hardware can be determined - * by + * This format is guaranteed to be supported for camera preview images since + * API level 12; for earlier API versions, check * {@link android.hardware.Camera.Parameters#getSupportedPreviewFormats()}. + *

*/ public static final int YV12 = 0x32315659; -- cgit v1.2.3-59-g8ed1b