diff options
| author | Chih-Chung Chang <chihchung@google.com> | 2009-09-18 18:37:44 +0800 |
|---|---|---|
| committer | Chih-Chung Chang <chihchung@google.com> | 2009-09-21 04:38:19 +0800 |
| commit | eb68c46a40c773eb56ef7bcf8e7ece5c6a5a8d23 (patch) | |
| tree | 313cb7279eb1e0b2d0ad5496e8a5b328cfc87ebc /graphics | |
| parent | d163f4babe101b89aaf322c34d3bafeae237f7da (diff) | |
| download | frameworks_base-eb68c46a40c773eb56ef7bcf8e7ece5c6a5a8d23.zip frameworks_base-eb68c46a40c773eb56ef7bcf8e7ece5c6a5a8d23.tar.gz frameworks_base-eb68c46a40c773eb56ef7bcf8e7ece5c6a5a8d23.tar.bz2 | |
Fix 2092386: Support yuyv for camera preview format.
Change-Id: I3ef821fed2132a9faf92983324c7e036d0f5641e
Diffstat (limited to 'graphics')
| -rw-r--r-- | graphics/java/android/graphics/PixelFormat.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/PixelFormat.java b/graphics/java/android/graphics/PixelFormat.java index 221c2f8..c76cee7 100644 --- a/graphics/java/android/graphics/PixelFormat.java +++ b/graphics/java/android/graphics/PixelFormat.java @@ -60,6 +60,13 @@ public class PixelFormat */ public static final int YCbCr_420_SP= 0x11; + /** YCbCr format used for images, which uses YUYV (YUY2) encoding format. + * This is an alternative format for camera preview images. Whether this + * format is supported by the camera hardware can be determined by + * {@link android.hardware.Camera.Parameters#getSupportedPreviewFormats()}. + */ + public static final int YCbCr_422_I = 0x14; + /** * Encoded formats. These are not necessarily supported by the hardware. */ |
