Lines Matching defs:psb_surface
38 #include "psb_surface.h"
57 psb_surface_p psb_surface, /* out */
70 psb_surface->stride = graphic_buffers->luma_stride;
74 psb_surface->stride_mode = STRIDE_512;
76 psb_surface->stride_mode = STRIDE_1024;
78 psb_surface->stride_mode = STRIDE_1280;
80 psb_surface->stride_mode = STRIDE_2048;
82 psb_surface->stride_mode = STRIDE_4096;
84 psb_surface->stride_mode = STRIDE_NA;
86 if (psb_surface->stride != graphic_buffers->luma_stride) {
90 psb_surface->luma_offset = 0;
91 psb_surface->chroma_offset = psb_surface->stride * height;
94 psb_surface->size = ((psb_surface->stride * height) * 3) / 2;
95 psb_surface->extra_info[4] = VA_FOURCC_NV12;
98 psb_surface->size = (psb_surface->stride * height) * 2;
99 psb_surface->extra_info[4] = VA_FOURCC_YV16;
102 psb_surface->size = ((psb_surface->stride * height) * 3) / 2;
103 psb_surface->extra_info[4] = VA_FOURCC_IYUV;
106 psb_surface->size = (psb_surface->stride * height) * 4;
107 psb_surface->extra_info[4] = VA_FOURCC_RGBA;
110 psb_surface->extra_info[8] = psb_surface->extra_info[4];
117 ret = psb_buffer_create_from_ub(driver_data, psb_surface->size,
118 psb_bt_mmu_tiling, &psb_surface->buf,
122 ret = psb_buffer_create_from_ub(driver_data, psb_surface->size,
123 psb_bt_surface, &psb_surface->buf,
142 psb_surface_p psb_surface;
189 psb_surface = (psb_surface_p) calloc(1, sizeof(struct psb_surface_s));
190 if (NULL == psb_surface) {
204 vaStatus = psb_surface_create_camera(driver_data, width, height, buf_stride, size, psb_surface, 1, buf_offset);
218 buf_stride, size, psb_surface, 1, buf_offset, user_ptr);
230 free(psb_surface);
239 memset(psb_surface->extra_info, 0, sizeof(psb_surface->extra_info));
240 psb_surface->extra_info[4] = VA_FOURCC_NV12; /* temp treat is as IYUV */
242 obj_surface->psb_surface = psb_surface;
332 psb_surface_p psb_surface;
353 psb_surface = (psb_surface_p) calloc(1, sizeof(struct psb_surface_s));
354 if (NULL == psb_surface) {
374 psb_surface
378 free(psb_surface);
385 buffer_stride = psb_surface->stride;
387 memset(psb_surface->extra_info, 0, sizeof(psb_surface->extra_info));
388 psb_surface->extra_info[4] = fourcc;
389 psb_surface->extra_info[8] = fourcc;
391 psb_surface->extra_info[7] = tiling;
393 obj_surface->psb_surface = psb_surface;
474 psb_surface_p psb_surface;
492 psb_surface = (psb_surface_p) calloc(1, sizeof(struct psb_surface_s));
493 if (NULL == psb_surface) {
513 psb_surface);
516 free(psb_surface);
523 buffer_stride = psb_surface->stride;
525 memset(psb_surface->extra_info, 0, sizeof(psb_surface->extra_info));
526 psb_surface->extra_info[4] = kBuf_fourcc;
527 psb_surface->extra_info[8] = kBuf_fourcc;
529 psb_surface->extra_info[7] = tiling;
531 obj_surface->psb_surface = psb_surface;
560 psb_surface_p psb_surface;
593 psb_surface = (psb_surface_p) calloc(1, sizeof(struct psb_surface_s));
594 if (NULL == psb_surface) {
604 attribute_tpi, psb_surface, vaddr, -1, PSB_USER_BUFFER_UNCACHED);
607 attribute_tpi, psb_surface, vaddr, -1, 0);
608 psb_surface->buf.unfence_flag = 2;
610 obj_surface->psb_surface = psb_surface;
613 free(psb_surface);
620 memset(psb_surface->extra_info, 0, sizeof(psb_surface->extra_info));
621 psb_surface->extra_info[4] = fourcc;
622 psb_surface->extra_info[8] = fourcc;
623 obj_surface->psb_surface = psb_surface;
652 psb_surface_p psb_surface;
716 psb_surface = (psb_surface_p) calloc(1, sizeof(struct psb_surface_s));
717 if (NULL == psb_surface) {
727 attribute_tpi, psb_surface, vaddr, ion_source_share.fd, 0);
728 obj_surface->psb_surface = psb_surface;
731 free(psb_surface);
739 memset(psb_surface->extra_info, 0, sizeof(psb_surface->extra_info));
740 psb_surface->extra_info[4] = fourcc;
741 psb_surface->extra_info[8] = fourcc;
742 obj_surface->psb_surface = psb_surface;