Lines Matching refs:ptr_outputbuffer
1546 char *temp = (char *)drv_ctx.ptr_outputbuffer[buf_index].bufferaddr;
1556 temp = (char *)drv_ctx.ptr_outputbuffer[buf_index].bufferaddr + stride * scanlines;
4824 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd;
4825 drv_ctx.ptr_outputbuffer[i].offset = 0;
4826 drv_ctx.ptr_outputbuffer[i].bufferaddr = buff;
4827 drv_ctx.ptr_outputbuffer[i].buffer_len = drv_ctx.op_buf.buffer_size;
4828 drv_ctx.ptr_outputbuffer[i].mmaped_size = handle->size;
4842 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4845 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4848 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
4849 DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd);
4854 if (drv_ctx.ptr_outputbuffer[i].pmem_fd == 0) {
4855 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4857 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
4858 DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd);
4863 if (!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd,
4867 close(drv_ctx.ptr_outputbuffer[i].pmem_fd);
4872 drv_ctx.ptr_outputbuffer[i].bufferaddr =
4875 drv_ctx.ptr_outputbuffer[i].pmem_fd,0);
4876 if (drv_ctx.ptr_outputbuffer[i].bufferaddr == MAP_FAILED) {
4877 close(drv_ctx.ptr_outputbuffer[i].pmem_fd);
4885 drv_ctx.ptr_outputbuffer[i].offset = 0;
4910 drv_ctx.ptr_outputbuffer[i].pmem_fd = pmem_info->pmem_fd;
4911 drv_ctx.ptr_outputbuffer[i].offset = pmem_info->offset;
4912 drv_ctx.ptr_outputbuffer[i].bufferaddr = buff;
4913 drv_ctx.ptr_outputbuffer[i].mmaped_size =
4914 drv_ctx.ptr_outputbuffer[i].buffer_len = drv_ctx.op_buf.buffer_size;
4917 m_pmem_info[i].offset = drv_ctx.ptr_outputbuffer[i].offset;
4918 m_pmem_info[i].pmem_fd = drv_ctx.ptr_outputbuffer[i].pmem_fd;
4919 m_pmem_info[i].size = drv_ctx.ptr_outputbuffer[i].buffer_len;
4920 m_pmem_info[i].mapped_size = drv_ctx.ptr_outputbuffer[i].mmaped_size;
4921 m_pmem_info[i].buffer = drv_ctx.ptr_outputbuffer[i].bufferaddr;
4925 drv_ctx.ptr_outputbuffer[i].bufferaddr = *bufferHdr;
4927 memcpy (&setbuffers.buffer,&drv_ctx.ptr_outputbuffer[i],
4931 drv_ctx.ptr_outputbuffer
4932 drv_ctx.ptr_outputbuffer[i].pmem_fd );
4938 plane[0].m.userptr = (unsigned long)drv_ctx.ptr_outputbuffer[i].bufferaddr -
4939 (unsigned long)drv_ctx.ptr_outputbuffer[i].offset;
4940 plane[0].reserved[0] = drv_ctx.ptr_outputbuffer[i].pmem_fd;
4941 plane[0].reserved[1] = drv_ctx.ptr_outputbuffer[i].offset;
5201 && drv_ctx.ptr_outputbuffer) {
5203 drv_ctx.ptr_outputbuffer[index].bufferaddr);
5207 memcpy (&setbuffers.buffer,&drv_ctx.ptr_outputbuffer[index],
5214 if (drv_ctx.ptr_outputbuffer[index].pmem_fd > 0) {
5215 munmap(drv_ctx.ptr_outputbuffer[index].bufferaddr,
5216 drv_ctx.ptr_outputbuffer[index].mmaped_size);
5219 drv_ctx.ptr_outputbuffer[index].pmem_fd = -1;
5222 if (drv_ctx.ptr_outputbuffer[0].pmem_fd > 0 && !ouput_egl_buffers && !m_use_output_pmem) {
5225 drv_ctx.ptr_outputbuffer[0].pmem_fd);
5227 (unsigned int)drv_ctx.ptr_outputbuffer[0].mmaped_size * drv_ctx.op_buf.actualcount,
5228 drv_ctx.ptr_outputbuffer[0].bufferaddr);
5229 munmap (drv_ctx.ptr_outputbuffer[0].bufferaddr,
5230 drv_ctx.ptr_outputbuffer[0].mmaped_size * drv_ctx.op_buf.actualcount);
5232 close (drv_ctx.ptr_outputbuffer[0].pmem_fd);
5233 drv_ctx.ptr_outputbuffer[0].pmem_fd = -1;
5655 drv_ctx.ptr_outputbuffer = (struct vdec_bufferpayload *)\
5661 if (!drv_ctx.ptr_outputbuffer || !drv_ctx.ptr_respbuffer) {
5662 DEBUG_PRINT_ERROR("Failed to alloc drv_ctx.ptr_outputbuffer or drv_ctx.ptr_respbuffer ");
5676 if (m_out_mem_ptr && pPtr && drv_ctx.ptr_outputbuffer
5678 drv_ctx.ptr_outputbuffer[0].mmaped_size =
5720 drv_ctx.ptr_outputbuffer[i].pmem_fd = pmem_fd;
5731 &drv_ctx.ptr_outputbuffer[i];
5732 drv_ctx.ptr_outputbuffer[i].offset = drv_ctx.op_buf.buffer_size*i;
5733 drv_ctx.ptr_outputbuffer[i].bufferaddr =
5735 m_pmem_info[i].size = drv_ctx.ptr_outputbuffer[i].buffer_len;
5736 m_pmem_info[i].mapped_size = drv_ctx.ptr_outputbuffer[i].mmaped_size;
5737 m_pmem_info[i].buffer = drv_ctx.ptr_outputbuffer[i].bufferaddr;
5740 pmem_fd, (unsigned int)drv_ctx.ptr_outputbuffer[i].offset,
5741 drv_ctx.ptr_outputbuffer[i].bufferaddr);
5759 if (drv_ctx.ptr_outputbuffer) {
5760 free(drv_ctx.ptr_outputbuffer);
5761 drv_ctx.ptr_outputbuffer = NULL;
5792 m_pmem_info[i].offset = drv_ctx.ptr_outputbuffer[i].offset;
5794 drv_ctx.ptr_outputbuffer[i].buffer_len =
5800 drv_ctx.ptr_outputbuffer[i].bufferaddr =
5803 drv_ctx.ptr_outputbuffer[i].bufferaddr = *bufferHdr;
5806 drv_ctx.ptr_outputbuffer[i].mmaped_size = drv_ctx.op_buf.buffer_size;
5812 plane[0].m.userptr = (unsigned long)drv_ctx.ptr_outputbuffer[i].bufferaddr -
5813 (unsigned long)drv_ctx.ptr_outputbuffer[i].offset;
5817 plane[0].reserved[1] = drv_ctx.ptr_outputbuffer[i].offset;
5834 DEBUG_PRINT_LOW("Set the Output Buffer Idx: %d Addr: %p", i, drv_ctx.ptr_outputbuffer[i].bufferaddr);
5853 (*bufferHdr)->pBuffer = (OMX_U8*)drv_ctx.ptr_outputbuffer[i].bufferaddr;
6492 drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd = handle->fd;
6493 drv_ctx.ptr_outputbuffer[nPortIndex].bufferaddr = (OMX_U8*) buffer;
6550 struct vdec_bufferpayload *ptr_outputbuffer = NULL;
6573 if (drv_ctx.ptr_outputbuffer) {
6583 drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd = handle->fd;
6584 drv_ctx.ptr_outputbuffer[nPortIndex].bufferaddr = (OMX_U8*) bufferAdd;
6588 drv_ctx.ptr_outputbuffer[nPortIndex].bufferaddr =
6591 drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd, 0);
6594 drv_ctx.ptr_outputbuffer[nPortIndex].offset = 0;
6595 drv_ctx.ptr_outputbuffer[nPortIndex].buffer_len = drv_ctx.op_buf.buffer_size;
6596 drv_ctx.ptr_outputbuffer[nPortIndex].mmaped_size = drv_ctx.op_buf.buffer_size;
6597 buf_ref_add(drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd,
6598 drv_ctx.ptr_outputbuffer[nPortIndex].offset);
6613 ptr_outputbuffer = (struct vdec_bufferpayload*)ptr_respbuffer->client_data;
6616 if (ptr_respbuffer == NULL || ptr_outputbuffer == NULL) {
6637 (unsigned long)drv_ctx.ptr_outputbuffer[nPortIndex].bufferaddr -
6638 (unsigned long)drv_ctx.ptr_outputbuffer[nPortIndex].offset;
6639 plane[0].reserved[0] = drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd;
6640 plane[0].reserved[1] = drv_ctx.ptr_outputbuffer[nPortIndex].offset;
7277 OMX_U8 *pBuffer = (OMX_U8 *)(drv_ctx.ptr_outputbuffer[buf_index].bufferaddr);
7417 munmap(drv_ctx.ptr_outputbuffer[nPortIndex].bufferaddr,
7418 drv_ctx.ptr_outputbuffer[nPortIndex].mmaped_size);
7661 omx->drv_ctx.ptr_outputbuffer[v4l2_buf_ptr->index].pmem_fd);
7665 omx->buf_ref_remove(omx->drv_ctx.ptr_outputbuffer[v4l2_buf_ptr->index].pmem_fd,
7683 omx->drv_ctx.ptr_outputbuffer[v4l2_buf_ptr->index].bufferaddr;
8574 if (drv_ctx.ptr_outputbuffer) {
8575 free (drv_ctx.ptr_outputbuffer);
8576 drv_ctx.ptr_outputbuffer = NULL;
8999 drv_ctx.ptr_outputbuffer = (struct vdec_bufferpayload *) \
9005 if (!drv_ctx.ptr_outputbuffer || !drv_ctx.ptr_respbuffer) {
9006 ptr_outputbuffer or drv_ctx.ptr_respbuffer");
9023 if (m_out_mem_ptr && pPtr && drv_ctx.ptr_outputbuffer
9059 drv_ctx.ptr_outputbuffer[i].pmem_fd = -1;
9066 &drv_ctx.ptr_outputbuffer[i];
9084 if (drv_ctx.ptr_outputbuffer) {
9085 free(drv_ctx.ptr_outputbuffer);
9086 drv_ctx.ptr_outputbuffer = NULL;
9246 OMX_U8 *pBuffer = (OMX_U8 *)(drv_ctx.ptr_outputbuffer[buf_index].bufferaddr) +
10349 status = c2d.convert(omx->drv_ctx.ptr_outputbuffer[index].pmem_fd,