Lines Matching defs:psb_surface
42 #include "psb_surface.h"
495 fourcc = obj_surface->psb_surface->extra_info[4];
528 obj_buffer->psb_buffer = &obj_surface->psb_surface->buf;
529 obj_buffer->size = obj_surface->psb_surface->size;
541 obj_image->image.data_size = obj_surface->psb_surface->size;
543 srf_buf_ofs = obj_surface->psb_surface->buf.buffer_ofs;
548 obj_image->image.pitches[0] = obj_surface->psb_surface->stride;
549 obj_image->image.pitches[1] = obj_surface->psb_surface->stride;
552 obj_image->image.offsets[1] = srf_buf_ofs + obj_surface->height * obj_surface->psb_surface->stride;
563 obj_image->image.pitches[0] = obj_surface->psb_surface->stride;
564 obj_image->image.pitches[1] = obj_surface->psb_surface->stride / 2;
565 obj_image->image.pitches[2] = obj_surface->psb_surface->stride / 2;
568 obj_image->image.offsets[1] = srf_buf_ofs + obj_surface->height * obj_surface->psb_surface->stride;
569 obj_image->image.offsets[2] = srf_buf_ofs + obj_surface->height * obj_surface->psb_surface->stride * 3 / 2;
580 obj_image->image.pitches[0] = obj_surface->psb_surface->stride;
581 obj_image->image.pitches[1] = obj_surface->psb_surface->stride;
582 obj_image->image.pitches[2] = obj_surface->psb_surface->stride;
585 obj_image->image.offsets[1] = srf_buf_ofs + obj_surface->height * obj_surface->psb_surface->stride;
586 obj_image->image.offsets[2] = srf_buf_ofs + obj_surface->height * obj_surface->psb_surface->stride * 2;
886 psb_surface_p psb_surface = obj_surface->psb_surface;
888 ret = psb_buffer_map(&psb_surface->buf, &surface_data);
901 psb_buffer_unmap(&psb_surface->buf);
906 image_data += obj_surface->psb_surface->buf.buffer_ofs;
920 src_y = surface_data + y * psb_surface->stride + x;
935 src_y = surface_data + y * psb_surface->stride + x;
950 src_y = surface_data + y * psb_surface->stride + x;
954 src_y += psb_surface->stride;
959 src_uv = surface_data + psb_surface->stride * obj_surface->height + (y / 2) * psb_surface->stride + x;;
963 src_uv += psb_surface->stride;
974 if (psb_surface->extra_info[4] == VA_FOURCC_IREC) {
980 source_y = surface_data + dest_y * psb_surface->stride + dest_x;
981 source_uv = surface_data + obj_surface->height * psb_surface->stride
982 + dest_y * (psb_surface->stride / 2) + dest_x;
999 psb_buffer_unmap(&psb_surface->buf);
1035 psb_surface_p psb_surface = obj_surface->psb_surface;
1037 ret = psb_buffer_map(&psb_surface->buf, &surface_data);
1048 psb_buffer_unmap(&psb_surface->buf);
1052 image_data += obj_surface->psb_surface->buf.buffer_ofs;
1061 dst_y = surface_data + dest_y * psb_surface->stride + dest_x;
1065 dst_y += psb_surface->stride;
1070 dst_uv = surface_data + psb_surface->stride * obj_surface->height + (dest_y / 2) * psb_surface->stride + dest_x;
1074 dst_uv += psb_surface->stride;
1089 dst_y = surface_data + dest_y * psb_surface->stride + dest_x;
1090 dst_u = surface_data + obj_surface->height * psb_surface->stride
1091 + dest_y * (psb_surface->stride / 2) + dest_x;
1092 dst_v = surface_data + obj_surface->height * psb_surface->stride
1093 + (obj_surface->height / 2) * (psb_surface->stride / 2)
1094 + dest_y * (psb_surface->stride / 2) + dest_x;
1099 dst_y += psb_surface->stride;
1110 dst_u += psb_surface->stride / 2;
1111 dst_v += psb_surface->stride / 2;
1121 psb_buffer_unmap(&psb_surface->buf);
1202 psb_surface_p psb_surface = obj_surface->psb_surface;
1204 ret = psb_buffer_map(&psb_surface->buf, &surface_data);
1215 psb_buffer_unmap(&psb_surface->buf);
1229 dst_y = (unsigned char *)(surface_data + dest_y * psb_surface->stride + dest_x);
1230 dst_uv = (unsigned short *)(surface_data + psb_surface->stride * obj_surface->height
1231 + (dest_y / 2) * psb_surface->stride + dest_x);
1255 dst_y += psb_surface->stride;
1258 dst_uv = (unsigned short *)((unsigned char *)dst_uv + psb_surface->stride);
1267 psb_buffer_unmap(&psb_surface->buf);