/hardware/qcom/media/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/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/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_hevc_swvdec.cpp | 4480 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd; in use_output_buffer() 4502 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer() 4505 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer() 4508 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer() 4509 … DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd); in use_output_buffer() 4514 if(drv_ctx.ptr_outputbuffer[i].pmem_fd == 0) in use_output_buffer() 4516 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer() 4518 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer() 4519 … DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd); in use_output_buffer() 4524 if(!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd, in use_output_buffer() [all …]
|
D | omx_vdec_msm8974.cpp | 4766 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd; in use_output_buffer() 4784 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer() 4787 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer() 4790 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer() 4791 … DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd); in use_output_buffer() 4796 if (drv_ctx.ptr_outputbuffer[i].pmem_fd == 0) { in use_output_buffer() 4797 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer() 4799 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer() 4800 … DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd); in use_output_buffer() 4805 if (!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd, in use_output_buffer() [all …]
|
/hardware/qcom/media/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/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/msm8x74/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/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/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/msm8x74/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/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/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/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/media/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 …]
|
/hardware/qcom/media/mm-video-v4l2/vidc/venc/src/ |
D | video_encoder_device.cpp | 1453 OMX_U32 pmem_fd = -1; in pmem_allocate() local 1499 pmem_fd = recon_buff[count].ion_alloc_fd.fd; in pmem_allocate() 1502 pmem_fd = open(MEM_DEVICE, O_RDWR); in pmem_allocate() 1504 if ((int)(pmem_fd) < 0) { in pmem_allocate() 1515 if (ioctl(pmem_fd, PMEM_ALLOCATE_ALIGNED, &allocation) < 0) { in pmem_allocate() 1524 MAP_SHARED, pmem_fd, 0); in pmem_allocate() 1527 close(pmem_fd); in pmem_allocate() 1528 pmem_fd = -1; in pmem_allocate() 1545 DEBUG_PRINT_HIGH("Allocated virt:%p, FD: %d of size %d", buf_addr, pmem_fd, size); in pmem_allocate() 1548 recon_addr.pmem_fd = pmem_fd; in pmem_allocate() [all …]
|
/hardware/qcom/media/mm-video-legacy/vidc/venc/test/ |
D | venc_test.cpp | 393 pMem->pmem_fd = ion_data.ion_alloc_fd.fd; in PmemMalloc() 395 pMem->pmem_fd = open(PMEM_DEVICE, O_RDWR); in PmemMalloc() 396 if ((int)(pMem->pmem_fd) < 0) in PmemMalloc() 403 MAP_SHARED, pMem->pmem_fd, pMem->offset); in PmemMalloc() 406 close(pMem->pmem_fd); in PmemMalloc() 407 pMem->pmem_fd = -1; in PmemMalloc() 420 D("allocated pMem->fd = %d pvirt=0x%x, pMem->phys=0x%x, size = %d", pMem->pmem_fd, in PmemMalloc() 432 close(pMem->pmem_fd); in PmemFree() 433 pMem->pmem_fd = -1; in PmemFree()
|
/hardware/qcom/media/mm-video-v4l2/vidc/vdec/inc/ |
D | omx_vdec_hevc.h | 629 bool align_pmem_buffers(int pmem_fd, OMX_U32 buffer_size, 823 int pmem_fd; member 832 int pmem_fd; member 902 int pmem_fd[MAX_COUNT]; variable
|
D | omx_vdec.h | 707 bool align_pmem_buffers(int pmem_fd, OMX_U32 buffer_size, 926 int pmem_fd; member 935 int pmem_fd; member 1028 unsigned long pmem_fd[MAX_COUNT]; variable
|
/hardware/qcom/media/mm-video-v4l2/vidc/venc/test/ |
D | venc_test.cpp | 426 pMem->pmem_fd = ion_data.ion_alloc_fd.fd; in PmemMalloc() 428 pMem->pmem_fd = open(PMEM_DEVICE, O_RDWR); in PmemMalloc() 430 if ((int)(pMem->pmem_fd) < 0) in PmemMalloc() 438 MAP_SHARED, pMem->pmem_fd, pMem->offset); in PmemMalloc() 441 close(pMem->pmem_fd); in PmemMalloc() 442 pMem->pmem_fd = -1; in PmemMalloc() 458 D("allocated pMem->fd = %lu pvirt=0x%p, pMem->phys=0x%lx, size = %d", pMem->pmem_fd, in PmemMalloc() 470 close(pMem->pmem_fd); in PmemFree() 471 pMem->pmem_fd = -1; in PmemFree()
|