Home | History | Annotate | Download | only in libgralloc

Lines Matching defs:hnd

654 int getYUVPlaneInfo(private_handle_t* hnd, struct android_ycbcr* ycbcr)
662 switch (hnd->format) {
668 ystride = cstride = hnd->width;
669 ycbcr->y = (void*)hnd->base;
670 ycbcr->cb = (void*)(hnd->base + ystride * hnd->height);
671 ycbcr->cr = (void*)(hnd->base + ystride * hnd->height + 1);
683 ystride = cstride = hnd->width;
684 ycbcr->y = (void*)hnd->base;
685 ycbcr->cr = (void*)(hnd->base + ystride * hnd->height);
686 ycbcr->cb = (void*)(hnd->base + ystride * hnd->height + 1);
694 ystride = hnd->width;
695 cstride = ALIGN(hnd->width/2, 16);
696 ycbcr->y = (void*)hnd->base;
697 ycbcr->cr = (void*)(hnd->base + ystride * hnd->height);
698 ycbcr->cb = (void*)(hnd->base + ystride * hnd->height +
699 cstride * hnd->height/2);
711 hnd->format);
745 private_handle_t* hnd = new private_handle_t(data.fd, data.size,
748 hnd->base = (uint64_t) data.base;
749 hnd->offset = data.offset;
750 hnd->gpuaddr = 0;
751 *pHnd = hnd;
755 void free_buffer(private_handle_t *hnd)
759 if (hnd && hnd->fd > 0) {
760 IMemAlloc* memalloc = sAlloc->getAllocator(hnd->flags);
761 memalloc->free_buffer((void*)hnd->base, hnd->size, hnd->offset, hnd->fd);
763 if(hnd)
764 delete hnd;