summaryrefslogtreecommitdiffstats
path: root/include/gralloc
Commit message (Collapse)AuthorAgeFilesLines
* gralloc: provide convenience macros for halsTony Lofthouse2012-11-281-0/+85
Specify a set of macros for obtains fields from the native implementation of a gralloc (native buffer) handle. It is expected that to support the k3.0/legacy DDK environment that DOMX could use the following: ion_slots = GET_ION_FD_COUNT(pGrallocHandle) /* This strategy is invalid for anything over than NV12 */ assert(HND_FMT(pGrallocHandle) == HAL_PIXEL_FORMAT_TI_NV12); if (ion_slots == 0) { pBuffer = GET_PVR_FD(pGrallocHandle); pAuxBuf1 = -1; } else { assert(ion_slots > 1); pBuffer = GET_ION_FD(pGrallocHandle, 0); pAuxBuf1 = GET_ION_FD(pGrallocHandle, 1); } Change-Id: I0f95472f1a7e8a145ddd5bc1f3708d78d679d101 Signed-off-by: Tony Lofthouse <a0741364@ti.com>