diff options
author | Jamie Gennis <jgennis@google.com> | 2012-08-24 11:11:31 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-08-24 11:11:32 -0700 |
commit | d7c8fe6abbf03157242ae104a7aedabf15791da0 (patch) | |
tree | 1be23cf507df317658c138a870b562ae0edcdf31 /include | |
parent | 1182e61f76f3adf79d82622697ba07a267f4cf71 (diff) | |
parent | febe9d904fdae52172ea534393929918bf750446 (diff) | |
download | system_core-d7c8fe6abbf03157242ae104a7aedabf15791da0.zip system_core-d7c8fe6abbf03157242ae104a7aedabf15791da0.tar.gz system_core-d7c8fe6abbf03157242ae104a7aedabf15791da0.tar.bz2 |
Merge "Add an IMPL_DEFINED pixel format." into jb-mr1-dev
Diffstat (limited to 'include')
-rw-r--r-- | include/system/graphics.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/system/graphics.h b/include/system/graphics.h index e0ad257..82b5fcc 100644 --- a/include/system/graphics.h +++ b/include/system/graphics.h @@ -124,6 +124,22 @@ enum { */ HAL_PIXEL_FORMAT_BLOB = 0x21, + /* + * Android format indicating that the choice of format is entirely up to the + * device-specific Gralloc implementation. + * + * The Gralloc implementation should examine the usage bits passed in when + * allocating a buffer with this format, and it should derive the pixel + * format from those usage flags. This format will never be used with any + * of the GRALLOC_USAGE_SW_* usage flags. + * + * If a buffer of this format is to be used as an OpenGL ES texture, the + * framework will assume that sampling the texture will always return an + * alpha value of 1.0 (i.e. the buffer contains only opaque pixel values). + * + */ + HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED = 0x22, + /* Legacy formats (deprecated), used by ImageFormat.java */ HAL_PIXEL_FORMAT_YCbCr_422_SP = 0x10, // NV16 HAL_PIXEL_FORMAT_YCrCb_420_SP = 0x11, // NV21 |