Lines Matching refs:ptr_outputbuffer
3941 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd;
3942 drv_ctx.ptr_outputbuffer[i].offset = 0;
3943 drv_ctx.ptr_outputbuffer[i].bufferaddr = NULL;
3944 drv_ctx.ptr_outputbuffer[i].buffer_len = drv_ctx.op_buf.buffer_size;
3945 drv_ctx.ptr_outputbuffer[i].mmaped_size = handle->size;
3946 DEBUG_PRINT_HIGH("Use_op_buf:m_enable_android_native_buffers 5 drv_ctx.ptr_outputbuffer[i].bufferaddr = %p, size1=%d, size2=%d\n",
3947 drv_ctx.ptr_outputbuffer[i].bufferaddr,
3963 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
3966 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
3969 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
3970 DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d\n", drv_ctx.ptr_outputbuffer[i].pmem_fd);
3974 if(!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd,
3979 close(drv_ctx.ptr_outputbuffer[i].pmem_fd);
3984 drv_ctx.ptr_outputbuffer[i].bufferaddr =
3987 drv_ctx.ptr_outputbuffer[i].pmem_fd,0);
3988 if (drv_ctx.ptr_outputbuffer[i].bufferaddr == MAP_FAILED) {
3989 close(drv_ctx.ptr_outputbuffer[i].pmem_fd);
3997 drv_ctx.ptr_outputbuffer[i].offset = 0;
4023 drv_ctx.ptr_outputbuffer[i].pmem_fd = pmem_info->pmem_fd;
4024 drv_ctx.ptr_outputbuffer[i].offset = pmem_info->offset;
4025 drv_ctx.ptr_outputbuffer[i].bufferaddr = buff;
4026 drv_ctx.ptr_outputbuffer[i].mmaped_size =
4027 drv_ctx.ptr_outputbuffer[i].buffer_len = drv_ctx.op_buf.buffer_size;
4033 memcpy (&setbuffers.buffer,&drv_ctx.ptr_outputbuffer[i],
4037 drv_ctx.ptr_outputbuffer[i].bufferaddr,
4038 drv_ctx.ptr_outputbuffer[i].pmem_fd );
4544 && drv_ctx.ptr_outputbuffer)
4547 drv_ctx.ptr_outputbuffer[index].bufferaddr);
4551 memcpy (&setbuffers.buffer,&drv_ctx.ptr_outputbuffer[index],
4555 DEBUG_PRINT_LOW(" Free output Buffer android pmem_fd=%d", drv_ctx.ptr_outputbuffer[index].pmem_fd);
4556 if(drv_ctx.ptr_outputbuffer[index].pmem_fd > 0) {
4558 drv_ctx.ptr_outputbuffer[index].bufferaddr,
4559 drv_ctx.ptr_outputbuffer[index].mmaped_size);
4560 if( NULL != drv_ctx.ptr_outputbuffer[index].bufferaddr)
4562 munmap(drv_ctx.ptr_outputbuffer[index].bufferaddr,
4563 drv_ctx.ptr_outputbuffer[index].mmaped_size);
4566 drv_ctx.ptr_outputbuffer[index].pmem_fd = -1;
4569 if (drv_ctx.ptr_outputbuffer[index].pmem_fd > 0 && !ouput_egl_buffers && !m_use_output_pmem)
4573 drv_ctx.ptr_outputbuffer[index].pmem_fd);
4575 drv_ctx.ptr_outputbuffer[index].mmaped_size * drv_ctx.op_buf.actualcount,
4576 drv_ctx.ptr_outputbuffer[index].bufferaddr);
4577 munmap (drv_ctx.ptr_outputbuffer[index].bufferaddr,
4578 drv_ctx.ptr_outputbuffer[index].mmaped_size * drv_ctx.op_buf.actualcount);
4580 close (drv_ctx.ptr_outputbuffer[index].pmem_fd);
4581 drv_ctx.ptr_outputbuffer[index].pmem_fd = -1;
4904 drv_ctx.ptr_outputbuffer = (struct vdpp_bufferpayload *)\
4921 if(m_out_mem_ptr /*&& pPtr*/ && drv_ctx.ptr_outputbuffer
4924 drv_ctx.ptr_outputbuffer[0].mmaped_size =
4943 drv_ctx.ptr_outputbuffer[i].pmem_fd = pmem_fd;
4953 &drv_ctx.ptr_outputbuffer[i];
4954 drv_ctx.ptr_outputbuffer[i].offset = drv_ctx.op_buf.buffer_size*i;
4955 drv_ctx.ptr_outputbuffer[i].bufferaddr =
4959 pmem_fd, drv_ctx.ptr_outputbuffer[i].offset,
4960 drv_ctx.ptr_outputbuffer[i].bufferaddr);
4974 if(drv_ctx.ptr_outputbuffer)
4976 free(drv_ctx.ptr_outputbuffer);
4977 drv_ctx.ptr_outputbuffer = NULL;
5012 drv_ctx.ptr_outputbuffer[i].buffer_len =
5016 drv_ctx.ptr_outputbuffer[i].mmaped_size = drv_ctx.op_buf.buffer_size;
5033 (*bufferHdr)->pBuffer = (OMX_U8*)drv_ctx.ptr_outputbuffer[i].bufferaddr;
5737 struct vdpp_bufferpayload *ptr_outputbuffer = NULL;
5766 ptr_outputbuffer = (struct vdpp_bufferpayload*)ptr_respbuffer->client_data;
5769 if (ptr_respbuffer == NULL || ptr_outputbuffer == NULL)
5798 plane[0].m.userptr = drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd;
5808 plane[extra_idx].m.userptr = drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd;
5819 //DEBUG_PRINT_LOW("omx_vdpp::fill_this_buffer_proxy 2 drv_ctx.ptr_outputbuffer[%d].bufferaddr = %p\n", nPortIndex,drv_ctx.ptr_outputbuffer[nPortIndex].bufferaddr);
5820 //DEBUG_PRINT_LOW("omx_vdpp::fill_this_buffer_proxy 2 drv_ctx.ptr_outputbuffer[%d].offset = %d", nPortIndex,drv_ctx.ptr_outputbuffer[nPortIndex].offset);
6323 char *temp = (char *)drv_ctx.ptr_outputbuffer[buf_index].bufferaddr; // mmap ION buffer addr
6330 temp = (char *)drv_ctx.ptr_outputbuffer[buf_index].bufferaddr + stride * scanlines;
6502 omx->drv_ctx.ptr_outputbuffer[v4l2_buf_ptr->index].bufferaddr;
6662 if (drv_ctx.ptr_outputbuffer)
6664 free (drv_ctx.ptr_outputbuffer);
6665 drv_ctx.ptr_outputbuffer = NULL;
7203 drv_ctx.ptr_outputbuffer = (struct vdpp_bufferpayload *) \
7219 if(m_out_mem_ptr && drv_ctx.ptr_outputbuffer
7236 drv_ctx.ptr_outputbuffer[i].pmem_fd = -1;
7243 &drv_ctx.ptr_outputbuffer[i];
7258 if(drv_ctx.ptr_outputbuffer)
7260 free(drv_ctx.ptr_outputbuffer);
7261 drv_ctx.ptr_outputbuffer = NULL;