/hardware/intel/img/psb_video/src/android/ |
D | psb_surface_gralloc.c | 58 VAStatus psb_DestroySurfaceGralloc(object_surface_p obj_surface) in psb_DestroySurfaceGralloc() argument 62 buffer_handle_t handle = obj_surface->psb_surface->buf.handle; in psb_DestroySurfaceGralloc() 70 … obj_surface->width, obj_surface->height, (void **)&vaddr[GRALLOC_SUB_BUFFER0])){ in psb_DestroySurfaceGralloc() 71 if (obj_surface->share_info && vaddr[GRALLOC_SUB_BUFFER1] == obj_surface->share_info) { in psb_DestroySurfaceGralloc() 72 int metadata_rotate = obj_surface->share_info->metadata_rotate; in psb_DestroySurfaceGralloc() 73 int surface_protected = obj_surface->share_info->surface_protected; in psb_DestroySurfaceGralloc() 74 int force_output_method = obj_surface->share_info->force_output_method; in psb_DestroySurfaceGralloc() 75 int bob_deinterlace = obj_surface->share_info->bob_deinterlace; in psb_DestroySurfaceGralloc() 77 memset(obj_surface->share_info, 0, sizeof(struct psb_surface_share_info_s)); in psb_DestroySurfaceGralloc() 79 obj_surface->share_info->metadata_rotate = metadata_rotate; in psb_DestroySurfaceGralloc() [all …]
|
D | psb_output_android.c | 165 object_surface_p obj_surface; in psb_putsurface_ctexture() local 170 obj_surface = SURFACE(surface); in psb_putsurface_ctexture() 171 CHECK_SURFACE(obj_surface); in psb_putsurface_ctexture() 172 psb_surface = obj_surface->psb_surface; in psb_putsurface_ctexture() 178 obj_surface->width, obj_surface->height, in psb_putsurface_ctexture() 290 object_surface_p obj_surface; 316 obj_surface = SURFACE(surface); 317 if (obj_surface == NULL) { 337 psb_RecalcRotate(ctx, CONTEXT(obj_surface->context_id)); 401 psb_RecalcRotate(ctx, CONTEXT(obj_surface->context_id)); [all …]
|
/hardware/intel/img/psb_video/src/ |
D | psb_surface_attrib.c | 141 object_surface_p obj_surface; 164 obj_surface = SURFACE(surfaceID); 165 CHECK_ALLOCATION(obj_surface); 167 MEMSET_OBJECT(obj_surface, struct object_surface_s); 179 obj_surface->surface_id = surfaceID; 181 obj_surface->context_id = -1; 182 obj_surface->width = width; 183 obj_surface->height = height; 184 obj_surface->subpictures = NULL; 185 obj_surface->subpic_count = 0; [all …]
|
D | pnw_rotate.c | 169 object_surface_p obj_surface = obj_context->current_render_target; in psb_RecalcAlternativeOutput() local 208 object_surface_p obj_surface = SURFACE(obj_context->render_targets[i]); in psb_RecalcAlternativeOutput() local 210 if (obj_surface && obj_surface->share_info) { in psb_RecalcAlternativeOutput() 211 if (obj_surface->share_info->hwc_timestamp > hwc_timestamp) { in psb_RecalcAlternativeOutput() 212 hwc_timestamp = obj_surface->share_info->hwc_timestamp; in psb_RecalcAlternativeOutput() 218 object_surface_p obj_surface = SURFACE(obj_context->render_targets[index]); in psb_RecalcAlternativeOutput() local 219 if (obj_surface && obj_surface->share_info) { in psb_RecalcAlternativeOutput() 220 int transform = obj_surface->share_info->layer_transform; in psb_RecalcAlternativeOutput() 238 object_surface_p obj_surface = SURFACE(obj_context->render_targets[i]); in psb_RecalcAlternativeOutput() local 240 if (obj_surface && obj_surface->share_info) { in psb_RecalcAlternativeOutput() [all …]
|
D | psb_drv_video.c | 590 void psb__destroy_surface(psb_driver_data_p driver_data, object_surface_p obj_surface) in psb__destroy_surface() argument 592 if (NULL != obj_surface) { in psb__destroy_surface() 594 psb_SurfaceDeassociateSubpict(driver_data, obj_surface); in psb__destroy_surface() 596 obj_surface->is_ref_surface = 0; in psb__destroy_surface() 598 psb_surface_sync(obj_surface->psb_surface); in psb__destroy_surface() 599 psb_surface_destroy(obj_surface->psb_surface); in psb__destroy_surface() 601 if (obj_surface->out_loop_surface) { in psb__destroy_surface() 602 psb_surface_destroy(obj_surface->out_loop_surface); in psb__destroy_surface() 605 if (obj_surface->scaling_surface) { in psb__destroy_surface() 606 psb_surface_destroy(obj_surface->scaling_surface); in psb__destroy_surface() [all …]
|
D | psb_output.c | 472 object_surface_p obj_surface = SURFACE(surface); in psb_DeriveImage() local 476 CHECK_SURFACE(obj_surface); in psb_DeriveImage() 479 if (obj_surface->is_ref_surface == 1 || obj_surface->is_ref_surface == 2) { in psb_DeriveImage() 495 fourcc = obj_surface->psb_surface->extra_info[4]; in psb_DeriveImage() 528 obj_buffer->psb_buffer = &obj_surface->psb_surface->buf; in psb_DeriveImage() 529 obj_buffer->size = obj_surface->psb_surface->size; in psb_DeriveImage() 539 obj_image->image.width = obj_surface->width; in psb_DeriveImage() 540 obj_image->image.height = obj_surface->height; in psb_DeriveImage() 541 obj_image->image.data_size = obj_surface->psb_surface->size; in psb_DeriveImage() 543 srf_buf_ofs = obj_surface->psb_surface->buf.buffer_ofs; in psb_DeriveImage() [all …]
|
D | pnw_rotate.h | 70 object_surface_p obj_surface, 75 object_surface_p obj_surface, 81 object_surface_p obj_surface 86 object_surface_p obj_surface,
|
D | psb_overlay.c | 849 object_surface_p obj_surface, in I830PutImageFlipRotateSurface() argument 872 psb_surface = obj_surface->out_loop_surface; in I830PutImageFlipRotateSurface() 873 width = obj_surface->width_r; in I830PutImageFlipRotateSurface() 874 height = obj_surface->height_r; in I830PutImageFlipRotateSurface() 895 psb_surface = obj_surface->out_loop_surface; in I830PutImageFlipRotateSurface() 896 width = obj_surface->width_r; in I830PutImageFlipRotateSurface() 897 height = obj_surface->height_r; in I830PutImageFlipRotateSurface() 938 object_surface_p obj_surface; in I830PutImageFlipRotateDebug() local 942 obj_surface = SURFACE(surface); in I830PutImageFlipRotateDebug() 943 CHECK_SURFACE(obj_surface); in I830PutImageFlipRotateDebug() [all …]
|
D | psb_surface_attrib.h | 100 VAStatus psb_DestroySurfaceGralloc(object_surface_p obj_surface); 115 static VAStatus psb_DestroySurfaceGralloc(object_surface_p obj_surface) in psb_DestroySurfaceGralloc() argument
|
D | psb_texture.c | 469 object_surface_p obj_surface = SURFACE(surface); in psb_wrap_surface_pvr2dbuf() local 474 CHECK_SURFACE(obj_surface); in psb_wrap_surface_pvr2dbuf() 475 psb_surface = obj_surface->psb_surface; in psb_wrap_surface_pvr2dbuf() 535 object_surface_p obj_surface; 538 obj_surface = SURFACE(surface); 548 if (NULL == obj_surface) { 552 surface_subpic = (PsbVASurfaceRec *)obj_surface->subpictures; 637 if (subtitle == 1 && obj_surface->subpic_count) { 638 for (i = 0; i < obj_surface->subpic_count; i++) { 641 … psb_calculate_subpic_size(obj_surface->width, obj_surface->height, dst_w, dst_h, surface_subpic); [all …]
|
D | tng_yuv_processor.c | 238 object_surface_p obj_surface = SURFACE(vpp_params->surface); in tng__yuv_processor_execute() local 241 if (obj_surface == NULL){ in tng__yuv_processor_execute() 248 ctx->display_width = ((obj_surface->width + 0xf) & ~0xf); in tng__yuv_processor_execute() 249 ctx->display_height = ((obj_surface->height + 0xf) & ~0xf); in tng__yuv_processor_execute() 253 ctx->src_surface = obj_surface->psb_surface; in tng__yuv_processor_execute()
|
D | psb_drv_video.h | 780 void psb__destroy_surface(psb_driver_data_p driver_data, object_surface_p obj_surface); 789 #define CHECK_SURFACE(obj_surface) \ argument 791 if (NULL == obj_surface) { \
|
D | tng_VP8.c | 608 object_surface_p obj_surface = ctx->obj_context->current_render_target; in tng__VP8_process_picture_param() local 609 psb_surface_p target_surface = obj_surface->psb_surface; in tng__VP8_process_picture_param() 638 if (obj_surface->share_info) { in tng__VP8_process_picture_param() 639 obj_surface->share_info->coded_width = ctx->pic_params->frame_width; in tng__VP8_process_picture_param() 640 obj_surface->share_info->coded_height = ctx->pic_params->frame_height; in tng__VP8_process_picture_param() 1539 object_surface_p obj_surface = NULL; in tng_VP8_EndPicture() local 1540 if (!obj_surface) in tng_VP8_EndPicture() 1541 obj_surface = obj_context->current_render_target; in tng_VP8_EndPicture()
|
D | psb_output.h | 358 object_surface_p obj_surface
|
D | tng_vld_dec.c | 346 VAStatus vld_dec_allocate_colocated_buffer(context_DEC_p ctx, object_surface_p obj_surface, uint32_… in vld_dec_allocate_colocated_buffer() argument 350 psb_surface_p surface = obj_surface->psb_surface; in vld_dec_allocate_colocated_buffer()
|
D | pnw_MPEG2.c | 714 object_surface_p obj_surface = ctx->obj_context->current_render_target; in psb__MPEG2_process_picture_param() local 770 if (obj_surface->share_info) { in psb__MPEG2_process_picture_param() 771 obj_surface->share_info->coded_width = ctx->coded_picture_width; in psb__MPEG2_process_picture_param() 772 obj_surface->share_info->coded_height = ctx->coded_picture_height; in psb__MPEG2_process_picture_param()
|
D | pnw_MPEG4.c | 1385 object_surface_p obj_surface = ctx->obj_context->current_render_target; in psb__MPEG4_process_picture_param() local 1472 if (obj_surface->share_info) { in psb__MPEG4_process_picture_param() 1473 obj_surface->share_info->coded_width = ctx->coded_picture_width; in psb__MPEG4_process_picture_param() 1474 obj_surface->share_info->coded_height = ctx->coded_picture_height; in psb__MPEG4_process_picture_param()
|
D | pnw_H264.c | 552 object_surface_p obj_surface = ctx->obj_context->current_render_target; in psb__H264_process_picture_param() local 616 if (obj_surface->share_info) { in psb__H264_process_picture_param() 617 obj_surface->share_info->coded_width = ctx->picture_width_samples_l; in psb__H264_process_picture_param() 618 obj_surface->share_info->coded_height = ctx->picture_height_samples_l; in psb__H264_process_picture_param()
|
D | pnw_VC1.c | 720 object_surface_p obj_surface = ctx->obj_context->current_render_target; in psb__VC1_process_picture_param() local 811 if (obj_surface->share_info) { in psb__VC1_process_picture_param() 812 obj_surface->share_info->coded_width = ctx->coded_picture_width; in psb__VC1_process_picture_param() 813 obj_surface->share_info->coded_height = ctx->coded_picture_height; in psb__VC1_process_picture_param()
|
/hardware/intel/img/psb_video/src/x11/ |
D | psb_xvva.c | 388 object_surface_p obj_surface = SURFACE(surface); in psb__CheckPutSurfaceXvPort() local 392 if (obj_surface && obj_surface->psb_surface) in psb__CheckPutSurfaceXvPort() 393 buf_pl = obj_surface->psb_surface->buf.pl_flags; in psb__CheckPutSurfaceXvPort() 416 || (obj_surface->width > 1920) /* overlay have isue to support >1920xXXX resolution */ in psb__CheckPutSurfaceXvPort() 417 || (obj_surface->subpic_count > 0) /* overlay can't support subpicture */ in psb__CheckPutSurfaceXvPort() 469 object_surface_p obj_surface = SURFACE(surface); /* surface already checked */ in psb__CheckGCXvImage() local 499 if (obj_surface && in psb__CheckGCXvImage() 500 ((output->output_width != obj_surface->width) || in psb__CheckGCXvImage() 501 (output->output_height != obj_surface->height) || in psb__CheckGCXvImage() 510 obj_surface->width, obj_surface->height); in psb__CheckGCXvImage() [all …]
|
D | psb_x11.c | 149 object_surface_p obj_surface = SURFACE(surface); in psb_putsurface_x11() local 150 if (NULL == obj_surface) { in psb_putsurface_x11() 156 psb_surface_p psb_surface = obj_surface->psb_surface; in psb_putsurface_x11() 225 uint8_t *src_uv = surface_data + psb_surface->stride * (obj_surface->height + srcy / 2); in psb_putsurface_x11() 407 static int pnw_check_output_method(VADriverContextP ctx, object_surface_p obj_surface, int width, i… in pnw_check_output_method() argument 436 || (IS_MRST(driver_data) && obj_surface->subpic_count > 0) in pnw_check_output_method() 437 || (obj_surface->subpic_count && ((width > destw) || (height > desth))) in pnw_check_output_method() 473 object_surface_p obj_surface; in psb_PutSurface() local 476 obj_surface = SURFACE(surface); in psb_PutSurface() 478 if (NULL == obj_surface) { in psb_PutSurface() [all …]
|
D | psb_ctexture.c | 242 object_surface_p obj_surface = SURFACE(surface); in psb_putsurface_ctexture() local 251 obj_surface = SURFACE(surface); in psb_putsurface_ctexture() 252 if (NULL == obj_surface) { in psb_putsurface_ctexture() 258 psb_surface = obj_surface->psb_surface; in psb_putsurface_ctexture() 259 surface_width = obj_surface->width; in psb_putsurface_ctexture() 260 surface_height = obj_surface->height; in psb_putsurface_ctexture() 262 psb_surface = obj_surface->out_loop_surface; in psb_putsurface_ctexture() 268 surface_width = obj_surface->width_r; in psb_putsurface_ctexture() 269 surface_height = obj_surface->height_r; in psb_putsurface_ctexture() 273 psb_surface = obj_surface->psb_surface; in psb_putsurface_ctexture() [all …]
|
D | psb_coverlay.c | 538 object_surface_p obj_surface = SURFACE(surface); in psb_repaint_colorkey() local 583 if (!obj_surface->subpictures && in psb_repaint_colorkey() 594 if ((!obj_surface->subpictures) && in psb_repaint_colorkey() 847 object_surface_p obj_surface in psb_clear_subpictures() argument 851 PsbVASurfaceRec *subpicture = (PsbVASurfaceRec *)obj_surface->subpictures; in psb_clear_subpictures() 901 object_surface_p obj_surface = SURFACE(surface); in psb_putsurface_coverlay() local 931 if (NULL == obj_surface) { in psb_putsurface_coverlay() 943 if (!obj_surface->subpictures && !driver_data->overlay_auto_paint_color_key) { in psb_putsurface_coverlay() 1255 if (!obj_surface->subpictures) { in psb_putsurface_coverlay() 1284 if (pPriv->is_mfld && obj_surface->subpictures) { in psb_putsurface_coverlay() [all …]
|
/hardware/intel/img/psb_video/src/mrst/ |
D | psb_H264.c | 484 object_surface_p obj_surface = SURFACE(obj_context->render_targets[i]); in psb_H264_CreateContext() local 487 if (NULL == obj_surface) { in psb_H264_CreateContext() 493 psb_surface = obj_surface->psb_surface; in psb_H264_CreateContext() 554 …sb__H264_allocate_colocated_buffer(context_H264_p ctx, object_surface_p obj_surface, uint32_t size) in psb__H264_allocate_colocated_buffer() argument 556 psb_surface_p surface = obj_surface->psb_surface; in psb__H264_allocate_colocated_buffer()
|
D | psb_MPEG4.c | 552 …__MPEG4_allocate_colocated_buffer(context_MPEG4_p ctx, object_surface_p obj_surface, uint32_t size) in psb__MPEG4_allocate_colocated_buffer() argument 554 psb_surface_p surface = obj_surface->psb_surface; in psb__MPEG4_allocate_colocated_buffer()
|