Lines Matching refs:ptr_outputbuffer
1662 char *temp = (char *)drv_ctx.ptr_outputbuffer[buf_index].bufferaddr;
1672 temp = (char *)drv_ctx.ptr_outputbuffer[buf_index].bufferaddr + stride * scanlines;
4480 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd;
4481 drv_ctx.ptr_outputbuffer[i].offset = 0;
4482 drv_ctx.ptr_outputbuffer[i].bufferaddr = buff;
4483 drv_ctx.ptr_outputbuffer[i].mmaped_size =
4484 drv_ctx.ptr_outputbuffer[i].buffer_len = drv_ctx.op_buf.buffer_size;
4502 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4505 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4508 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
4509 DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd);
4514 if(drv_ctx.ptr_outputbuffer[i].pmem_fd == 0)
4516 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4518 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
4519 DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd);
4524 if(!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd,
4529 close(drv_ctx.ptr_outputbuffer[i].pmem_fd);
4535 drv_ctx.ptr_outputbuffer[i].bufferaddr =
4538 drv_ctx.ptr_outputbuffer[i].pmem_fd,0);
4539 if (drv_ctx.ptr_outputbuffer[i].bufferaddr == MAP_FAILED) {
4540 close(drv_ctx.ptr_outputbuffer[i].pmem_fd);
4548 drv_ctx.ptr_outputbuffer[i].offset = 0;
4574 drv_ctx.ptr_outputbuffer[i].pmem_fd = pmem_info->pmem_fd;
4575 drv_ctx.ptr_outputbuffer[i].offset = pmem_info->offset;
4576 drv_ctx.ptr_outputbuffer[i].bufferaddr = buff;
4577 drv_ctx.ptr_outputbuffer[i].mmaped_size =
4578 drv_ctx.ptr_outputbuffer[i].buffer_len = drv_ctx.op_buf.buffer_size;
4581 m_pmem_info[i].offset = drv_ctx.ptr_outputbuffer[i].offset;
4582 m_pmem_info[i].pmem_fd = drv_ctx.ptr_outputbuffer[i].pmem_fd;
4586 drv_ctx.ptr_outputbuffer[i].bufferaddr = *bufferHdr;
4588 memcpy (&setbuffers.buffer,&drv_ctx.ptr_outputbuffer[i],
4592 drv_ctx.ptr_outputbuffer[i].bufferaddr,
4593 drv_ctx.ptr_outputbuffer[i].pmem_fd );
4604 m_pSwVdecOpBuffer[i].nSize = drv_ctx.ptr_outputbuffer[i].mmaped_size;
4605 m_pSwVdecOpBuffer[i].pBuffer = (uint8*)drv_ctx.ptr_outputbuffer[i].bufferaddr;
4622 plane[0].m.userptr = (unsigned long)drv_ctx.ptr_outputbuffer[i].bufferaddr -
4623 (unsigned long)drv_ctx.ptr_outputbuffer[i].offset;
4624 plane[0].reserved[0] = drv_ctx.ptr_outputbuffer[i].pmem_fd;
4625 plane[0].reserved[1] = drv_ctx.ptr_outputbuffer[i].offset;
4643 DEBUG_PRINT_LOW("Set the Output Buffer Idx: %d Addr: %x", i, (unsigned int)drv_ctx.ptr_outputbuffer[i].bufferaddr);
4898 && drv_ctx.ptr_outputbuffer)
4901 (unsigned int)drv_ctx.ptr_outputbuffer[index].bufferaddr);
4905 memcpy (&setbuffers.buffer,&drv_ctx.ptr_outputbuffer[index],
4909 if(drv_ctx.ptr_outputbuffer[index].pmem_fd > 0) {
4910 munmap(drv_ctx.ptr_outputbuffer[index].bufferaddr,
4911 drv_ctx.ptr_outputbuffer[index].mmaped_size);
4913 drv_ctx.ptr_outputbuffer[index].pmem_fd = -1;
4916 if (drv_ctx.ptr_outputbuffer[0].pmem_fd > 0 && !ouput_egl_buffers && !m_use_output_pmem)
4919 drv_ctx.ptr_outputbuffer[0].pmem_fd);
4921 drv_ctx.ptr_outputbuffer[0].mmaped_size * drv_ctx.op_buf.actualcount,
4922 (unsigned int)drv_ctx.ptr_outputbuffer[0].bufferaddr);
4923 munmap (drv_ctx.ptr_outputbuffer[0].bufferaddr,
4924 drv_ctx.ptr_outputbuffer[0].mmaped_size * drv_ctx.op_buf.actualcount);
4925 close (drv_ctx.ptr_outputbuffer[0].pmem_fd);
4926 drv_ctx.ptr_outputbuffer[0].pmem_fd = -1;
5382 drv_ctx.ptr_outputbuffer = (struct vdec_bufferpayload *)\
5398 if(m_out_mem_ptr && pPtr && drv_ctx.ptr_outputbuffer && drv_ctx.ptr_respbuffer
5401 drv_ctx.ptr_outputbuffer[0].mmaped_size =
5444 drv_ctx.ptr_outputbuffer[i].pmem_fd = pmem_fd;
5455 &drv_ctx.ptr_outputbuffer[i];
5456 drv_ctx.ptr_outputbuffer[i].offset = drv_ctx.op_buf.buffer_size*i;
5457 drv_ctx.ptr_outputbuffer[i].bufferaddr =
5461 pmem_fd, drv_ctx.ptr_outputbuffer[i].offset,
5462 drv_ctx.ptr_outputbuffer[i].bufferaddr);
5484 if(drv_ctx.ptr_outputbuffer)
5486 free(drv_ctx.ptr_outputbuffer);
5487 drv_ctx.ptr_outputbuffer = NULL;
5521 m_pmem_info[i].offset = drv_ctx.ptr_outputbuffer[i].offset;
5522 drv_ctx.ptr_outputbuffer[i].buffer_len = drv_ctx.op_buf.buffer_size;
5526 drv_ctx.ptr_outputbuffer[i].bufferaddr = *bufferHdr;
5528 drv_ctx.ptr_outputbuffer[i].mmaped_size = drv_ctx.op_buf.buffer_size;
5532 (*bufferHdr)->pBuffer = (OMX_U8*)drv_ctx.ptr_outputbuffer[i].bufferaddr;
5534 m_pSwVdecOpBuffer[i].nSize = drv_ctx.ptr_outputbuffer[i].mmaped_size;
5547 plane[0].m.userptr = (unsigned long)drv_ctx.ptr_outputbuffer[i].bufferaddr -
5548 (unsigned long)drv_ctx.ptr_outputbuffer[i].offset;
5552 plane[0].reserved[1] = drv_ctx.ptr_outputbuffer[i].offset;
5569 DEBUG_PRINT_LOW("Set the Output Buffer Idx: %d Addr: %x", i, (unsigned int)drv_ctx.ptr_outputbuffer[i].bufferaddr);
5588 (*bufferHdr)->pBuffer = (OMX_U8*)drv_ctx.ptr_outputbuffer[i].bufferaddr;
6318 drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd = handle->fd;
6319 drv_ctx.ptr_outputbuffer[nPortIndex].offset = 0;
6320 drv_ctx.ptr_outputbuffer[nPortIndex].bufferaddr = buff;
6321 drv_ctx.ptr_outputbuffer[nPortIndex].buffer_len = drv_ctx.op_buf.buffer_size;
6322 drv_ctx.ptr_outputbuffer[nPortIndex].mmaped_size = drv_ctx.op_buf.buffer_size;
6330 buf_ref_add(nPortIndex, drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd,
6331 drv_ctx.ptr_outputbuffer[nPortIndex].offset);
6361 struct vdec_bufferpayload *ptr_outputbuffer = NULL;
6388 ptr_outputbuffer = (struct vdec_bufferpayload*)ptr_respbuffer->client_data;
6391 if (ptr_respbuffer == NULL || ptr_outputbuffer == NULL)
6424 (unsigned long)drv_ctx.ptr_outputbuffer[nPortIndex].bufferaddr -
6425 (unsigned long)drv_ctx.ptr_outputbuffer[nPortIndex].offset;
6426 plane[0].reserved[0] = drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd;
6427 plane[0].reserved[1] = drv_ctx.ptr_outputbuffer[nPortIndex].offset;
7140 buf_ref_remove(drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd,
7141 drv_ctx.ptr_outputbuffer[nPortIndex].offset);
7420 omx->drv_ctx.ptr_outputbuffer[v4l2_buf_ptr->index].bufferaddr;
7979 if (drv_ctx.ptr_outputbuffer)
7981 free (drv_ctx.ptr_outputbuffer);
7982 drv_ctx.ptr_outputbuffer = NULL;
8400 drv_ctx.ptr_outputbuffer = (struct vdec_bufferpayload *) \
8414 if(m_out_mem_ptr && pPtr && drv_ctx.ptr_outputbuffer
8452 drv_ctx.ptr_outputbuffer[i].pmem_fd = -1;
8459 &drv_ctx.ptr_outputbuffer[i];
8481 if(drv_ctx.ptr_outputbuffer)
8483 free(drv_ctx.ptr_outputbuffer);
8484 drv_ctx.ptr_outputbuffer = NULL;
8642 OMX_U8 *pBuffer = (OMX_U8 *)(drv_ctx.ptr_outputbuffer[buf_index].bufferaddr) +
9374 status = c2d.convert(omx->drv_ctx.ptr_outputbuffer[index].pmem_fd,
9621 munmap(drv_ctx.ptr_outputbuffer[i].bufferaddr,
9622 drv_ctx.ptr_outputbuffer[i].mmaped_size);
9624 i, drv_ctx.ptr_outputbuffer[i].bufferaddr);
9626 drv_ctx.ptr_outputbuffer[i].bufferaddr = NULL;
9627 drv_ctx.ptr_outputbuffer[i].offset = 0;
9628 drv_ctx.ptr_outputbuffer[i].mmaped_size = 0;
9973 struct vdec_bufferpayload *ptr_outputbuffer = NULL;
10003 ptr_outputbuffer = (struct vdec_bufferpayload*)ptr_respbuffer->client_data;
10006 if (ptr_respbuffer == NULL || ptr_outputbuffer == NULL)
10020 memcpy (&fillbuffer.buffer,ptr_outputbuffer,
10505 drv_ctx.ptr_outputbuffer[idx].pmem_fd, drv_ctx.ptr_outputbuffer[idx].offset,
10506 idx, drv_ctx.ptr_outputbuffer[idx].bufferaddr);
10507 buf_ref_remove(drv_ctx.ptr_outputbuffer[idx].pmem_fd,
10508 drv_ctx.ptr_outputbuffer[idx].offset);