diff options
author | Lajos Molnar <lajos@google.com> | 2015-02-04 07:18:02 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-02-04 07:18:04 +0000 |
commit | a163e491c148468884520d6d331a0f6d19104677 (patch) | |
tree | 3de6e024b30a93a88304dd93f2ae8f009474ec3b /include/hardware | |
parent | d5f7dbec0cac2d0e638025e43f8fb0d611d22bfa (diff) | |
parent | 811677e68d8507efe47591dc6c2f3de7ff5dce53 (diff) | |
download | hardware_libhardware-a163e491c148468884520d6d331a0f6d19104677.zip hardware_libhardware-a163e491c148468884520d6d331a0f6d19104677.tar.gz hardware_libhardware-a163e491c148468884520d6d331a0f6d19104677.tar.bz2 |
Merge "gralloc: clarify lock_ycbcr in light of multimedia codec usage" into lmp-mr1-dev
Diffstat (limited to 'include/hardware')
-rw-r--r-- | include/hardware/gralloc.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/hardware/gralloc.h b/include/hardware/gralloc.h index 91e2f69..7d00114 100644 --- a/include/hardware/gralloc.h +++ b/include/hardware/gralloc.h @@ -237,8 +237,17 @@ typedef struct gralloc_module_t { * difference that it fills a struct ycbcr with a description of the buffer * layout, and zeroes out the reserved fields. * - * This will only work on buffers with HAL_PIXEL_FORMAT_YCbCr_*_888, and - * will return -EINVAL on any other buffer formats. + * If the buffer format is not compatible with a flexible YUV format (e.g. + * the buffer layout cannot be represented with the ycbcr struct), it + * will return -EINVAL. + * + * This method must work on buffers with HAL_PIXEL_FORMAT_YCbCr_*_888 + * if supported by the device, as well as with any other format that is + * requested by the multimedia codecs when they are configured with a + * flexible-YUV-compatible color-format with android native buffers. + * + * Note that this method may also be called on buffers of other formats, + * including non-YUV formats. * * Added in GRALLOC_MODULE_API_VERSION_0_2. */ |