Lines Matching refs:handle

49           int usage, buffer_handle_t* handle, int32_t* stride) {
68 err = gAllocDev->alloc(gAllocDev, w, h, format, usage, handle, stride);
77 static int gfx_free(buffer_handle_t handle) {
96 err = gAllocDev->free(gAllocDev, handle);
104 static int gfx_lock(buffer_handle_t handle, int usage,
116 err = gAllocMod->lock(gAllocMod, handle, usage,
118 LOG_V("gfx_lock: handle is %x, usage is %x, vaddr is %x.\n", (unsigned int)handle, usage, (unsigned int)*vaddr);
129 static int gfx_unlock(buffer_handle_t handle) {
140 err = gAllocMod->unlock(gAllocMod, handle);
185 Encode_Status GetGfxBufferInfo(intptr_t handle, ValueInfo& vinfo){
193 IMG_native_handle_t* h = (IMG_native_handle_t*) handle;
199 LOG_V("GetGfxBufferInfo: gfx iWidth=%d, iHeight=%d, iFormat=%x in handle structure\n", h->iWidth, h->iHeight, h->iFormat);
227 void DumpGfx(intptr_t handle, char* filename) {
233 GetGfxBufferInfo(handle, vinfo);
234 if (gfx_lock((buffer_handle_t)handle, usage, 0, 0, vinfo.width, vinfo.height, &vaddr[0]) != 0)
240 gfx_unlock((buffer_handle_t)handle);
329 LOG_V("Create an new gfx buffer handle 0x%p for color convert, width=%d, height=%d, stride=%d\n",
359 //map new gfx handle to vasurface
362 LOGV("map new allocated gfx handle to vaSurface\n");
446 (VADisplay)mVinfo.handle, (VASurfaceID)value,
456 vaStatus = vaUnlockSurface((VADisplay)mVinfo.handle, (VASurfaceID)value);
544 intptr_t handle = 0;
579 handle = (intptr_t) mGfxHandle;
581 handle = mValue;
583 ret = GetGfxBufferInfo(handle, tmp);
600 //lock gfx handle with buffer real size
602 if (gfx_lock((buffer_handle_t) handle, usage, 0, 0, width, height, &vaddr[0]) != 0)
659 //unlock gfx handle
660 gfx_unlock((buffer_handle_t) handle);