Lines Matching refs:hnd

555 int getYUVPlaneInfo(private_handle_t* hnd, struct android_ycbcr* ycbcr)  in getYUVPlaneInfo()  argument
563 switch (hnd->format) { in getYUVPlaneInfo()
569 ystride = cstride = hnd->width; in getYUVPlaneInfo()
570 ycbcr->y = (void*)hnd->base; in getYUVPlaneInfo()
571 ycbcr->cb = (void*)(hnd->base + ystride * hnd->height); in getYUVPlaneInfo()
572 ycbcr->cr = (void*)(hnd->base + ystride * hnd->height + 1); in getYUVPlaneInfo()
583 ystride = cstride = hnd->width; in getYUVPlaneInfo()
584 ycbcr->y = (void*)hnd->base; in getYUVPlaneInfo()
585 ycbcr->cr = (void*)(hnd->base + ystride * hnd->height); in getYUVPlaneInfo()
586 ycbcr->cb = (void*)(hnd->base + ystride * hnd->height + 1); in getYUVPlaneInfo()
594 ystride = hnd->width; in getYUVPlaneInfo()
595 cstride = ALIGN(hnd->width/2, 16); in getYUVPlaneInfo()
596 ycbcr->y = (void*)hnd->base; in getYUVPlaneInfo()
597 ycbcr->cr = (void*)(hnd->base + ystride * hnd->height); in getYUVPlaneInfo()
598 ycbcr->cb = (void*)(hnd->base + ystride * hnd->height + in getYUVPlaneInfo()
599 cstride * hnd->height/2); in getYUVPlaneInfo()
611 hnd->format); in getYUVPlaneInfo()
645 private_handle_t* hnd = new private_handle_t(data.fd, data.size, in alloc_buffer() local
648 hnd->base = (uint64_t) data.base; in alloc_buffer()
649 hnd->offset = data.offset; in alloc_buffer()
650 hnd->gpuaddr = 0; in alloc_buffer()
651 *pHnd = hnd; in alloc_buffer()
655 void free_buffer(private_handle_t *hnd) in free_buffer() argument
659 if (hnd && hnd->fd > 0) { in free_buffer()
660 IMemAlloc* memalloc = sAlloc->getAllocator(hnd->flags); in free_buffer()
661 memalloc->free_buffer((void*)hnd->base, hnd->size, hnd->offset, hnd->fd); in free_buffer()
663 if(hnd) in free_buffer()
664 delete hnd; in free_buffer()