/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/test/ |
D | decoder_driver_test.c | 389 if (ptemp [i]->pmem_fd != -1) in free_buffer() 393 close (ptemp [i]->pmem_fd); in free_buffer() 427 if (ptemp [i]->pmem_fd != -1) in free_buffer() 431 close (ptemp [i]->pmem_fd); in free_buffer() 553 ptemp [i]->pmem_fd = -1; in allocate_buffer() 559 ptemp [i]->pmem_fd = open ("/dev/pmem_adsp",O_RDWR); in allocate_buffer() 561 if (ptemp [i]->pmem_fd < 0) in allocate_buffer() 568 MAP_SHARED,ptemp [i]->pmem_fd,0); in allocate_buffer() 569 DEBUG_PRINT ("\n pmem fd = %d virt addr = %p",ptemp [i]->pmem_fd,\ in allocate_buffer() 637 fillbuffer.buffer.pmem_fd = in start_decoding() [all …]
|
D | omx_vdec_test.cpp | 181 int pmem_fd; member 368 static bool align_pmem_buffers(int pmem_fd, OMX_U32 buffer_size, 2349 p_eglHeaders[bufCnt]->pmem_fd = open(PMEM_DEVICE,O_RDWR); in use_output_buffer() 2351 if(p_eglHeaders[bufCnt]->pmem_fd < 0) { in use_output_buffer() 2358 align_pmem_buffers(p_eglHeaders[bufCnt]->pmem_fd, bufSize, in use_output_buffer() 2361 DEBUG_PRINT_ERROR("\n allocation size %d pmem fd %d",bufSize,p_eglHeaders[bufCnt]->pmem_fd); in use_output_buffer() 2363 MAP_SHARED,p_eglHeaders[bufCnt]->pmem_fd,0); in use_output_buffer() 2428 pPMEMInfo[bufCnt].pmem_fd = open(PMEM_DEVICE,O_RDWR);; in use_output_buffer_multiple_fd() 2429 if(pPMEMInfo[bufCnt].pmem_fd < 0) { in use_output_buffer_multiple_fd() 2435 align_pmem_buffers(pPMEMInfo[bufCnt].pmem_fd, bufSize, in use_output_buffer_multiple_fd() [all …]
|
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/test/ |
D | decoder_driver_test.c | 370 if (ptemp [i]->pmem_fd != -1) { in free_buffer() 373 close (ptemp [i]->pmem_fd); in free_buffer() 402 if (ptemp [i]->pmem_fd != -1) { in free_buffer() 405 close (ptemp [i]->pmem_fd); in free_buffer() 513 ptemp [i]->pmem_fd = -1; in allocate_buffer() 518 ptemp [i]->pmem_fd = open ("/dev/pmem_adsp",O_RDWR); in allocate_buffer() 520 if (ptemp [i]->pmem_fd < 0) { in allocate_buffer() 526 MAP_SHARED,ptemp [i]->pmem_fd,0); in allocate_buffer() 527 DEBUG_PRINT ("\n pmem fd = %d virt addr = %p",ptemp [i]->pmem_fd,\ in allocate_buffer() 594 fillbuffer.buffer.pmem_fd = in start_decoding() [all …]
|
D | omx_vdec_test.cpp | 303 int pmem_fd; member 503 static bool align_pmem_buffers(int pmem_fd, OMX_U32 buffer_size, 2595 p_eglHeaders[bufCnt]->pmem_fd = open(PMEM_DEVICE,O_RDWR); in use_output_buffer() 2597 if (p_eglHeaders[bufCnt]->pmem_fd < 0) { in use_output_buffer() 2604 align_pmem_buffers(p_eglHeaders[bufCnt]->pmem_fd, bufSize, in use_output_buffer() 2607 …RINT_ERROR("\n allocation size %u pmem fd %d",(unsigned int)bufSize,p_eglHeaders[bufCnt]->pmem_fd); in use_output_buffer() 2609 MAP_SHARED,p_eglHeaders[bufCnt]->pmem_fd,0); in use_output_buffer() 2674 pPMEMInfo[bufCnt].pmem_fd = open(PMEM_DEVICE,O_RDWR);; in use_output_buffer_multiple_fd() 2675 if ((int)pPMEMInfo[bufCnt].pmem_fd < 0) { in use_output_buffer_multiple_fd() 2681 align_pmem_buffers(pPMEMInfo[bufCnt].pmem_fd, bufSize, in use_output_buffer_multiple_fd() [all …]
|
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/src/ |
D | omx_vdec.cpp | 3953 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd; in use_output_buffer() 3980 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer() 3983 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer() 3986 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer() 3990 if (drv_ctx.ptr_outputbuffer[i].pmem_fd == 0) { in use_output_buffer() 3991 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer() 3994 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer() 3999 if (!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd, in use_output_buffer() 4003 close(drv_ctx.ptr_outputbuffer[i].pmem_fd); in use_output_buffer() 4013 drv_ctx.ptr_outputbuffer[i].pmem_fd,0); in use_output_buffer() [all …]
|
D | omx_vdec_hevc.cpp | 3711 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd; in use_output_buffer() 3730 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer() 3733 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer() 3736 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer() 3737 … DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd); in use_output_buffer() 3742 if (drv_ctx.ptr_outputbuffer[i].pmem_fd == 0) { in use_output_buffer() 3743 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer() 3745 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer() 3746 … DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd); in use_output_buffer() 3751 if (!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd, in use_output_buffer() [all …]
|
D | omx_vdec_msm8974.cpp | 4826 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd; in use_output_buffer() 4844 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer() 4847 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer() 4850 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer() 4851 … DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd); in use_output_buffer() 4856 if (drv_ctx.ptr_outputbuffer[i].pmem_fd == 0) { in use_output_buffer() 4857 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer() 4859 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer() 4860 … DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd); in use_output_buffer() 4865 if (!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd, in use_output_buffer() [all …]
|
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/src/ |
D | omx_vdec.cpp | 4174 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd; in use_output_buffer() 4192 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer() 4195 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer() 4198 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer() 4202 if(drv_ctx.ptr_outputbuffer[i].pmem_fd == 0) in use_output_buffer() 4204 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer() 4206 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer() 4211 if(!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd, in use_output_buffer() 4216 close(drv_ctx.ptr_outputbuffer[i].pmem_fd); in use_output_buffer() 4224 drv_ctx.ptr_outputbuffer[i].pmem_fd,0); in use_output_buffer() [all …]
|
D | omx_vdec_copper.cpp | 3837 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd; in use_output_buffer() 3854 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer() 3857 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer() 3860 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer() 3864 if(drv_ctx.ptr_outputbuffer[i].pmem_fd == 0) in use_output_buffer() 3866 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer() 3868 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer() 3873 if(!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd, in use_output_buffer() 3878 close(drv_ctx.ptr_outputbuffer[i].pmem_fd); in use_output_buffer() 3886 drv_ctx.ptr_outputbuffer[i].pmem_fd,0); in use_output_buffer() [all …]
|
/hardware/qcom/msm8960/original-kernel-headers/linux/ |
D | msm_vidc_dec.h | 255 int pmem_fd; member 505 int pmem_fd; member 521 int pmem_fd; member 580 int pmem_fd; member 594 int pmem_fd; member
|
/hardware/qcom/msm8994/kernel-headers/linux/ |
D | msm_vidc_dec.h | 184 int pmem_fd; member 467 int pmem_fd; member 485 int pmem_fd; member 550 int pmem_fd; member 565 int pmem_fd; member
|
/hardware/qcom/msm8960/kernel-headers/linux/ |
D | msm_vidc_dec.h | 181 int pmem_fd; member 462 int pmem_fd; member 480 int pmem_fd; member 544 int pmem_fd; member 559 int pmem_fd; member
|
/hardware/qcom/msm8998/original-kernel-headers/linux/ |
D | msm_vidc_dec.h | 255 int pmem_fd; member 514 int pmem_fd; member 530 int pmem_fd; member 593 int pmem_fd; member 607 int pmem_fd; member
|
/hardware/qcom/msm8998/kernel-headers/linux/ |
D | msm_vidc_dec.h | 184 int pmem_fd; member 474 int pmem_fd; member 491 int pmem_fd; member 560 int pmem_fd; member 575 int pmem_fd; member
|
/hardware/qcom/msm8x84/kernel-headers/linux/ |
D | msm_vidc_dec.h | 184 int pmem_fd; member 467 int pmem_fd; member 485 int pmem_fd; member 550 int pmem_fd; member 565 int pmem_fd; member
|
/hardware/qcom/msm8996/kernel-headers/linux/ |
D | msm_vidc_dec.h | 184 int pmem_fd; member 471 int pmem_fd; member 489 int pmem_fd; member 557 int pmem_fd; member 572 int pmem_fd; member
|
/hardware/qcom/msm8996/original-kernel-headers/linux/ |
D | msm_vidc_dec.h | 255 int pmem_fd; member 510 int pmem_fd; member 526 int pmem_fd; member 589 int pmem_fd; member 603 int pmem_fd; member
|
/hardware/qcom/msm8994/original-kernel-headers/linux/ |
D | msm_vidc_dec.h | 255 int pmem_fd; member 507 int pmem_fd; member 523 int pmem_fd; member 583 int pmem_fd; member 597 int pmem_fd; member
|
/hardware/qcom/msm8x84/original-kernel-headers/linux/ |
D | msm_vidc_dec.h | 255 int pmem_fd; member 507 int pmem_fd; member 523 int pmem_fd; member 583 int pmem_fd; member 597 int pmem_fd; member
|
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/src/ |
D | omx_vdec_hevc_swvdec.cpp | 4677 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd; in use_output_buffer() 4699 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer() 4702 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer() 4705 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer() 4706 … DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd); in use_output_buffer() 4711 if(drv_ctx.ptr_outputbuffer[i].pmem_fd == 0) in use_output_buffer() 4713 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer() 4715 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer() 4716 … DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd); in use_output_buffer() 4721 if(!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd, in use_output_buffer() [all …]
|
D | omx_swvdec.cpp | 2054 p_buffer_payload->pmem_fd = p_private_handle->fd; in fill_this_buffer() 2066 p_buffer_payload->pmem_fd, in fill_this_buffer() 3275 int pmem_fd = -1; in buffer_allocate_ip() local 3295 pmem_fd = m_buffer_array_ip[ii].ion_info.ion_fd_data.fd; in buffer_allocate_ip() 3301 pmem_fd, in buffer_allocate_ip() 3307 pmem_fd, in buffer_allocate_ip() 3309 close(pmem_fd); in buffer_allocate_ip() 3318 m_buffer_array_ip[ii].buffer_payload.pmem_fd = pmem_fd; in buffer_allocate_ip() 3412 int pmem_fd = -1; in buffer_allocate_op() local 3432 pmem_fd = m_buffer_array_op[ii].ion_info.ion_fd_data.fd; in buffer_allocate_op() [all …]
|
/hardware/qcom/sm8150/media/mm-video-v4l2/vidc/vdec/src/ |
D | omx_swvdec.cpp | 2236 p_buffer_payload->pmem_fd = p_private_handle->fd; in fill_this_buffer() 2245 meta_buffer_ref_add(ii, p_buffer_payload->pmem_fd); in fill_this_buffer() 3627 int pmem_fd = -1; in buffer_allocate_ip() local 3644 pmem_fd = m_buffer_array_ip[ii].ion_info.data_fd; in buffer_allocate_ip() 3646 bufferaddr = ion_map(pmem_fd,size); in buffer_allocate_ip() 3651 pmem_fd, in buffer_allocate_ip() 3654 close(pmem_fd); in buffer_allocate_ip() 3663 m_buffer_array_ip[ii].buffer_payload.pmem_fd = pmem_fd; in buffer_allocate_ip() 3672 m_buffer_array_ip[ii].buffer_swvdec.fd = pmem_fd; in buffer_allocate_ip() 3686 close(pmem_fd); in buffer_allocate_ip() [all …]
|
/hardware/qcom/sdm845/media/mm-video-v4l2/vidc/vdec/src/ |
D | omx_swvdec.cpp | 2241 p_buffer_payload->pmem_fd = p_private_handle->fd; in fill_this_buffer() 2250 meta_buffer_ref_add(ii, p_buffer_payload->pmem_fd); in fill_this_buffer() 3632 int pmem_fd = -1; in buffer_allocate_ip() local 3652 pmem_fd = m_buffer_array_ip[ii].ion_info.ion_fd_data.fd; in buffer_allocate_ip() 3658 pmem_fd, in buffer_allocate_ip() 3664 pmem_fd, in buffer_allocate_ip() 3667 close(pmem_fd); in buffer_allocate_ip() 3677 m_buffer_array_ip[ii].buffer_payload.pmem_fd = pmem_fd; in buffer_allocate_ip() 3692 pmem_fd, in buffer_allocate_ip() 3772 int pmem_fd = -1; in buffer_allocate_op() local [all …]
|
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/src/ |
D | video_encoder_device.cpp | 1249 OMX_U32 pmem_fd = -1; in pmem_allocate() local 1288 pmem_fd = recon_buff[count].ion_alloc_fd.fd; in pmem_allocate() 1291 pmem_fd = open(MEM_DEVICE, O_RDWR); in pmem_allocate() 1293 if ((int)(pmem_fd) < 0) in pmem_allocate() 1305 if (ioctl(pmem_fd, PMEM_ALLOCATE_ALIGNED, &allocation) < 0) in pmem_allocate() 1315 MAP_SHARED, pmem_fd, 0); in pmem_allocate() 1319 close(pmem_fd); in pmem_allocate() 1320 pmem_fd = -1; in pmem_allocate() 1336 DEBUG_PRINT_HIGH("\n Allocated virt:%p, FD: %d of size %d \n", buf_addr, pmem_fd, size); in pmem_allocate() 1339 recon_addr.pmem_fd = pmem_fd; in pmem_allocate() [all …]
|
D | video_encoder_device_copper.cpp | 1219 OMX_U32 pmem_fd = -1; in pmem_allocate() local 1255 pmem_fd = recon_buff[count].ion_alloc_fd.fd; in pmem_allocate() 1257 pmem_fd = open(MEM_DEVICE, O_RDWR); in pmem_allocate() 1259 if ((int)(pmem_fd) < 0) in pmem_allocate() 1271 if (ioctl(pmem_fd, PMEM_ALLOCATE_ALIGNED, &allocation) < 0) in pmem_allocate() 1280 MAP_SHARED, pmem_fd, 0); in pmem_allocate() 1284 close(pmem_fd); in pmem_allocate() 1285 pmem_fd = -1; in pmem_allocate() 1300 DEBUG_PRINT_HIGH("\n Allocated virt:%p, FD: %d of size %d \n", buf_addr, pmem_fd, size); in pmem_allocate() 1303 recon_addr.pmem_fd = pmem_fd; in pmem_allocate() [all …]
|