summaryrefslogtreecommitdiffstats
path: root/include/system
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2012-04-30 12:50:38 -0700
committerJamie Gennis <jgennis@google.com>2012-04-30 12:50:38 -0700
commit185b300d6a33673daa69fbea6056e91c4390e158 (patch)
treef44dabc333d9c26c4306ec85f6f4704d362b607c /include/system
parentce182cb8c00d0f5dedadbd4964dbc8cb705b8550 (diff)
downloadsystem_core-185b300d6a33673daa69fbea6056e91c4390e158.zip
system_core-185b300d6a33673daa69fbea6056e91c4390e158.tar.gz
system_core-185b300d6a33673daa69fbea6056e91c4390e158.tar.bz2
graphics.h: clarify docs about stride for YV12
This change makes it clearer how to derive the stride of the Cr and Cb plane from the stride of the Y plane for the YV12 pixel format. Change-Id: I54a9a20f35224bd583e25c615014cc8d830a1dd0
Diffstat (limited to 'include/system')
-rw-r--r--include/system/graphics.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/system/graphics.h b/include/system/graphics.h
index e206e3e..24e2bfb 100644
--- a/include/system/graphics.h
+++ b/include/system/graphics.h
@@ -78,7 +78,8 @@ enum {
* - a vertical stride equal to the height
*
* y_size = stride * height
- * c_size = ALIGN(stride/2, 16) * height/2
+ * c_stride = ALIGN(stride/2, 16)
+ * c_size = c_stride * height/2
* size = y_size + c_size * 2
* cr_offset = y_size
* cb_offset = y_size + c_size