diff options
author | Wu-cheng Li <wuchengli@google.com> | 2011-08-02 17:49:50 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2011-08-04 16:40:28 +0800 |
commit | 70fb9085044c5e6f52c33c970d238b764cf2373b (patch) | |
tree | 2a1e4b684899ad695600fbf2fb6158792fff794a /graphics | |
parent | bb1e275c0e684dd213f124da77110cdd9d6f090c (diff) | |
download | frameworks_base-70fb9085044c5e6f52c33c970d238b764cf2373b.zip frameworks_base-70fb9085044c5e6f52c33c970d238b764cf2373b.tar.gz frameworks_base-70fb9085044c5e6f52c33c970d238b764cf2373b.tar.bz2 |
Add camera bayer image format.
The API are hidden.
bug:5086073
Change-Id: Ic9a53e5d5007ad3f12a28406ee25098227f14cbc
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/ImageFormat.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/graphics/java/android/graphics/ImageFormat.java b/graphics/java/android/graphics/ImageFormat.java index b8e9384..7269a71 100644 --- a/graphics/java/android/graphics/ImageFormat.java +++ b/graphics/java/android/graphics/ImageFormat.java @@ -84,9 +84,19 @@ public class ImageFormat { public static final int JPEG = 0x100; /** + * Raw bayer format used for images, which is 10 bit precision samples + * stored in 16 bit words. The filter pattern is RGGB. Whether this format + * is supported by the camera hardware can be determined by + * {@link android.hardware.Camera.Parameters#getSupportedPreviewFormats()}. + * + * @hide + */ + public static final int BAYER_RGGB = 0x200; + + /** * Use this function to retrieve the number of bits per pixel of an * ImageFormat. - * + * * @param format * @return the number of bits per pixel of the given format or -1 if the * format doesn't exist or is not supported. @@ -103,6 +113,8 @@ public class ImageFormat { return 12; case NV21: return 12; + case BAYER_RGGB: + return 16; } return -1; } |