Lines Matching defs:psb_surface
30 #include "psb_surface.h"
62 buffer_handle_t handle = obj_surface->psb_surface->buf.handle;
151 psb_surface_p psb_surface;
172 psb_surface = (psb_surface_p) calloc(1, sizeof(struct psb_surface_s));
173 if (NULL == psb_surface) {
210 external_buffers, psb_surface, vaddr, buf_fd,
213 psb_surface->buf.handle = handle;
220 free(psb_surface);
227 buffer_stride = psb_surface->stride;
229 psb_surface->extra_info[7] = external_buffers->tiling;
232 psb_surface->extra_info[4] = fourcc;
233 obj_surface->psb_surface = psb_surface;
311 psb_surface_p psb_surface;
331 psb_surface = (psb_surface_p) calloc(1, sizeof(struct psb_surface_s));
332 if (NULL == psb_surface) {
384 (VASurfaceAttributeTPI *)external_buffers, psb_surface,
386 psb_surface->buf.handle = (void *)handle;
406 obj_surface->share_info->luma_stride = psb_surface->stride;
407 obj_surface->share_info->chroma_u_stride = psb_surface->stride;
408 obj_surface->share_info->chroma_v_stride = psb_surface->stride;
411 obj_surface->share_info->khandle = (uint32_t)(wsbmKBufHandle(wsbmKBuf(psb_surface->buf.drm_buf)));
425 size = psb_surface->chroma_offset;
429 // memset((char *)vaddr[GRALLOC_SUB_BUFFER0] + size, 0x80, psb_surface->size - size);
466 psb_surface->buf.user_ptr = NULL;
472 free(psb_surface);
479 buffer_stride = psb_surface->stride;
481 psb_surface->extra_info[4] = fourcc;
483 psb_surface->extra_info[8] = external_buffers->pixel_format;
485 psb_surface->extra_info[7] = external_buffers->tiling;
487 obj_surface->psb_surface = psb_surface;