Lines Matching refs:ptr_outputbuffer
3690 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd;
3691 drv_ctx.ptr_outputbuffer[i].offset = 0;
3692 drv_ctx.ptr_outputbuffer[i].bufferaddr = buff;
3693 drv_ctx.ptr_outputbuffer[i].mmaped_size =
3694 drv_ctx.ptr_outputbuffer[i].buffer_len = drv_ctx.op_buf.buffer_size;
3709 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
3712 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
3715 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
3716 DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd);
3721 if (drv_ctx.ptr_outputbuffer[i].pmem_fd == 0) {
3722 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
3724 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
3725 DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd);
3730 if (!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd,
3734 close(drv_ctx.ptr_outputbuffer[i].pmem_fd);
3739 drv_ctx.ptr_outputbuffer[i].bufferaddr =
3742 drv_ctx.ptr_outputbuffer[i].pmem_fd,0);
3743 if (drv_ctx.ptr_outputbuffer[i].bufferaddr == MAP_FAILED) {
3744 close(drv_ctx.ptr_outputbuffer[i].pmem_fd);
3752 drv_ctx.ptr_outputbuffer[i].offset = 0;
3777 drv_ctx.ptr_outputbuffer[i].pmem_fd = pmem_info->pmem_fd;
3778 drv_ctx.ptr_outputbuffer[i].offset = pmem_info->offset;
3779 drv_ctx.ptr_outputbuffer[i].bufferaddr = buff;
3780 drv_ctx.ptr_outputbuffer[i].mmaped_size =
3781 drv_ctx.ptr_outputbuffer[i].buffer_len = drv_ctx.op_buf.buffer_size;
3784 m_pmem_info[i].offset = drv_ctx.ptr_outputbuffer[i].offset;
3785 m_pmem_info[i].pmem_fd = drv_ctx.ptr_outputbuffer[i].pmem_fd;
3789 drv_ctx.ptr_outputbuffer[i].bufferaddr = *bufferHdr;
3791 memcpy (&setbuffers.buffer,&drv_ctx.ptr_outputbuffer[i],
3795 drv_ctx.ptr_outputbuffer[i].bufferaddr,
3796 drv_ctx.ptr_outputbuffer[i].pmem_fd );
3802 plane[0].m.userptr = (unsigned long)drv_ctx.ptr_outputbuffer[i].bufferaddr -
3803 (unsigned long)drv_ctx.ptr_outputbuffer[i].offset;
3804 plane[0].reserved[0] = drv_ctx.ptr_outputbuffer[i].pmem_fd;
3805 plane[0].reserved[1] = drv_ctx.ptr_outputbuffer[i].offset;
3823 DEBUG_PRINT_LOW("Set the Output Buffer Idx: %d Addr: %x", i, drv_ctx.ptr_outputbuffer[i]);
4047 && drv_ctx.ptr_outputbuffer) {
4049 drv_ctx.ptr_outputbuffer[index].bufferaddr);
4053 memcpy (&setbuffers.buffer,&drv_ctx.ptr_outputbuffer[index],
4057 if (drv_ctx.ptr_outputbuffer[index].pmem_fd > 0) {
4058 munmap(drv_ctx.ptr_outputbuffer[index].bufferaddr,
4059 drv_ctx.ptr_outputbuffer[index].mmaped_size);
4061 drv_ctx.ptr_outputbuffer[index].pmem_fd = -1;
4064 if (drv_ctx.ptr_outputbuffer[0].pmem_fd > 0 && !ouput_egl_buffers && !m_use_output_pmem) {
4066 drv_ctx.ptr_outputbuffer[0].pmem_fd);
4068 drv_ctx.ptr_outputbuffer[0].mmaped_size * drv_ctx.op_buf.actualcount,
4069 drv_ctx.ptr_outputbuffer[0].bufferaddr);
4070 munmap (drv_ctx.ptr_outputbuffer[0].bufferaddr,
4071 drv_ctx.ptr_outputbuffer[0].mmaped_size * drv_ctx.op_buf.actualcount);
4072 close (drv_ctx.ptr_outputbuffer[0].pmem_fd);
4073 drv_ctx.ptr_outputbuffer[0].pmem_fd = -1;
4472 drv_ctx.ptr_outputbuffer = (struct vdec_bufferpayload *)\
4484 if (m_out_mem_ptr && pPtr && drv_ctx.ptr_outputbuffer
4486 drv_ctx.ptr_outputbuffer[0].mmaped_size =
4528 drv_ctx.ptr_outputbuffer[i].pmem_fd = pmem_fd;
4539 &drv_ctx.ptr_outputbuffer[i];
4540 drv_ctx.ptr_outputbuffer[i].offset = drv_ctx.op_buf.buffer_size*i;
4541 drv_ctx.ptr_outputbuffer[i].bufferaddr =
4545 pmem_fd, drv_ctx.ptr_outputbuffer[i].offset,
4546 drv_ctx.ptr_outputbuffer[i].bufferaddr);
4564 if (drv_ctx.ptr_outputbuffer) {
4565 free(drv_ctx.ptr_outputbuffer);
4566 drv_ctx.ptr_outputbuffer = NULL;
4597 m_pmem_info[i].offset = drv_ctx.ptr_outputbuffer[i].offset;
4599 drv_ctx.ptr_outputbuffer[i].buffer_len =
4604 drv_ctx.ptr_outputbuffer[i].bufferaddr = *bufferHdr;
4606 drv_ctx.ptr_outputbuffer[i].mmaped_size = drv_ctx.op_buf.buffer_size;
4612 plane[0].m.userptr = (unsigned long)drv_ctx.ptr_outputbuffer[i].bufferaddr -
4613 (unsigned long)drv_ctx.ptr_outputbuffer[i].offset;
4617 plane[0].reserved[1] = drv_ctx.ptr_outputbuffer[i].offset;
4634 DEBUG_PRINT_LOW("Set the Output Buffer Idx: %d Addr: %x", i, drv_ctx.ptr_outputbuffer[i]);
4653 (*bufferHdr)->pBuffer = (OMX_U8*)drv_ctx.ptr_outputbuffer[i].bufferaddr;
5274 struct vdec_bufferpayload *ptr_outputbuffer = NULL;
5298 ptr_outputbuffer = (struct vdec_bufferpayload*)ptr_respbuffer->client_data;
5301 if (ptr_respbuffer == NULL || ptr_outputbuffer == NULL) {
5322 (unsigned long)drv_ctx.ptr_outputbuffer[nPortIndex].bufferaddr -
5323 (unsigned long)drv_ctx.ptr_outputbuffer[nPortIndex].offset;
5324 plane[0].reserved[0] = drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd;
5325 plane[0].reserved[1] = drv_ctx.ptr_outputbuffer[nPortIndex].offset;
5902 char *temp = (char *)drv_ctx.ptr_outputbuffer[buf_index].bufferaddr;
5909 temp = (char *)drv_ctx.ptr_outputbuffer[buf_index].bufferaddr + stride * scanlines;
6152 omx->drv_ctx.ptr_outputbuffer[v4l2_buf_ptr->index].bufferaddr;
6979 if (drv_ctx.ptr_outputbuffer) {
6980 free (drv_ctx.ptr_outputbuffer);
6981 drv_ctx.ptr_outputbuffer = NULL;
7356 drv_ctx.ptr_outputbuffer = (struct vdec_bufferpayload *) \
7367 if (m_out_mem_ptr && pPtr && drv_ctx.ptr_outputbuffer
7403 drv_ctx.ptr_outputbuffer[i].pmem_fd = -1;
7410 &drv_ctx.ptr_outputbuffer[i];
7428 if (drv_ctx.ptr_outputbuffer) {
7429 free(drv_ctx.ptr_outputbuffer);
7430 drv_ctx.ptr_outputbuffer = NULL;
7564 OMX_U8 *pBuffer = (OMX_U8 *)(drv_ctx.ptr_outputbuffer[buf_index].bufferaddr) +
8235 status = c2d.convert(omx->drv_ctx.ptr_outputbuffer[index].pmem_fd,