From a8f0334ef5706875f2c73a2690a2f1fc3e5fee27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Fri, 18 Jan 2013 15:01:43 +0200 Subject: gralloc: implement yuv offset query as hw specific function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch reverts earlier cca14cfd... and introduces a new hw specific hook to query yuv components offsets which can vary between different hw, decoders, cameras etc. Change-Id: Ib60bc8ee28df7bc9425b6d7934294fe36fc55354 Depends-Change-Id: I1aa5368b21e588d5d711c1005fff2a5296e143a0 Signed-off-by: Tapani Pälli --- gralloc_drm_priv.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gralloc_drm_priv.h') diff --git a/gralloc_drm_priv.h b/gralloc_drm_priv.h index 7a93a1e..eb2450d 100644 --- a/gralloc_drm_priv.h +++ b/gralloc_drm_priv.h @@ -126,6 +126,11 @@ struct gralloc_drm_drv_t { struct gralloc_drm_bo_t *dst, struct gralloc_drm_bo_t *src, short x1, short y1, short x2, short y2); + + /* query component offsets, strides and handles for a format */ + void (*resolve_format)(struct gralloc_drm_drv_t *drv, + struct gralloc_drm_bo_t *bo, + uint32_t *pitches, uint32_t *offsets, uint32_t *handles); }; struct gralloc_drm_bo_t { -- cgit v1.1