[Mesa-dev] [PATCH 0/2] egl/android: Support YUV formats in a gralloc-agnostic way

Tomasz Figa tfiga at chromium.org
Wed Nov 9 08:33:52 UTC 2016


Current EGL Android backend supports YUV format in a very limited form,
with the only format supported being YV12 and plane strides and sizes
calculated with hardcoded alignment assumptions. This series attempts
to fix this by changing the backend to use the lock_ycbcr API available
in Gralloc, which allows handling of flexible YUV formats and querying
the fixed YV12 for plane parameters.

Tomasz Figa (2):
  egl/android: Get gralloc module in dri2_initialize_android()
  egl/android: Use gralloc::lock_ycbcr for resolving YUV formats

 src/egl/drivers/dri2/egl_dri2.h         |   4 +
 src/egl/drivers/dri2/platform_android.c | 174 +++++++++++++++++++++++++-------
 2 files changed, 140 insertions(+), 38 deletions(-)

-- 
2.8.0.rc3.226.g39d4020



More information about the mesa-dev mailing list