summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2013-05-06 14:05:05 -0700
committerEino-Ville Talvala <etalvala@google.com>2013-05-06 14:05:05 -0700
commit6efab252d59ceff806840111b2e6c0e478d377ae (patch)
tree25f87b1eddaf652ee941824e58c434a01c9a948c
parent74b8c4e57b6d0db6bdb79d298ef8bb19cad3be2e (diff)
downloadlibhardware-6efab252d59ceff806840111b2e6c0e478d377ae.tar.gz
gralloc: Clarify alloc stride for HAL_PIXEL_FORMAT_YCbCr_420_888
Bug: 8734880 Change-Id: I0cca7fd1965e1547991be06b6b18d6302dbe8670
-rw-r--r--include/hardware/gralloc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/hardware/gralloc.h b/include/hardware/gralloc.h
index 52ef6a3b..9c622421 100644
--- a/include/hardware/gralloc.h
+++ b/include/hardware/gralloc.h
@@ -258,6 +258,10 @@ typedef struct alloc_device_t {
* allow the implementation to satisfy hardware constraints on the width
* of a pixmap (eg: it may have to be multiple of 8 pixels).
* The CALLER TAKES OWNERSHIP of the buffer_handle_t.
+ *
+ * If format is HAL_PIXEL_FORMAT_YCbCr_420_888, the returned stride must be
+ * 0, since the actual strides are available from the android_ycbcr
+ * structure.
*
* Returns 0 on success or -errno on error.
*/