Lines Matching defs:psb_surface
30 #include "psb_surface.h"
62 buffer_handle_t handle = obj_surface->psb_surface->buf.handle;
147 psb_surface_p psb_surface;
168 psb_surface = (psb_surface_p) calloc(1, sizeof(struct psb_surface_s));
169 if (NULL == psb_surface) {
206 external_buffers, psb_surface, vaddr, buf_fd,
209 psb_surface->buf.handle = handle;
216 free(psb_surface);
223 buffer_stride = psb_surface->stride;
225 psb_surface->extra_info[7] = external_buffers->tiling;
228 psb_surface->extra_info[4] = fourcc;
229 obj_surface->psb_surface = psb_surface;
307 psb_surface_p psb_surface;
327 psb_surface = (psb_surface_p) calloc(1, sizeof(struct psb_surface_s));
328 if (NULL == psb_surface) {
376 (VASurfaceAttributeTPI *)external_buffers, psb_surface,
378 psb_surface->buf.handle = (void *)handle;
399 obj_surface->share_info->luma_stride = psb_surface->stride;
400 obj_surface->share_info->chroma_u_stride = psb_surface->stride;
401 obj_surface->share_info->chroma_v_stride = psb_surface->stride;
404 obj_surface->share_info->khandle = (uint32_t)(wsbmKBufHandle(wsbmKBuf(psb_surface->buf.drm_buf)));
419 size = psb_surface->chroma_offset;
423 // memset((char *)vaddr[GRALLOC_SUB_BUFFER0] + size, 0x80, psb_surface->size - size);
460 psb_surface->buf.user_ptr = NULL;
465 free(psb_surface);
472 buffer_stride = psb_surface->stride;
474 psb_surface->extra_info[4] = fourcc;
476 psb_surface->extra_info[8] = external_buffers->pixel_format;
478 psb_surface->extra_info[7] = external_buffers->tiling;
480 obj_surface->psb_surface = psb_surface;