Home | History | Annotate | Download | only in src

Lines Matching refs:pmem_fd

4142         drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd;
4160 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4163 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4166 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
4170 if(drv_ctx.ptr_outputbuffer[i].pmem_fd == 0)
4172 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4174 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
4179 if(!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd,
4184 close(drv_ctx.ptr_outputbuffer[i].pmem_fd);
4192 drv_ctx.ptr_outputbuffer[i].pmem_fd,0);
4194 close(drv_ctx.ptr_outputbuffer[i].pmem_fd);
4232 DEBUG_PRINT_LOW("vdec: use buf: pmem_fd=0x%x",
4233 pmem_info->pmem_fd);
4234 drv_ctx.ptr_outputbuffer[i].pmem_fd = pmem_info->pmem_fd;
4242 m_pmem_info[i].pmem_fd = drv_ctx.ptr_outputbuffer[i].pmem_fd;
4254 DEBUG_PRINT_HIGH("\n Set the Output Buffer Idx: %d Addr: %x, pmem_fd=%0x%x", i,
4255 drv_ctx.ptr_outputbuffer[i],drv_ctx.ptr_outputbuffer[i].pmem_fd );
4449 if (drv_ctx.ptr_inputbuffer[index].pmem_fd > 0)
4466 drv_ctx.ptr_inputbuffer[index].pmem_fd);
4473 close (drv_ctx.ptr_inputbuffer[index].pmem_fd);
4474 drv_ctx.ptr_inputbuffer[index].pmem_fd = -1;
4523 if(drv_ctx.ptr_outputbuffer[index].pmem_fd > 0) {
4529 drv_ctx.ptr_outputbuffer[index].pmem_fd = -1;
4532 if (drv_ctx.ptr_outputbuffer[index].pmem_fd > 0 && !ouput_egl_buffers && !m_use_output_pmem)
4536 drv_ctx.ptr_outputbuffer[index].pmem_fd);
4546 close (drv_ctx.ptr_outputbuffer[index].pmem_fd);
4547 drv_ctx.ptr_outputbuffer[index].pmem_fd = -1;
4683 int pmem_fd = -1;
4725 drv_ctx.ptr_inputbuffer [i].pmem_fd = -1;
4753 pmem_fd = drv_ctx.ip_buf_ion_info[i].fd_ion_data.fd;
4755 pmem_fd = open (MEM_DEVICE,O_RDWR);
4757 if (pmem_fd < 0)
4763 if (pmem_fd == 0)
4765 pmem_fd = open (MEM_DEVICE,O_RDWR);
4767 if (pmem_fd < 0)
4774 if(!align_pmem_buffers(pmem_fd, drv_ctx.ip_buf.buffer_size,
4778 close(pmem_fd);
4785 PROT_READ|PROT_WRITE, MAP_SHARED, pmem_fd, 0);
4789 close(pmem_fd);
4802 drv_ctx.ptr_inputbuffer [i].pmem_fd = pmem_fd;
4824 input->pBuffer = (OMX_U8 *)drv_ctx.ptr_inputbuffer [i].pmem_fd;
4884 int pmem_fd = -1;
4985 pPMEMInfo->pmem_fd = 0;
4987 drv_ctx.ptr_outputbuffer[i].pmem_fd = -1;
5072 pmem_fd = drv_ctx.op_buf_ion_info[i].fd_ion_data.fd;
5074 pmem_fd = open (MEM_DEVICE,O_RDWR);
5076 if (pmem_fd < 0)
5083 if (pmem_fd == 0)
5085 pmem_fd = open (MEM_DEVICE,O_RDWR);
5087 if (pmem_fd < 0)
5095 if (!align_pmem_buffers(pmem_fd, drv_ctx.op_buf.buffer_size,
5099 close(pmem_fd);
5106 PROT_READ|PROT_WRITE,MAP_SHARED,pmem_fd,0);
5112 close(pmem_fd);
5126 drv_ctx.ptr_outputbuffer [i].pmem_fd = pmem_fd;
5137 pmem_fd);
5140 m_heap_ptr[i].video_heap_ptr = new VideoHeap (pmem_fd,
5148 m_pmem_info[i].pmem_fd = (OMX_U32) m_heap_ptr[i].video_heap_ptr.get ();
5150 m_pmem_info[i].pmem_fd = drv_ctx.ptr_outputbuffer[i].pmem_fd ;
5676 frameinfo.pmem_fd = temp_buffer->pmem_fd;
6116 int pmem_fd;
6124 fd = temp_egl_id->pmem_fd;
6132 pmem_info.pmem_fd = (OMX_U32) fd;
6649 DEBUG_PRINT_LOW("\n Before FBD callback Accessed Pmeminfo %d",pPMEMInfo->pmem_fd);
6659 DEBUG_PRINT_LOW("\n After Fill Buffer Done callback %d",pPMEMInfo->pmem_fd);
7547 bool omx_vdec::align_pmem_buffers(int pmem_fd, OMX_U32 buffer_size,
7557 if (ioctl(pmem_fd, PMEM_ALLOCATE_ALIGNED, &allocation) < 0)
8072 pPMEMInfo->pmem_fd = 0;
8074 drv_ctx.ptr_outputbuffer[i].pmem_fd = -1;
8871 OMX_U32 pmem_fd = -1;
8912 pmem_fd = drv_ctx.h264_mv.fd_ion_data.fd;
8919 pmem_fd = open(MEM_DEVICE, O_RDWR);
8921 if ((int)(pmem_fd) < 0)
8924 if (ioctl(pmem_fd, PMEM_ALLOCATE_ALIGNED, &allocation) < 0)
8934 MAP_SHARED, pmem_fd, 0);
8938 close(pmem_fd);
8942 pmem_fd = -1;
8947 buf_addr =(unsigned char *) (pmem_fd + 1234);
8949 pmem_fd, size, drv_ctx.op_buf.actualcount);
8953 h264_mv.pmem_fd = pmem_fd;
8969 h264_mv_buff.pmem_fd = pmem_fd;
8971 h264_mv_buff.pmem_fd, h264_mv_buff.size, drv_ctx.op_buf.actualcount);
8977 if(h264_mv_buff.pmem_fd > 0)
8983 close(h264_mv_buff.pmem_fd);
8988 h264_mv_buff.pmem_fd = -1;
9042 pmem_fd[i] = -1;
9163 status = c2d.convert(omx->drv_ctx.ptr_outputbuffer[index].pmem_fd,
9164 bufadd->pBuffer, bufadd->pBuffer, pmem_fd[index],
9229 if (pmem_fd[index] > 0) {
9231 close(pmem_fd[index]);
9233 pmem_fd[index] = -1;
9289 pmem_fd[i] = op_buf_ion_info[i].fd_ion_data.fd;
9295 PROT_READ|PROT_WRITE,MAP_SHARED,pmem_fd[i],0);
9299 close(pmem_fd[i]);
9305 pmem_baseaddress[i],op_buf_ion_info[i].ion_alloc_data.handle,pmem_fd[i]);
9306 m_pmem_info_client[i].pmem_fd = (OMX_U32)m_heap_ptr[i].video_heap_ptr.get();