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
This commit is contained in:
Jamie Gennis 2012-04-30 12:50:38 -07:00
parent ce182cb8c0
commit 185b300d6a
1 changed files with 2 additions and 1 deletions

View File

@ -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