Lines Matching defs:index

345       //found valid entry, save index
372 DEBUG_PRINT_LOW("Pop_min_ts:Timestamp (%lld), index(%d)",
2753 DEBUG_PRINT_ERROR("get_parameter: Bad port index %d\n",
3648 DEBUG_PRINT_ERROR("get_config: Bad port index %d queried on only o/p port\n",
3776 OMX_U8 index = 0;
3784 while (index < 2)
3799 index++;
3897 else if (!strncmp(paramName, "OMX.QCOM.index.param.video.SyncFrameDecodingMode",sizeof("OMX.QCOM.index.param.video.SyncFrameDecodingMode") - 1)) {
3901 else if (!strncmp(paramName, "OMX.QCOM.index.param.IndexExtraData",sizeof("OMX.QCOM.index.param.IndexExtraData") - 1))
3907 else if(!strncmp(paramName,"OMX.google.android.index.enableAndroidNativeBuffers", sizeof("OMX.google.android.index.enableAndroidNativeBuffers") - 1)) {
3910 else if(!strncmp(paramName,"OMX.google.android.index.useAndroidNativeBuffer2", sizeof("OMX.google.android.index.enableAndroidNativeBuffer2") - 1)) {
3913 else if(!strncmp(paramName,"OMX.google.android.index.useAndroidNativeBuffer", sizeof("OMX.google.android.index.enableAndroidNativeBuffer") - 1)) {
3917 else if(!strncmp(paramName,"OMX.google.android.index.getAndroidNativeBufferUsage", sizeof("OMX.google.android.index.getAndroidNativeBufferUsage") - 1)) {
4368 unsigned int index = 0;
4374 index = bufferHdr - m_inp_mem_ptr;
4375 DEBUG_PRINT_LOW("\n Free Input Buffer index = %d",index);
4377 if (index < drv_ctx.ip_buf.actualcount && drv_ctx.ptr_inputbuffer)
4379 DEBUG_PRINT_LOW("\n Free Input Buffer index = %d",index);
4380 if (drv_ctx.ptr_inputbuffer[index].pmem_fd > 0)
4385 memcpy (&setbuffers.buffer,&drv_ctx.ptr_inputbuffer[index],
4397 drv_ctx.ptr_inputbuffer[index].pmem_fd);
4399 drv_ctx.ptr_inputbuffer[index].mmaped_size,
4400 drv_ctx.ptr_inputbuffer[index].bufferaddr);
4401 munmap (drv_ctx.ptr_inputbuffer[index].bufferaddr,
4402 drv_ctx.ptr_inputbuffer[index].mmaped_size);
4404 close (drv_ctx.ptr_inputbuffer[index].pmem_fd);
4405 drv_ctx.ptr_inputbuffer[index].pmem_fd = -1;
4406 if (m_desc_buffer_ptr && m_desc_buffer_ptr[index].buf_addr)
4408 free(m_desc_buffer_ptr[index].buf_addr);
4409 m_desc_buffer_ptr[index].buf_addr = NULL;
4410 m_desc_buffer_ptr[index].desc_data_size = 0;
4413 free_ion_memory(&drv_ctx.ip_buf_ion_info[index]);
4423 unsigned int index = 0;
4431 index = bufferHdr - m_out_mem_ptr;
4432 DEBUG_PRINT_LOW("\n Free ouput Buffer index = %d",index);
4434 if (index < drv_ctx.op_buf.actualcount
4437 DEBUG_PRINT_LOW("\n Free ouput Buffer index = %d addr = %x", index,
4438 drv_ctx.ptr_outputbuffer[index].bufferaddr);
4443 memcpy (&setbuffers.buffer,&drv_ctx.ptr_outputbuffer[index],
4454 if(drv_ctx.ptr_outputbuffer[index].pmem_fd > 0) {
4456 munmap(drv_ctx.ptr_outputbuffer[index].bufferaddr,
4457 drv_ctx.ptr_outputbuffer[index].mmaped_size);
4460 drv_ctx.ptr_outputbuffer[index].pmem_fd = -1;
4463 if (drv_ctx.ptr_outputbuffer[index].pmem_fd > 0 && !ouput_egl_buffers && !m_use_output_pmem)
4467 drv_ctx.ptr_outputbuffer[index].pmem_fd);
4469 drv_ctx.ptr_outputbuffer[index].mmaped_size,
4470 drv_ctx.ptr_outputbuffer[index].bufferaddr);
4471 munmap (drv_ctx.ptr_outputbuffer[index].bufferaddr,
4472 drv_ctx.ptr_outputbuffer[index].mmaped_size);
4475 free_ion_memory(&drv_ctx.op_buf_ion_info[index]);
4477 close (drv_ctx.ptr_outputbuffer[index].pmem_fd);
4478 drv_ctx.ptr_outputbuffer[index].pmem_fd = -1;
4480 m_heap_ptr[index].video_heap_ptr = NULL;
4537 /*Find a Free index*/
5269 DEBUG_PRINT_LOW("\n Free pmem Buffer index %d",nPortIndex);
6138 OMX_IN OMX_U32 index)
6144 if((0 == index) && role)
6156 if((0 == index) && role)
6168 if((0 == index) && role)
6187 if((0 == index) && role)
6200 if((0 == index) && role)
6215 if((0 == index) && role)
6541 OMX_U32 index = buffer - m_out_mem_ptr;
6542 OMX_U8* pBuffer = (OMX_U8 *)drv_ctx.ptr_outputbuffer[index].bufferaddr;
6596 OMX_U32 index = buffer - m_out_mem_ptr;
6597 OMX_U8* pBuffer = (OMX_U8 *)drv_ctx.ptr_outputbuffer[index].bufferaddr;
8156 OMX_U32 index = p_buf_hdr - m_out_mem_ptr;
8157 OMX_U8* pBuffer = (OMX_U8 *)drv_ctx.ptr_outputbuffer[index].bufferaddr;
8593 OMX_ERRORTYPE omx_vdec::allocate_desc_buffer(OMX_U32 index)
8596 if (index >= drv_ctx.ip_buf.actualcount)
8613 m_desc_buffer_ptr[index].buf_addr = (unsigned char *)malloc (DESC_BUFFER_SIZE * sizeof(OMX_U8));
8614 if (m_desc_buffer_ptr[index].buf_addr == NULL)
8637 OMX_U32 index = 0;
8641 while (index < bytes_to_parse)
8643 if ( ((buf[index] == 0x00) && (buf[index+1] == 0x00) &&
8644 (buf[index+2] == 0x00) && (buf[index+3] == 0x01)) ||
8645 ((buf[index] == 0x00) && (buf[index+1] == 0x00) &&
8646 (buf[index+2] == 0x01)) )
8649 insert_demux_addr_offset(index);
8650 if (buf[index+2] == 0x01) // 3 byte start code
8651 index += 3;
8653 index += 4;
8656 index++;
8682 DEBUG_PRINT_ERROR("handle_demux_data:Buffer index is incorrect (%d)", buffer_index);
9044 unsigned index = 0;
9045 index = bufadd - omx->m_out_mem_ptr;
9046 if (index < omx->drv_ctx.op_buf.actualcount) {
9047 m_out_mem_ptr_client[index].nFlags = (bufadd->nFlags & OMX_BUFFERFLAG_EOS);
9048 m_out_mem_ptr_client[index].nTimeStamp = bufadd->nTimeStamp;
9051 status = c2d.convert(omx->drv_ctx.ptr_outputbuffer[index].pmem_fd,
9052 bufadd->pBuffer,pmem_fd[index],pmem_baseaddress[index]);
9053 m_out_mem_ptr_client[index].nFilledLen = buffer_size_req;
9059 m_out_mem_ptr_client[index].nFilledLen = 0;
9060 return &m_out_mem_ptr_client[index];
9075 unsigned index = 0;
9076 index = bufadd - m_out_mem_ptr_client;
9077 if (index < omx->drv_ctx.op_buf.actualcount) {
9078 return &omx->m_out_mem_ptr[index];
9101 unsigned int index = 0;
9111 index = bufhdr - m_out_mem_ptr_client;
9112 if (index >= omx->drv_ctx.op_buf.actualcount){
9113 DEBUG_PRINT_ERROR("\n Incorrect index color convert free_output_buffer");
9116 if (pmem_fd[index] > 0) {
9117 munmap(pmem_baseaddress[index], buffer_size_req);
9118 close(pmem_fd[index]);
9120 pmem_fd[index] = -1;
9121 omx->free_ion_memory(&op_buf_ion_info[index]);
9122 m_heap_ptr[index].video_heap_ptr = NULL;
9131 return omx->free_output_buffer(&omx->m_out_mem_ptr[index]);
9166 DEBUG_PRINT_ERROR("\n Invalid header index %d",