Lines Matching refs:ystride
333 int ystride, cstride; in gralloc_lock_ycbcr() local
360 ystride = cstride = GRALLOC_ALIGN(hnd->width, 16); in gralloc_lock_ycbcr()
362 ycbcr->cr = (void *)((unsigned char *)hnd->base + ystride * hnd->height); in gralloc_lock_ycbcr()
363 ycbcr->cb = (void *)((unsigned char *)hnd->base + ystride * hnd->height + 1); in gralloc_lock_ycbcr()
364 ycbcr->ystride = ystride; in gralloc_lock_ycbcr()
371 ystride = GRALLOC_ALIGN(hnd->width, (hnd->height % 8 == 0) ? GRALLOC_ALIGN_BASE_16 : in gralloc_lock_ycbcr()
373 cstride = GRALLOC_ALIGN(ystride / 2, 16); in gralloc_lock_ycbcr()
376 ycbcr->cr = (void *)((unsigned char *)hnd->base + ystride * GRALLOC_ALIGN(hnd->height, 2)); in gralloc_lock_ycbcr()
377 …ycbcr->cb = (void *)((unsigned char *)hnd->base + ystride * GRALLOC_ALIGN(hnd->height, 2) + cstrid… in gralloc_lock_ycbcr()
378 ycbcr->ystride = ystride; in gralloc_lock_ycbcr()
386 ystride = cstride = GRALLOC_ALIGN(hnd->width, 16); in gralloc_lock_ycbcr()
388 ycbcr->cb = (void *)((unsigned char *)hnd->base + ystride * hnd->height); in gralloc_lock_ycbcr()
389 ycbcr->cr = (void *)((unsigned char *)hnd->base + ystride * hnd->height + 1); in gralloc_lock_ycbcr()
390 ycbcr->ystride = ystride; in gralloc_lock_ycbcr()