/hardware/intel/img/psb_video/src/ |
H A D | psb_surface.c | 33 #include "psb_surface.h" 41 psb_surface_p psb_surface /* out */ 53 int tiling = GET_SURFACE_INFO_tiling(psb_surface); 66 psb_surface->stride_mode = STRIDE_512; 67 psb_surface->stride = 512; 69 psb_surface->stride_mode = STRIDE_1024; 70 psb_surface->stride = 1024; 72 psb_surface->stride_mode = STRIDE_1280; 73 psb_surface->stride = 1280; 76 psb_surface 247 psb_surface_create_camera(psb_driver_data_p driver_data, int width, int height, int stride, int size, psb_surface_p psb_surface, int is_v4l2, unsigned int id_or_ofs ) argument 286 psb_surface_create_camera_from_ub(psb_driver_data_p driver_data, int width, int height, int stride, int size, psb_surface_p psb_surface, int is_v4l2, unsigned int id_or_ofs, const unsigned long *user_ptr) argument 320 psb_surface_set_chroma(psb_surface_p psb_surface, int chroma) argument 337 psb_surface_destroy(psb_surface_p psb_surface) argument 345 psb_surface_sync(psb_surface_p psb_surface) argument 352 psb_surface_query_status(psb_surface_p psb_surface, VASurfaceStatus *status) argument 372 psb_surface_set_displaying(psb_driver_data_p driver_data, int width, int height, psb_surface_p psb_surface) argument [all...] |
H A D | psb_surface.h | 85 psb_surface_p psb_surface /* out */ 89 #define SET_SURFACE_INFO_rotate(psb_surface, rotate) psb_surface->extra_info[5] = (uint32_t) rotate; 90 #define GET_SURFACE_INFO_rotate(psb_surface) ((int) psb_surface->extra_info[5]) 91 #define GET_SURFACE_INFO_protect(psb_surface) ((int) psb_surface->extra_info[6]) 92 #define SET_SURFACE_INFO_protect(psb_surface, protect) (psb_surface->extra_info[6] = protect) 93 #define SET_SURFACE_INFO_tiling(psb_surface, tilin [all...] |
H A D | psb_surface_attrib.c | 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 53 psb_surface_create_from_ub( psb_driver_data_p driver_data, int width, int height, int fourcc, VASurfaceAttributeTPI *graphic_buffers, psb_surface_p psb_surface, void *vaddr, int fd, unsigned flags ) argument 332 psb_surface_p psb_surface; local 474 psb_surface_p psb_surface; local 560 psb_surface_p psb_surface; local 652 psb_surface_p psb_surface; local [all...] |
H A D | psb_surface_attrib.h | 31 #include "psb_surface.h" 40 psb_surface_p psb_surface, /* out */ 57 psb_surface_p psb_surface /* out */ 72 psb_surface_p psb_surface /* out */ 79 psb_surface_p psb_surface, /* out */ 92 psb_surface_p psb_surface, /* out */
|
H A D | pnw_rotate.c | 66 #define CHECK_SURFACE_REALLOC(psb_surface, msvdx_rotate, need) \ 68 int old_rotate = GET_SURFACE_INFO_rotate(psb_surface); \ 427 SET_SURFACE_INFO_rotate(obj_surface->psb_surface, 0); 446 psb_surface_p psb_surface = obj_surface->out_loop_surface; 450 if (psb_surface) { 453 free(psb_surface); 485 psb_surface_p psb_surface; local 498 psb_surface = obj_surface->scaling_surface; 500 if (psb_surface) { 502 psb_surface_destroy(psb_surface); [all...] |
H A D | pnw_MPEG2.c | 48 #define GET_SURFACE_INFO_is_defined(psb_surface) ((int) (psb_surface->extra_info[0])) 49 #define SET_SURFACE_INFO_is_defined(psb_surface, val) psb_surface->extra_info[0] = (uint32_t) val; 50 #define GET_SURFACE_INFO_picture_structure(psb_surface) (psb_surface->extra_info[1]) 51 #define SET_SURFACE_INFO_picture_structure(psb_surface, val) psb_surface->extra_info[1] = val; 52 #define GET_SURFACE_INFO_picture_coding_type(psb_surface) ((int) (psb_surface [all...] |
H A D | psb_output.c | 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 886 psb_surface_p psb_surface = obj_surface->psb_surface; local 1035 psb_surface_p psb_surface = obj_surface->psb_surface; local 1202 psb_surface_p psb_surface = obj_surface->psb_surface; local [all...] |
H A D | pnw_rotate.h | 29 #include "psb_surface.h" 91 psb_surface_p psb_surface,
|
H A D | vsp_compose.c | 32 #include "psb_surface.h" 101 yuv_stride = yuv_surface->psb_surface->stride; 105 out_stride = output_surface->psb_surface->stride; 109 rgb_stride = rgb_surface->psb_surface->stride; 121 &(rgb_surface->psb_surface->buf), 134 &(yuv_surface->psb_surface->buf), 150 &(output_surface->psb_surface->buf),
|
H A D | pnw_MPEG4.c | 47 #define GET_SURFACE_INFO_is_defined(psb_surface) ((int) (psb_surface->extra_info[0])) 48 #define SET_SURFACE_INFO_is_defined(psb_surface, val) psb_surface->extra_info[0] = (uint32_t) val; 49 #define GET_SURFACE_INFO_picture_structure(psb_surface) (psb_surface->extra_info[1]) 50 #define SET_SURFACE_INFO_picture_structure(psb_surface, val) psb_surface->extra_info[1] = val; 51 #define GET_SURFACE_INFO_picture_coding_type(psb_surface) ((int) (psb_surface [all...] |
H A D | pnw_hostcode.c | 572 CLEAR_SURFACE_INFO_skipped_flag(ctx->src_surface->psb_surface); 578 if (0 != (GET_SURFACE_INFO_skipped_flag(ctx->src_surface->psb_surface) 751 CLEAR_SURFACE_INFO_skipped_flag(rec_surface->psb_surface); 752 CLEAR_SURFACE_INFO_skipped_flag(ref_surface->psb_surface); 766 psPicParams->SrcYStride = src_surface->psb_surface->stride; 770 psPicParams->SrcUVStride = src_surface->psb_surface->stride / 2; 771 psPicParams->SrcUVRowStride = src_surface->psb_surface->stride * 8 / 2; 775 psPicParams->SrcUVStride = src_surface->psb_surface->stride; 776 psPicParams->SrcUVRowStride = src_surface->psb_surface->stride * 8; 781 psPicParams->SrcYRowStride = src_surface->psb_surface [all...] |
H A D | psb_drv_video.c | 53 #include "psb_surface.h" 598 psb_surface_sync(obj_surface->psb_surface); 599 psb_surface_destroy(obj_surface->psb_surface); 609 free(obj_surface->psb_surface); 865 psb_surface_p psb_surface; local 886 psb_surface = (psb_surface_p) calloc(1, sizeof(struct psb_surface_s)); 887 if (NULL == psb_surface) { 910 flags, psb_surface); 913 free(psb_surface); 919 buffer_stride = psb_surface 1174 psb_surface_p psb_surface; local 2233 psb_surface_p psb_surface = obj_surface->psb_surface; local 2244 psb_surface_p psb_surface = obj_surface->psb_surface; local 2791 psb_surface_p psb_surface; local 2835 psb_surface_p psb_surface = obj_surface->psb_surface; local 2856 psb_surface_p psb_surface = obj_surface->psb_surface; local 2884 psb_surface_p psb_surface; local [all...] |
H A D | tng_picmgmt.c | 389 ui16Stride = obj_surface_p->psb_surface->stride; 590 unsigned int srf_buf_offset = src_surface->psb_surface->buf.buffer_ofs; 630 &(src_surface->psb_surface->buf)); 634 &(src_surface->psb_surface->buf)); 638 &(src_surface->psb_surface->buf)); 643 &(src_surface->psb_surface->buf)); 647 &(src_surface->psb_surface->buf)); 651 &(src_surface->psb_surface->buf)); 654 &(src_surface->psb_surface->buf), 657 &(src_surface->psb_surface [all...] |
H A D | tng_VP8.c | 186 #define GET_SURFACE_INFO_picture_coding_type(psb_surface) ((int) (psb_surface->extra_info[2])) 187 #define SET_SURFACE_INFO_picture_coding_type(psb_surface, val) psb_surface->extra_info[2] = (uint32_t) val; 188 #define SET_SURFACE_INFO_rotate(psb_surface, rotate) psb_surface->extra_info[5] = (uint32_t) rotate; 189 #define GET_SURFACE_INFO_rotate(psb_surface) ((int) psb_surface->extra_info[5]) 344 psb_surface_p target_surface = ctx->obj_context->current_render_target->psb_surface; 378 psb_surface_p target_surface = ctx->obj_context->current_render_target->psb_surface; [all...] |
H A D | pnw_hostcode.h | 33 #include "psb_surface.h" 544 #define GET_SURFACE_INFO_skipped_flag(psb_surface) ((int) (psb_surface->extra_info[5])) 545 #define SET_SURFACE_INFO_skipped_flag(psb_surface, value) psb_surface->extra_info[5] = (SURFACE_INFO_SKIP_FLAG_SETTLED | value) 546 #define CLEAR_SURFACE_INFO_skipped_flag(psb_surface) psb_surface->extra_info[5] = 0
|
H A D | tng_hostcode.h | 37 #include "psb_surface.h" 482 #define GET_SURFACE_INFO_skipped_flag(psb_surface) ((int) (psb_surface->extra_info[5])) 483 #define SET_SURFACE_INFO_skipped_flag(psb_surface, value) psb_surface->extra_info[5] = (SURFACE_INFO_SKIP_FLAG_SETTLED | value) 484 #define CLEAR_SURFACE_INFO_skipped_flag(psb_surface) psb_surface->extra_info[5] = 0
|
/hardware/intel/img/psb_video/src/android/ |
H A D | psb_surface_gralloc.c | 30 #include "psb_surface.h" 62 buffer_handle_t handle = obj_surface->psb_surface->buf.handle; 147 psb_surface_p psb_surface; local 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 307 psb_surface_p psb_surface; local [all...] |
H A D | psb_output_android.c | 33 #include "psb_surface.h" 59 #define GET_SURFACE_INFO_rotate(psb_surface) ((int) psb_surface->extra_info[5]) 60 #define GET_SURFACE_INFO_protect(psb_surface) ((int) psb_surface->extra_info[6]) 167 psb_surface_p psb_surface; local 172 psb_surface = obj_surface->psb_surface; 174 // psb_surface->buf.drm_buf; 175 // psb_surface [all...] |
/hardware/intel/img/psb_video/src/x11/ |
H A D | psb_ctexture.c | 243 psb_surface_p psb_surface; local 258 psb_surface = obj_surface->psb_surface; 262 psb_surface = obj_surface->out_loop_surface; 272 if (!psb_surface) 273 psb_surface = obj_surface->psb_surface; 412 psb_surface->stride, psb_surface->buf.drm_buf, 413 psb_surface [all...] |
H A D | psb_x11.c | 36 #include "psb_surface.h" 156 psb_surface_p psb_surface = obj_surface->psb_surface; local 172 ret = psb_buffer_map(&psb_surface->buf, &surface_data); 224 uint8_t *src_y = surface_data + psb_surface->stride * srcy; 225 uint8_t *src_uv = surface_data + psb_surface->stride * (obj_surface->height + srcy / 2); 235 int y3 = *(src_y + x + psb_surface->stride); 236 int y4 = *(src_y + x + psb_surface->stride + 1); 248 src_y += psb_surface->stride * 2; 249 src_uv += psb_surface [all...] |
/hardware/intel/img/psb_video/src/mrst/ |
H A D | lnc_hostcode.c | 191 CLEAR_SURFACE_INFO_skipped_flag(ctx->src_surface->psb_surface); 299 CLEAR_SURFACE_INFO_skipped_flag(rec_surface->psb_surface); 300 CLEAR_SURFACE_INFO_skipped_flag(ref_surface->psb_surface); 314 psPicParams->SrcYStride = src_surface->psb_surface->stride; 318 psPicParams->SrcUVStride = src_surface->psb_surface->stride / 2; 319 psPicParams->SrcUVRowStride = src_surface->psb_surface->stride * 16 / 2; 323 psPicParams->SrcUVStride = src_surface->psb_surface->stride; 324 psPicParams->SrcUVRowStride = src_surface->psb_surface->stride * 16; 329 psPicParams->SrcYRowStride = src_surface->psb_surface->stride * 16; 330 /* psPicParams->SrcUVRowStride = src_surface->psb_surface [all...] |
H A D | psb_MPEG4.c | 32 #include "psb_surface.h" 48 #define GET_SURFACE_INFO_is_defined(psb_surface) ((int) (psb_surface->extra_info[0])) 49 #define SET_SURFACE_INFO_is_defined(psb_surface, val) psb_surface->extra_info[0] = (uint32_t) val; 50 #define GET_SURFACE_INFO_picture_structure(psb_surface) (psb_surface->extra_info[1]) 51 #define SET_SURFACE_INFO_picture_structure(psb_surface, val) psb_surface->extra_info[1] = val; 52 #define GET_SURFACE_INFO_picture_coding_type(psb_surface) ((in [all...] |
H A D | psb_MPEG2.c | 33 #include "psb_surface.h" 48 #define GET_SURFACE_INFO_is_defined(psb_surface) ((int) (psb_surface->extra_info[0])) 49 #define SET_SURFACE_INFO_is_defined(psb_surface, val) psb_surface->extra_info[0] = (uint32_t) val; 50 #define GET_SURFACE_INFO_picture_structure(psb_surface) (psb_surface->extra_info[1]) 51 #define SET_SURFACE_INFO_picture_structure(psb_surface, val) psb_surface->extra_info[1] = val; 52 #define GET_SURFACE_INFO_picture_coding_type(psb_surface) ((in [all...] |
H A D | psb_H264.c | 32 #include "psb_surface.h" 50 #define GET_SURFACE_INFO_is_used(psb_surface) ((int) (psb_surface->extra_info[0])) 51 #define SET_SURFACE_INFO_is_used(psb_surface, val) psb_surface->extra_info[0] = (uint32_t) val; 52 #define GET_SURFACE_INFO_col_pic_params(psb_surface) (psb_surface->extra_info[1]) 53 #define SET_SURFACE_INFO_col_pic_params(psb_surface, val) psb_surface->extra_info[1] = val; 54 #define GET_SURFACE_INFO_dpb_idx(psb_surface) (psb_surfac 485 psb_surface_p psb_surface; local [all...] |
H A D | lnc_hostcode.h | 35 #include "psb_surface.h" 515 #define GET_SURFACE_INFO_skipped_flag(psb_surface) ((int) (psb_surface->extra_info[5])) 516 #define SET_SURFACE_INFO_skipped_flag(psb_surface, value) psb_surface->extra_info[5] = (SURFACE_INFO_SKIP_FLAG_SETTLED | value) 517 #define CLEAR_SURFACE_INFO_skipped_flag(psb_surface) psb_surface->extra_info[5] = 0
|