Lines Matching defs:pmem_fd
4059 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd;
4077 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4080 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4083 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
4087 if(drv_ctx.ptr_outputbuffer[i].pmem_fd == 0)
4089 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4091 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
4096 if(!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd,
4101 close(drv_ctx.ptr_outputbuffer[i].pmem_fd);
4109 drv_ctx.ptr_outputbuffer[i].pmem_fd,0);
4111 close(drv_ctx.ptr_outputbuffer[i].pmem_fd);
4149 DEBUG_PRINT_LOW("vdec: use buf: pmem_fd=0x%x",
4150 pmem_info->pmem_fd);
4151 drv_ctx.ptr_outputbuffer[i].pmem_fd = pmem_info->pmem_fd;
4159 m_pmem_info[i].pmem_fd = drv_ctx.ptr_outputbuffer[i].pmem_fd;
4171 DEBUG_PRINT_HIGH("\n Set the Output Buffer Idx: %d Addr: %x, pmem_fd=%0x%x", i,
4172 drv_ctx.ptr_outputbuffer[i],drv_ctx.ptr_outputbuffer[i].pmem_fd );
4366 if (drv_ctx.ptr_inputbuffer[index].pmem_fd > 0)
4383 drv_ctx.ptr_inputbuffer[index].pmem_fd);
4390 close (drv_ctx.ptr_inputbuffer[index].pmem_fd);
4391 drv_ctx.ptr_inputbuffer[index].pmem_fd = -1;
4440 if(drv_ctx.ptr_outputbuffer[index].pmem_fd > 0) {
4446 drv_ctx.ptr_outputbuffer[index].pmem_fd = -1;
4449 if (drv_ctx.ptr_outputbuffer[index].pmem_fd > 0 && !ouput_egl_buffers && !m_use_output_pmem)
4453 drv_ctx.ptr_outputbuffer[index].pmem_fd);
4463 close (drv_ctx.ptr_outputbuffer[index].pmem_fd);
4464 drv_ctx.ptr_outputbuffer[index].pmem_fd = -1;
4600 int pmem_fd = -1;
4642 drv_ctx.ptr_inputbuffer [i].pmem_fd = -1;
4670 pmem_fd = drv_ctx.ip_buf_ion_info[i].fd_ion_data.fd;
4672 pmem_fd = open (MEM_DEVICE,O_RDWR);
4674 if (pmem_fd < 0)
4680 if (pmem_fd == 0)
4682 pmem_fd = open (MEM_DEVICE,O_RDWR);
4684 if (pmem_fd < 0)
4691 if(!align_pmem_buffers(pmem_fd, drv_ctx.ip_buf.buffer_size,
4695 close(pmem_fd);
4702 PROT_READ|PROT_WRITE, MAP_SHARED, pmem_fd, 0);
4706 close(pmem_fd);
4719 pmem_fd = pmem_fd;
4741 input->pBuffer = (OMX_U8 *)drv_ctx.ptr_inputbuffer [i].pmem_fd;
4801 int pmem_fd = -1;
4902 pPMEMInfo->pmem_fd = 0;
4904 drv_ctx.ptr_outputbuffer[i].pmem_fd = -1;
4989 pmem_fd = drv_ctx.op_buf_ion_info[i].fd_ion_data.fd;
4991 pmem_fd = open (MEM_DEVICE,O_RDWR);
4993 if (pmem_fd < 0)
5000 if (pmem_fd == 0)
5002 pmem_fd = open (MEM_DEVICE,O_RDWR);
5004 if (pmem_fd < 0)
5012 if (!align_pmem_buffers(pmem_fd, drv_ctx.op_buf.buffer_size,
5016 close(pmem_fd);
5023 PROT_READ|PROT_WRITE,MAP_SHARED,pmem_fd,0);
5029 close(pmem_fd);
5043 drv_ctx.ptr_outputbuffer [i].pmem_fd = pmem_fd;
5054 pmem_fd);
5057 m_heap_ptr[i].video_heap_ptr = new VideoHeap (pmem_fd,
5065 m_pmem_info[i].pmem_fd = (OMX_U32) m_heap_ptr[i].video_heap_ptr.get ();
5067 m_pmem_info[i].pmem_fd = drv_ctx.ptr_outputbuffer[i].pmem_fd ;
5593 frameinfo.pmem_fd = temp_buffer->pmem_fd;
6033 int pmem_fd;
6041 fd = temp_egl_id->pmem_fd;
6049 pmem_info.pmem_fd = (OMX_U32) fd;
6566 DEBUG_PRINT_LOW("\n Before FBD callback Accessed Pmeminfo %d",pPMEMInfo->pmem_fd);
6576 DEBUG_PRINT_LOW("\n After Fill Buffer Done callback %d",pPMEMInfo->pmem_fd);
7463 bool omx_vdec::align_pmem_buffers(int pmem_fd, OMX_U32 buffer_size,
7473 if (ioctl(pmem_fd, PMEM_ALLOCATE_ALIGNED, &allocation) < 0)
7970 pPMEMInfo->pmem_fd = 0;
7972 drv_ctx.ptr_outputbuffer[i].pmem_fd = -1;
8769 OMX_U32 pmem_fd = -1;
8810 pmem_fd = drv_ctx.h264_mv.fd_ion_data.fd;
8817 pmem_fd = open(MEM_DEVICE, O_RDWR);
8819 if ((int)(pmem_fd) < 0)
8822 if (ioctl(pmem_fd, PMEM_ALLOCATE_ALIGNED, &allocation) < 0)
8832 MAP_SHARED, pmem_fd, 0);
8836 close(pmem_fd);
8840 pmem_fd = -1;
8845 buf_addr =(unsigned char *) (pmem_fd + 1234);
8847 pmem_fd, size, drv_ctx.op_buf.actualcount);
8851 h264_mv.pmem_fd = pmem_fd;
8867 h264_mv_buff.pmem_fd = pmem_fd;
8869 h264_mv_buff.pmem_fd, h264_mv_buff.size, drv_ctx.op_buf.actualcount);
8875 if(h264_mv_buff.pmem_fd > 0)
8881 close(h264_mv_buff.pmem_fd);
8886 h264_mv_buff.pmem_fd = -1;
8940 pmem_fd[i] = -1;
9061 status = c2d.convert(omx->drv_ctx.ptr_outputbuffer[index].pmem_fd,
9062 bufadd->pBuffer,pmem_fd[index],pmem_baseaddress[index]);
9126 if (pmem_fd[index] > 0) {
9128 close(pmem_fd[index]);
9130 pmem_fd[index] = -1;
9186 pmem_fd[i] = op_buf_ion_info[i].fd_ion_data.fd;
9192 PROT_READ|PROT_WRITE,MAP_SHARED,pmem_fd[i],0);
9196 close(pmem_fd[i]);
9202 pmem_baseaddress[i],op_buf_ion_info[i].ion_alloc_data.handle,pmem_fd[i]);
9203 m_pmem_info_client[i].pmem_fd = (OMX_U32)m_heap_ptr[i].video_heap_ptr.get();