Lines Matching refs:hnd

558 int getYUVPlaneInfo(private_handle_t* hnd, struct android_ycbcr* ycbcr)  in getYUVPlaneInfo()  argument
566 switch (hnd->format) { in getYUVPlaneInfo()
572 ystride = cstride = hnd->width; in getYUVPlaneInfo()
573 ycbcr->y = (void*)hnd->base; in getYUVPlaneInfo()
574 ycbcr->cb = (void*)(hnd->base + ystride * hnd->height); in getYUVPlaneInfo()
575 ycbcr->cr = (void*)(hnd->base + ystride * hnd->height + 1); in getYUVPlaneInfo()
587 ystride = cstride = hnd->width; in getYUVPlaneInfo()
588 ycbcr->y = (void*)hnd->base; in getYUVPlaneInfo()
589 ycbcr->cr = (void*)(hnd->base + ystride * hnd->height); in getYUVPlaneInfo()
590 ycbcr->cb = (void*)(hnd->base + ystride * hnd->height + 1); in getYUVPlaneInfo()
598 ystride = hnd->width; in getYUVPlaneInfo()
599 cstride = ALIGN(hnd->width/2, 16); in getYUVPlaneInfo()
600 ycbcr->y = (void*)hnd->base; in getYUVPlaneInfo()
601 ycbcr->cr = (void*)(hnd->base + ystride * hnd->height); in getYUVPlaneInfo()
602 ycbcr->cb = (void*)(hnd->base + ystride * hnd->height + in getYUVPlaneInfo()
603 cstride * hnd->height/2); in getYUVPlaneInfo()
615 hnd->format); in getYUVPlaneInfo()
649 private_handle_t* hnd = new private_handle_t(data.fd, data.size, in alloc_buffer() local
652 hnd->base = (uintptr_t) data.base; in alloc_buffer()
653 hnd->offset = data.offset; in alloc_buffer()
654 hnd->gpuaddr = 0; in alloc_buffer()
655 *pHnd = hnd; in alloc_buffer()
659 void free_buffer(private_handle_t *hnd) in free_buffer() argument
663 if (hnd && hnd->fd > 0) { in free_buffer()
664 IMemAlloc* memalloc = sAlloc->getAllocator(hnd->flags); in free_buffer()
665 memalloc->free_buffer((void*)hnd->base, hnd->size, hnd->offset, hnd->fd); in free_buffer()
667 if(hnd) in free_buffer()
668 delete hnd; in free_buffer()