Lines Matching refs:ptr_outputbuffer
2078 temp = (char *)drv_ctx.ptr_outputbuffer[buf_index].bufferaddr;
2110 temp = (char *)drv_ctx.ptr_outputbuffer[buf_index].bufferaddr;
2116 temp = (char *)drv_ctx.ptr_outputbuffer[buf_index].bufferaddr + y_meta_plane + y_plane;
2140 temp = (char *)drv_ctx.ptr_outputbuffer[buf_index].bufferaddr + stride * scanlines;
5589 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd;
5590 drv_ctx.ptr_outputbuffer[i].offset = 0;
5591 drv_ctx.ptr_outputbuffer[i].bufferaddr = buff;
5592 drv_ctx.ptr_outputbuffer[i].buffer_len = drv_ctx.op_buf.buffer_size;
5593 drv_ctx.ptr_outputbuffer[i].mmaped_size = handle->size;
5608 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
5611 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
5614 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
5615 DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd);
5620 if (drv_ctx.ptr_outputbuffer[i].pmem_fd == 0) {
5621 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
5623 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
5624 DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd);
5629 if (!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd,
5633 close(drv_ctx.ptr_outputbuffer[i].pmem_fd);
5638 drv_ctx.ptr_outputbuffer[i].bufferaddr =
5641 drv_ctx.ptr_outputbuffer[i].pmem_fd,0);
5642 if (drv_ctx.ptr_outputbuffer[i].bufferaddr == MAP_FAILED) {
5643 close(drv_ctx.ptr_outputbuffer[i].pmem_fd);
5651 drv_ctx.ptr_outputbuffer[i].offset = 0;
5676 drv_ctx.ptr_outputbuffer[i].pmem_fd = pmem_info->pmem_fd;
5677 drv_ctx.ptr_outputbuffer[i].offset = pmem_info->offset;
5678 drv_ctx.ptr_outputbuffer[i].bufferaddr = buff;
5679 drv_ctx.ptr_outputbuffer[i].mmaped_size =
5680 drv_ctx.ptr_outputbuffer[i].buffer_len = drv_ctx.op_buf.buffer_size;
5683 m_pmem_info[i].offset = drv_ctx.ptr_outputbuffer[i].offset;
5684 m_pmem_info[i].pmem_fd = drv_ctx.ptr_outputbuffer[i].pmem_fd;
5685 m_pmem_info[i].size = drv_ctx.ptr_outputbuffer[i].buffer_len;
5686 m_pmem_info[i].mapped_size = drv_ctx.ptr_outputbuffer[i].mmaped_size;
5687 m_pmem_info[i].buffer = drv_ctx.ptr_outputbuffer[i].bufferaddr;
5691 drv_ctx.ptr_outputbuffer[i].bufferaddr = *bufferHdr;
6017 && drv_ctx.ptr_outputbuffer) {
6019 drv_ctx.ptr_outputbuffer[index].bufferaddr);
6033 if (drv_ctx.ptr_outputbuffer[index].pmem_fd > 0) {
6034 munmap(drv_ctx.ptr_outputbuffer[index].bufferaddr,
6035 drv_ctx.ptr_outputbuffer[index].mmaped_size);
6038 drv_ctx.ptr_outputbuffer[index].pmem_fd = -1;
6041 if (drv_ctx.ptr_outputbuffer[0].pmem_fd > 0 && !ouput_egl_buffers && !m_use_output_pmem) {
6044 drv_ctx.ptr_outputbuffer[0].pmem_fd);
6046 (unsigned int)drv_ctx.ptr_outputbuffer[0].mmaped_size * drv_ctx.op_buf.actualcount,
6047 drv_ctx.ptr_outputbuffer[0].bufferaddr);
6048 munmap (drv_ctx.ptr_outputbuffer[0].bufferaddr,
6049 drv_ctx.ptr_outputbuffer
6051 close (drv_ctx.ptr_outputbuffer[0].pmem_fd);
6052 drv_ctx.ptr_outputbuffer[0].pmem_fd = -1;
6435 drv_ctx.ptr_outputbuffer = (struct vdec_bufferpayload *)\
6441 if (!drv_ctx.ptr_outputbuffer || !drv_ctx.ptr_respbuffer) {
6442 DEBUG_PRINT_ERROR("Failed to alloc drv_ctx.ptr_outputbuffer or drv_ctx.ptr_respbuffer ");
6456 if (m_out_mem_ptr && pPtr && drv_ctx.ptr_outputbuffer
6458 drv_ctx.ptr_outputbuffer[0].mmaped_size =
6500 drv_ctx.ptr_outputbuffer[i].pmem_fd = pmem_fd;
6511 &drv_ctx.ptr_outputbuffer[i];
6512 drv_ctx.ptr_outputbuffer[i].offset = drv_ctx.op_buf.buffer_size*i;
6513 drv_ctx.ptr_outputbuffer[i].bufferaddr =
6515 m_pmem_info[i].size = drv_ctx.ptr_outputbuffer[i].buffer_len;
6516 m_pmem_info[i].mapped_size = drv_ctx.ptr_outputbuffer[i].mmaped_size;
6517 m_pmem_info[i].buffer = drv_ctx.ptr_outputbuffer[i].bufferaddr;
6520 pmem_fd, (unsigned int)drv_ctx.ptr_outputbuffer[i].offset,
6521 drv_ctx.ptr_outputbuffer[i].bufferaddr);
6539 if (drv_ctx.ptr_outputbuffer) {
6540 free(drv_ctx.ptr_outputbuffer);
6541 drv_ctx.ptr_outputbuffer = NULL;
6570 m_pmem_info[i].offset = drv_ctx.ptr_outputbuffer[i].offset;
6572 drv_ctx.ptr_outputbuffer[i].buffer_len =
6578 drv_ctx.ptr_outputbuffer[i].bufferaddr =
6581 drv_ctx.ptr_outputbuffer[i].bufferaddr = *bufferHdr;
6584 drv_ctx.ptr_outputbuffer[i].mmaped_size = drv_ctx.op_buf.buffer_size;
6598 (*bufferHdr)->pBuffer = (OMX_U8*)drv_ctx.ptr_outputbuffer[i].bufferaddr;
7218 drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd = handle->fd;
7219 drv_ctx.ptr_outputbuffer[nPortIndex].bufferaddr = (OMX_U8*) buffer;
7280 struct vdec_bufferpayload *ptr_outputbuffer = NULL;
7302 drv_ctx.ptr_outputbuffer[nPortIndex].offset = 0;
7303 drv_ctx.ptr_outputbuffer[nPortIndex].buffer_len = buffer->nAllocLen;
7305 drv_ctx.ptr_outputbuffer[nPortIndex].mmaped_size = buffer->nAllocLen;
7317 ptr_outputbuffer = (struct vdec_bufferpayload*)ptr_respbuffer->client_data;
7320 if (ptr_respbuffer == NULL || ptr_outputbuffer == NULL) {
7342 (unsigned long)drv_ctx.ptr_outputbuffer[nPortIndex].bufferaddr -
7343 (unsigned long)drv_ctx.ptr_outputbuffer[nPortIndex].offset;
7344 plane[0].reserved[0] = drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd;
7345 plane[0].reserved[1] = drv_ctx.ptr_outputbuffer[nPortIndex].offset;
7997 OMX_U8 *pBuffer = (OMX_U8 *)(drv_ctx.ptr_outputbuffer[buf_index].bufferaddr);
8416 omx->drv_ctx.ptr_outputbuffer[v4l2_buf_ptr->index].pmem_fd);
8516 omx->drv_ctx.ptr_outputbuffer[v4l2_buf_ptr->index].bufferaddr;
8525 omx->drv_ctx.ptr_outputbuffer[v4l2_buf_ptr->index].pmem_fd,
8740 if (drv_ctx.ptr_outputbuffer) {
8741 free (drv_ctx.ptr_outputbuffer);
8742 drv_ctx.ptr_outputbuffer = NULL;
9193 drv_ctx.ptr_outputbuffer = (struct vdec_bufferpayload *) \
9199 if (!drv_ctx.ptr_outputbuffer || !drv_ctx.ptr_respbuffer) {
9200 DEBUG_PRINT_ERROR("Failed to alloc drv_ctx.ptr_outputbuffer or drv_ctx.ptr_respbuffer");
9221 if (m_out_mem_ptr && pPtr && drv_ctx.ptr_outputbuffer
9257 drv_ctx.ptr_outputbuffer[i].pmem_fd = -1;
9264 &drv_ctx.ptr_outputbuffer[i];
9282 if (drv_ctx.ptr_outputbuffer) {
9283 free(drv_ctx.ptr_outputbuffer);
9284 drv_ctx.ptr_outputbuffer = NULL;
9876 if (drv_ctx.ptr_outputbuffer[buf_index].bufferaddr == NULL) {
9891 pBuffer = (OMX_U8*)mmap(0, drv_ctx.ptr_outputbuffer[buf_index].buffer_len,
9892 PROT_READ|PROT_WRITE, MAP_SHARED, drv_ctx.ptr_outputbuffer[buf_index].pmem_fd, 0);
9902 AutoUnmap autounmap(pBuffer, drv_ctx.ptr_outputbuffer[buf_index].buffer_len);
11256 status = c2dcc.convertC2D(omx->drv_ctx.ptr_outputbuffer[index].pmem_fd,
11549 long fd = drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd;
11550 OMX_U32 offset = drv_ctx.ptr_outputbuffer[nPortIndex].offset;
11565 drv_ctx.ptr_outputbuffer[nPortIndex].bufferaddr = out_dynamic_list[i].buffaddr;
11583 drv_ctx.ptr_outputbuffer[nPortIndex].bufferaddr =
11584 (OMX_U8*)mmap(0, drv_ctx.ptr_outputbuffer[nPortIndex].buffer_len,
11586 drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd, 0);
11588 if (drv_ctx.ptr_outputbuffer[nPortIndex].bufferaddr == MAP_FAILED) {
11590 drv_ctx.ptr_outputbuffer[nPortIndex].bufferaddr = NULL;
11593 out_dynamic_list[i].buffaddr = drv_ctx.ptr_outputbuffer[nPortIndex].bufferaddr;
11594 out_dynamic_list[i].mapped_size = drv_ctx.ptr_outputbuffer[nPortIndex].buffer_len;