diff options
author | Wu-cheng Li <wuchengli@google.com> | 2011-08-04 01:46:56 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-08-04 01:46:56 -0700 |
commit | 09f6d67f37d77853dd19fde79523edc524c7c9cd (patch) | |
tree | 198ea92584072ebb84aa393fe05e5abffffa63d1 /graphics/java | |
parent | cf27a3ecc6782b6c86f720b1df2459a160fde81a (diff) | |
parent | 70fb9085044c5e6f52c33c970d238b764cf2373b (diff) | |
download | frameworks_base-09f6d67f37d77853dd19fde79523edc524c7c9cd.zip frameworks_base-09f6d67f37d77853dd19fde79523edc524c7c9cd.tar.gz frameworks_base-09f6d67f37d77853dd19fde79523edc524c7c9cd.tar.bz2 |
Merge "Add camera bayer image format."
Diffstat (limited to 'graphics/java')
-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; } |