Lines Matching refs:ptr_outputbuffer
1679 char *temp = (char *)drv_ctx.ptr_outputbuffer[buf_index].bufferaddr;
1689 temp = (char *)drv_ctx.ptr_outputbuffer[buf_index].bufferaddr + stride * scanlines;
4677 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd;
4678 drv_ctx.ptr_outputbuffer[i].offset = 0;
4679 drv_ctx.ptr_outputbuffer[i].bufferaddr = buff;
4680 drv_ctx.ptr_outputbuffer[i].mmaped_size =
4681 drv_ctx.ptr_outputbuffer[i].buffer_len = drv_ctx.op_buf.buffer_size;
4699 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4702 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4705 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
4706 DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd);
4711 if(drv_ctx.ptr_outputbuffer[i].pmem_fd == 0)
4713 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4715 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
4716 DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd);
4721 if(!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd,
4726 close(drv_ctx.ptr_outputbuffer[i].pmem_fd);
4732 drv_ctx.ptr_outputbuffer[i].bufferaddr =
4735 drv_ctx.ptr_outputbuffer[i].pmem_fd,0);
4736 if (drv_ctx.ptr_outputbuffer[i].bufferaddr == MAP_FAILED) {
4737 close(drv_ctx.ptr_outputbuffer[i].pmem_fd);
4745 drv_ctx.ptr_outputbuffer[i].offset = 0;
4771 drv_ctx.ptr_outputbuffer[i].pmem_fd = pmem_info->pmem_fd;
4772 drv_ctx.ptr_outputbuffer[i].offset = pmem_info->offset;
4773 drv_ctx.ptr_outputbuffer[i].bufferaddr = buff;
4774 drv_ctx.ptr_outputbuffer[i].mmaped_size =
4775 drv_ctx.ptr_outputbuffer[i].buffer_len = drv_ctx.op_buf.buffer_size;
4778 m_pmem_info[i].offset = drv_ctx.ptr_outputbuffer[i].offset;
4779 m_pmem_info[i].pmem_fd = drv_ctx.ptr_outputbuffer[i].pmem_fd;
4783 drv_ctx.ptr_outputbuffer[i].bufferaddr = *bufferHdr;
4785 memcpy (&setbuffers.buffer,&drv_ctx.ptr_outputbuffer[i],
4789 drv_ctx.ptr_outputbuffer[i].bufferaddr,
4790 drv_ctx.ptr_outputbuffer[i].pmem_fd );
4801 m_pSwVdecOpBuffer[i].nSize = drv_ctx.ptr_outputbuffer[i].mmaped_size;
4802 m_pSwVdecOpBuffer[i].pBuffer = (uint8*)drv_ctx.ptr_outputbuffer[i].bufferaddr;
4819 plane[0].m.userptr = (unsigned long)drv_ctx.ptr_outputbuffer[i].bufferaddr -
4820 (unsigned long)drv_ctx.ptr_outputbuffer[i].offset;
4821 plane[0].reserved[0] = drv_ctx.ptr_outputbuffer[i].pmem_fd;
4822 plane[0].reserved[1] = drv_ctx.ptr_outputbuffer[i].offset;
4840 DEBUG_PRINT_LOW("Set the Output Buffer Idx: %d Addr: %p", i, drv_ctx.ptr_outputbuffer[i].bufferaddr);
5095 && drv_ctx.ptr_outputbuffer)
5098 drv_ctx.ptr_outputbuffer[index].bufferaddr);
5102 memcpy (&setbuffers.buffer,&drv_ctx.ptr_outputbuffer[index],
5106 if(drv_ctx.ptr_outputbuffer[index].pmem_fd > 0) {
5107 munmap(drv_ctx.ptr_outputbuffer[index].bufferaddr,
5108 drv_ctx.ptr_outputbuffer[index].mmaped_size);
5110 drv_ctx.ptr_outputbuffer[index].pmem_fd = -1;
5113 if (drv_ctx.ptr_outputbuffer[0].pmem_fd > 0 && !ouput_egl_buffers && !m_use_output_pmem)
5116 drv_ctx.ptr_outputbuffer[0].pmem_fd);
5118 drv_ctx.ptr_outputbuffer[0].mmaped_size * drv_ctx.op_buf.actualcount,
5119 drv_ctx.ptr_outputbuffer[0].bufferaddr);
5120 munmap (drv_ctx.ptr_outputbuffer[0].bufferaddr,
5121 drv_ctx.ptr_outputbuffer[0].mmaped_size * drv_ctx.op_buf.actualcount);
5122 close (drv_ctx.ptr_outputbuffer[0].pmem_fd);
5123 drv_ctx.ptr_outputbuffer[0].pmem_fd = -1;
5586 drv_ctx.ptr_outputbuffer = (struct vdec_bufferpayload *)\
5602 if(m_out_mem_ptr && pPtr && drv_ctx.ptr_outputbuffer && drv_ctx.ptr_respbuffer
5605 drv_ctx.ptr_outputbuffer[0].mmaped_size =
5648 drv_ctx.ptr_outputbuffer[i].pmem_fd = pmem_fd;
5659 &drv_ctx.ptr_outputbuffer[i];
5660 drv_ctx.ptr_outputbuffer[i].offset = drv_ctx.op_buf.buffer_size*i;
5661 drv_ctx.ptr_outputbuffer[i].bufferaddr =
5665 pmem_fd, drv_ctx.ptr_outputbuffer[i].offset,
5666 drv_ctx.ptr_outputbuffer[i].bufferaddr);
5688 if(drv_ctx.ptr_outputbuffer)
5690 free(drv_ctx.ptr_outputbuffer);
5691 drv_ctx.ptr_outputbuffer = NULL;
5725 m_pmem_info[i].offset = drv_ctx.ptr_outputbuffer[i].offset;
5726 drv_ctx.ptr_outputbuffer[i].buffer_len = drv_ctx.op_buf.buffer_size;
5730 drv_ctx.ptr_outputbuffer[i].bufferaddr = *bufferHdr;
5732 drv_ctx.ptr_outputbuffer[i].mmaped_size = drv_ctx.op_buf.buffer_size;
5736 (*bufferHdr)->pBuffer = (OMX_U8*)drv_ctx.ptr_outputbuffer[i].bufferaddr;
5738 m_pSwVdecOpBuffer[i].nSize = drv_ctx.ptr_outputbuffer[i].mmaped_size;
5751 plane[0].m.userptr = (unsigned long)drv_ctx.ptr_outputbuffer[i].bufferaddr -
5752 (unsigned long)drv_ctx.ptr_outputbuffer[i].offset;
5756 plane[0].reserved[1] = drv_ctx.ptr_outputbuffer[i].offset;
5773 ptr_outputbuffer[i].bufferaddr);
5792 (*bufferHdr)->pBuffer = (OMX_U8*)drv_ctx.ptr_outputbuffer[i].bufferaddr;
6525 drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd = handle->fd;
6526 drv_ctx.ptr_outputbuffer[nPortIndex].offset = 0;
6527 drv_ctx.ptr_outputbuffer[nPortIndex].bufferaddr = buff;
6528 drv_ctx.ptr_outputbuffer[nPortIndex].buffer_len = drv_ctx.op_buf.buffer_size;
6529 drv_ctx.ptr_outputbuffer[nPortIndex].mmaped_size = drv_ctx.op_buf.buffer_size;
6537 buf_ref_add(nPortIndex, drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd,
6538 drv_ctx.ptr_outputbuffer[nPortIndex].offset);
6569 struct vdec_bufferpayload *ptr_outputbuffer = NULL;
6596 ptr_outputbuffer = (struct vdec_bufferpayload*)ptr_respbuffer->client_data;
6599 if (ptr_respbuffer == NULL || ptr_outputbuffer == NULL)
6632 (unsigned long)drv_ctx.ptr_outputbuffer[nPortIndex].bufferaddr -
6633 (unsigned long)drv_ctx.ptr_outputbuffer[nPortIndex].offset;
6634 plane[0].reserved[0] = drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd;
6635 plane[0].reserved[1] = drv_ctx.ptr_outputbuffer[nPortIndex].offset;
7350 buf_ref_remove(drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd,
7351 drv_ctx.ptr_outputbuffer[nPortIndex].offset);
7635 omx->drv_ctx.ptr_outputbuffer[v4l2_buf_ptr->index].bufferaddr;
8194 if (drv_ctx.ptr_outputbuffer)
8196 free (drv_ctx.ptr_outputbuffer);
8197 drv_ctx.ptr_outputbuffer = NULL;
8615 drv_ctx.ptr_outputbuffer = (struct vdec_bufferpayload *) \
8629 if(m_out_mem_ptr && pPtr && drv_ctx.ptr_outputbuffer
8667 drv_ctx.ptr_outputbuffer[i].pmem_fd = -1;
8674 &drv_ctx.ptr_outputbuffer[i];
8696 if(drv_ctx.ptr_outputbuffer)
8698 free(drv_ctx.ptr_outputbuffer);
8699 drv_ctx.ptr_outputbuffer = NULL;
8857 OMX_U8 *pBuffer = (OMX_U8 *)(drv_ctx.ptr_outputbuffer[buf_index].bufferaddr) +
9576 status = c2d.convert(omx->drv_ctx.ptr_outputbuffer[index].pmem_fd,
9823 munmap(drv_ctx.ptr_outputbuffer[i].bufferaddr,
9824 drv_ctx.ptr_outputbuffer[i].mmaped_size);
9826 i, drv_ctx.ptr_outputbuffer[i].bufferaddr);
9828 drv_ctx.ptr_outputbuffer[i].bufferaddr = NULL;
9829 drv_ctx.ptr_outputbuffer[i].offset = 0;
9830 drv_ctx.ptr_outputbuffer[i].mmaped_size = 0;
10185 struct vdec_bufferpayload *ptr_outputbuffer = NULL;
10218 ptr_outputbuffer = (struct vdec_bufferpayload*)ptr_respbuffer->client_data;
10221 if (ptr_respbuffer == NULL || ptr_outputbuffer == NULL)
10235 memcpy (&fillbuffer.buffer,ptr_outputbuffer,
10784 drv_ctx.ptr_outputbuffer[idx].pmem_fd, drv_ctx.ptr_outputbuffer[idx].offset,
10785 idx, drv_ctx.ptr_outputbuffer[idx].bufferaddr);
10786 buf_ref_remove(drv_ctx.ptr_outputbuffer[idx].pmem_fd,
10787 drv_ctx.ptr_outputbuffer[idx].offset);