Lines Matching refs:hnd
127 auto hnd = cros_gralloc_convert_handle(*handle); in gralloc0_alloc() local
128 *stride = hnd->pixel_stride; in gralloc0_alloc()
256 auto hnd = cros_gralloc_convert_handle(handle); in gralloc0_perform() local
257 if (!hnd) { in gralloc0_perform()
265 *out_stride = hnd->pixel_stride; in gralloc0_perform()
269 *out_format = hnd->droid_format; in gralloc0_perform()
274 *out_width = hnd->width; in gralloc0_perform()
275 *out_height = hnd->height; in gralloc0_perform()
308 auto hnd = cros_gralloc_convert_handle(handle); in gralloc0_lock_async() local
309 if (!hnd) { in gralloc0_lock_async()
314 if (hnd->droid_format == HAL_PIXEL_FORMAT_YCbCr_420_888) { in gralloc0_lock_async()
350 auto hnd = cros_gralloc_convert_handle(handle); in gralloc0_lock_async_ycbcr() local
351 if (!hnd) { in gralloc0_lock_async_ycbcr()
356 if ((hnd->droid_format != HAL_PIXEL_FORMAT_YCbCr_420_888) && in gralloc0_lock_async_ycbcr()
357 (hnd->droid_format != HAL_PIXEL_FORMAT_YV12) && in gralloc0_lock_async_ycbcr()
358 (hnd->droid_format != HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED)) { in gralloc0_lock_async_ycbcr()
373 switch (hnd->format) { in gralloc0_lock_async_ycbcr()
378 ycbcr->ystride = hnd->strides[0]; in gralloc0_lock_async_ycbcr()
379 ycbcr->cstride = hnd->strides[1]; in gralloc0_lock_async_ycbcr()
387 ycbcr->ystride = hnd->strides[0]; in gralloc0_lock_async_ycbcr()
388 ycbcr->cstride = hnd->strides[1]; in gralloc0_lock_async_ycbcr()