Lines Matching refs:nPortIndex

3323     if (profileLevelType->nPortIndex == 0) {
3400 (unsigned int)profileLevelType->nPortIndex);
3469 if (0 == portFmt->nPortIndex) {
3478 } else if (1 == portFmt->nPortIndex) {
3506 (int)portFmt->nPortIndex);
3576 if (0 == bufferSupplierType->nPortIndex)
3577 bufferSupplierType->nPortIndex = OMX_BufferSupplyUnspecified;
3578 else if (1 == bufferSupplierType->nPortIndex)
3579 bufferSupplierType->nPortIndex = OMX_BufferSupplyUnspecified;
3624 if (nativeBuffersUsage->nPortIndex == OMX_CORE_OUTPUT_PORT_INDEX) {
3795 if (OMX_CORE_OUTPUT_PORT_INDEX == params->nPortIndex) { //android native buffers can be used only on Output port
3805 eRet = use_buffer(hComp,params->bufferHeader,params->nPortIndex,data,handle->size,buffer);
4143 (int)portDefn->nPortIndex);
4155 portFmt->eColorFormat, (unsigned int)portFmt->nPortIndex);
4158 if (1 == portFmt->nPortIndex) {
4212 if (portFmt->nPortIndex == 0) {
4236 } else if (portFmt->nPortIndex == OMX_CORE_OUTPUT_PORT_INDEX) {
4379 if (bufferSupplierType->nPortIndex == 0 || bufferSupplierType->nPortIndex ==1)
4550 (extradataIndexType->nPortIndex == 1)) {
4635 if (metabuffer->nPortIndex == OMX_CORE_OUTPUT_PORT_INDEX) {
4658 (unsigned int)metabuffer->nPortIndex);
4695 if (pParams->nPortIndex == OMX_CORE_OUTPUT_PORT_INDEX) {
4733 if (pParam->nPortIndex == OMX_CORE_INPUT_PORT_INDEX) {
4874 if (configFmt->nPortIndex == 1) {
4891 (int)configFmt->nPortIndex);
5053 if (config->nPortIndex == OMX_CORE_INPUT_PORT_INDEX) {
5100 (int)config->nPortIndex);
6625 unsigned int nPortIndex;
6657 nPortIndex = buffer - m_inp_mem_ptr;
6659 nPortIndex = buffer - m_inp_heap_ptr;
6661 DEBUG_PRINT_LOW("free_buffer on i/p port - Port idx %d", nPortIndex);
6662 if (nPortIndex < drv_ctx.ip_buf.actualcount &&
6663 BITMASK_PRESENT(&m_inp_bm_count, nPortIndex)) {
6665 BITMASK_CLEAR(&m_inp_bm_count,nPortIndex);
6666 BITMASK_CLEAR(&m_heap_inp_bm_count,nPortIndex);
6669 DEBUG_PRINT_LOW("Free pmem Buffer index %d",nPortIndex);
6671 free_input_buffer(m_phdr_pmem_ptr[nPortIndex]);
6675 free_input_buffer(nPortIndex,m_phdr_pmem_ptr[nPortIndex]);
6677 free_input_buffer(nPortIndex,NULL);
6704 nPortIndex = buffer - client_buffers.get_il_buf_hdr();
6705 if (nPortIndex < drv_ctx.op_buf.actualcount &&
6706 BITMASK_PRESENT(&m_out_bm_count, nPortIndex)) {
6707 DEBUG_PRINT_LOW("free_buffer on o/p port - Port idx %d", nPortIndex);
6709 BITMASK_CLEAR(&m_out_bm_count,nPortIndex);
6870 unsigned nPortIndex = 0;
6883 nPortIndex = buffer-((OMX_BUFFERHEADERTYPE *)m_inp_mem_ptr);
6885 if (nPortIndex > drv_ctx.ip_buf.actualcount) {
6886 DEBUG_PRINT_ERROR("ERROR:empty_this_buffer_proxy invalid nPortIndex[%u]",
6887 nPortIndex);
6943 memcpy (temp_buffer->bufferaddr, (m_inp_heap_ptr[nPortIndex].pBuffer + m_inp_heap_ptr[nPortIndex].nOffset),
6960 if (drv_ctx.disable_dmx && m_desc_buffer_ptr && m_desc_buffer_ptr[nPortIndex].buf_addr) {
6968 frameinfo.desc_addr = (OMX_U8 *)m_desc_buffer_ptr[nPortIndex].buf_addr;
6969 frameinfo.desc_size = m_desc_buffer_ptr[nPortIndex].desc_data_size;
7023 buf.index = nPortIndex;
7118 unsigned nPortIndex = 0;
7122 unsigned int nPortIndex = 0;
7139 nPortIndex = buffer-((OMX_BUFFERHEADERTYPE *)client_buffers.get_il_buf_hdr());
7140 if (nPortIndex < drv_ctx.op_buf.actualcount &&
7141 nPortIndex < MAX_NUM_INPUT_OUTPUT_BUFFERS) {
7142 drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd = handle->fd;
7143 drv_ctx.ptr_outputbuffer[nPortIndex].bufferaddr = (OMX_U8*) buffer;
7146 native_buffer[nPortIndex].privatehandle = handle;
7147 native_buffer[nPortIndex].nativehandle = handle;
7149 DEBUG_PRINT_ERROR("[FTB]Invalid native_buffer index: %d", nPortIndex);
7160 nPortIndex = buffer - client_buffers.get_il_buf_hdr();
7162 (nPortIndex >= drv_ctx.op_buf.actualcount)) {
7163 DEBUG_PRINT_ERROR("FTB: ERROR: invalid buffer index, nPortIndex %u bufCount %u",
7164 nPortIndex, drv_ctx.op_buf.actualcount);
7198 unsigned nPortIndex = 0;
7203 nPortIndex = buffer-((OMX_BUFFERHEADERTYPE *)client_buffers.get_il_buf_hdr());
7205 if (bufferAdd == NULL || nPortIndex > drv_ctx.op_buf.actualcount) {
7206 DEBUG_PRINT_ERROR("FTBProxy: ERROR: invalid buffer index, nPortIndex %u bufCount %u",
7207 nPortIndex, drv_ctx.op_buf.actualcount);
7222 drv_ctx.ptr_outputbuffer[nPortIndex].offset = 0;
7223 drv_ctx.ptr_outputbuffer[nPortIndex].buffer_len = buffer->nAllocLen;
7224 buf_ref_add(nPortIndex);
7225 drv_ctx.ptr_outputbuffer[nPortIndex].mmaped_size = buffer->nAllocLen;
7254 buf.index = nPortIndex;
7260 (unsigned long)drv_ctx.ptr_outputbuffer[nPortIndex].bufferaddr -
7261 (unsigned long)drv_ctx.ptr_outputbuffer[nPortIndex].offset;
7262 plane[0].reserved[0] = drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd;
7263 plane[0].reserved[1] = drv_ctx.ptr_outputbuffer[nPortIndex].offset;
7269 plane[extra_idx].m.userptr = (long unsigned int) (drv_ctx.extradata_info.uaddr + nPortIndex * drv_ctx.extradata_info.buffer_size);
7273 plane[extra_idx].reserved[1] = nPortIndex * drv_ctx.extradata_info.buffer_size;
8051 unsigned int nPortIndex = 0;
8052 nPortIndex = buffer-((OMX_BUFFERHEADERTYPE *)client_buffers.get_il_buf_hdr());
8063 if (nPortIndex < drv_ctx.op_buf.actualcount &&
8064 nPortIndex < MAX_NUM_INPUT_OUTPUT_BUFFERS) {
8065 native_buffer[nPortIndex].privatehandle = NULL;
8066 native_buffer[nPortIndex].nativehandle = NULL;
8068 DEBUG_PRINT_ERROR("[FBD]Invalid native_buffer index: %d", nPortIndex);
9587 if (0 == portDefn->nPortIndex) {
9599 } else if (1 == portDefn->nPortIndex) {
9625 (int)portDefn->nPortIndex);
9654 (unsigned int)portDefn->nPortIndex,
10353 (unsigned int)extra->nPortIndex, extra->eType, (unsigned int)extra->nDataSize);
10365 (unsigned int)intfmt->nSize, (unsigned int)intfmt->nVersion.nVersion, (unsigned int)intfmt->nPortIndex,
10504 extra->nPortIndex = OMX_CORE_OUTPUT_PORT_INDEX;
10510 interlace_format->nPortIndex = OMX_CORE_OUTPUT_PORT_INDEX;
10540 extra->nPortIndex = OMX_CORE_OUTPUT_PORT_INDEX;
10573 extra->nPortIndex = OMX_CORE_OUTPUT_PORT_INDEX;
10631 extra->nPortIndex = OMX_CORE_OUTPUT_PORT_INDEX;
10653 extra->nPortIndex = OMX_CORE_OUTPUT_PORT_INDEX;
10659 framepack->nPortIndex = OMX_CORE_OUTPUT_PORT_INDEX;
10677 extra->nPortIndex = OMX_CORE_OUTPUT_PORT_INDEX;
10695 extra->nPortIndex = OMX_CORE_OUTPUT_PORT_INDEX;
10714 extra->nPortIndex = OMX_CORE_OUTPUT_PORT_INDEX;
10743 extra->nPortIndex = OMX_CORE_OUTPUT_PORT_INDEX;
11360 void omx_vdec::buf_ref_add(int nPortIndex)
11364 long fd = drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd;
11365 OMX_U32 offset = drv_ctx.ptr_outputbuffer[nPortIndex].offset;
11380 drv_ctx.ptr_outputbuffer[nPortIndex].bufferaddr = out_dynamic_list[i].buffaddr;
11398 drv_ctx.ptr_outputbuffer[nPortIndex].bufferaddr =
11399 (OMX_U8*)mmap(0, drv_ctx.ptr_outputbuffer[nPortIndex].buffer_len,
11401 drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd, 0);
11403 if (drv_ctx.ptr_outputbuffer[nPortIndex].bufferaddr == MAP_FAILED) {
11405 drv_ctx.ptr_outputbuffer[nPortIndex].bufferaddr = NULL;
11408 out_dynamic_list[i].buffaddr = drv_ctx.ptr_outputbuffer[nPortIndex].bufferaddr;
11409 out_dynamic_list[i].mapped_size = drv_ctx.ptr_outputbuffer[nPortIndex].buffer_len;