Lines Matching defs:omx
134 omx_vdec *omx = reinterpret_cast<omx_vdec*>(input);
135 pfd.fd = omx->drv_ctx.video_driver_fd;
199 if (omx->async_message_process(input,&vdec_msg) < 0) {
210 omx_vdec* omx = reinterpret_cast<omx_vdec*>(input);
219 n = read(omx->m_pipe_in, &id, 1);
228 omx->process_event_cb(omx, id);
240 void post_message(omx_vdec *omx, unsigned char id)
243 DEBUG_PRINT_LOW("omx_vdec: post_message %d pipe out%d\n", id,omx->m_pipe_out);
244 ret_value = write(omx->m_pipe_out, &id, 1);
254 // omx cmd queue constructor
260 // omx cmd queue insert
284 // omx cmd queue pop
515 DEBUG_PRINT_HIGH("In OMX vdec Constructor");
580 DEBUG_PRINT_HIGH("In OMX vdec Destructor");
585 DEBUG_PRINT_HIGH("Waiting on OMX Msg Thread exit");
587 DEBUG_PRINT_HIGH("Waiting on OMX Async Thread exit");
597 DEBUG_PRINT_HIGH("Exit OMX vdec Destructor");
1228 if(!strncmp(drv_ctx.kind,"OMX.qcom.video.decoder.mpeg4",\
1243 else if(!strncmp(drv_ctx.kind,"OMX.qcom.video.decoder.mpeg2",\
1257 else if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.h263",\
1270 else if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.divx311",\
1282 else if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.divx4",\
1295 else if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.divx",\
1308 else if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.avc",\
1322 else if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.vc1",\
1334 else if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.wmv",\
2196 Executes the OMX flush.
2238 Executes the OMX flush at OUTPUT PORT.
2280 DEBUG_PRINT_HIGH("\n OMX flush o/p Port complete PenBuf(%d)", pending_output_buffers);
2287 Executes the OMX flush at INPUT PORT.
2383 DEBUG_PRINT_HIGH("\n OMX flush i/p Port complete PenBuf(%d)", pending_input_buffers);
2444 if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.avc",OMX_MAX_STRINGNAME_SIZE))
2469 else if((!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.h263",OMX_MAX_STRINGNAME_SIZE)))
2482 else if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.mpeg4",OMX_MAX_STRINGNAME_SIZE))
2500 else if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.mpeg2",OMX_MAX_STRINGNAME_SIZE))
2532 OMX Get Parameter method implementation
2812 OMX Set Parameter method implementation.
2818 OMX Error None if successful.
2886 DEBUG_PRINT_HIGH("set_parameter: frame rate set by omx client : %d",
3075 if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.avc",OMX_MAX_STRINGNAME_SIZE))
3087 else if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.mpeg4",OMX_MAX_STRINGNAME_SIZE))
3099 else if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.h263",OMX_MAX_STRINGNAME_SIZE))
3111 else if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.mpeg2",OMX_MAX_STRINGNAME_SIZE))
3123 else if((!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.divx",OMX_MAX_STRINGNAME_SIZE)) ||
3124 (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.divx311",OMX_MAX_STRINGNAME_SIZE))
3137 else if ( (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.vc1",OMX_MAX_STRINGNAME_SIZE)) ||
3138 (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.wmv",OMX_MAX_STRINGNAME_SIZE))
3403 OMX Get Config Method implementation.
3409 OMX Error None if successful.
3505 OMX Set Config method implementation
3511 OMX Error None if successful.
3538 if (!strcmp(drv_ctx.kind, "OMX.qcom.video.decoder.avc"))
3597 else if (!strcmp(drv_ctx.kind, "OMX.qcom.video.decoder.mpeg4") ||
3598 !strcmp(drv_ctx.kind, "OMX.qcom.video.decoder.mpeg2"))
3605 else if (!strcmp(drv_ctx.kind, "OMX.qcom.video.decoder.vc1"))
3672 OMX GetExtensionIndex method implementaion. <TBD>
3678 OMX Error None if everything successful.
3690 else if (!strncmp(paramName, "OMX.QCOM.index.param.video.SyncFrameDecodingMode",sizeof("OMX.QCOM.index.param.video.SyncFrameDecodingMode") - 1)) {
3693 else if (!strncmp(paramName, "OMX.QCOM.index.param.IndexExtraData",sizeof("OMX.QCOM.index.param.IndexExtraData") - 1))
3698 else if(!strncmp(paramName,"OMX.google.android.index.enableAndroidNativeBuffers", sizeof("OMX.google.android.index.enableAndroidNativeBuffers") - 1)) {
3701 else if(!strncmp(paramName,"OMX.google.android.index.useAndroidNativeBuffer2", sizeof("OMX.google.android.index.enableAndroidNativeBuffer2") - 1)) {
3704 else if(!strncmp(paramName,"OMX.google.android.index.useAndroidNativeBuffer", sizeof("OMX.google.android.index.enableAndroidNativeBuffer") - 1)) {
3708 else if(!strncmp(paramName,"OMX.google.android.index.getAndroidNativeBufferUsage", sizeof("OMX.google.android.index.getAndroidNativeBufferUsage") - 1)) {
3745 OMX Component Tunnel Request method implementation. <TBD>
3751 OMX Error None if everything successful.
3963 OMX Use Buffer Heap allocation method implementation.
3969 OMX Error None , if everything successful.
4027 OMX Use Buffer method implementation.
4033 OMX Error None , if everything successful.
4528 OMX Error None if everything went well.
4857 OMX_ERRORTYPE eRet = OMX_ErrorNone; // OMX return type
5095 OMX Error None if everything went successful.
5203 OMX Error None if everything went successful.
5581 OMX Error None if everything successful.
5607 OMX Error None if everything successful.
5623 DEBUG_PRINT_ERROR("WARNING:Rxd DeInit,OMX not in LOADED state %d\n",\
5716 OMX Use EGL Image method implementation <TBD>.
5755 #else //with OMX test app
5794 OMX Component Role Enum method implementation.
5800 OMX Error None if everything is successful.
5808 if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.mpeg4",OMX_MAX_STRINGNAME_SIZE))
5820 if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.mpeg2",OMX_MAX_STRINGNAME_SIZE))
5832 else if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.h263",OMX_MAX_STRINGNAME_SIZE))
5846 else if((!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.divx",OMX_MAX_STRINGNAME_SIZE)) ||
5847 (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.divx311",OMX_MAX_STRINGNAME_SIZE))
5862 else if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.avc",OMX_MAX_STRINGNAME_SIZE))
5875 else if( (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.vc1",OMX_MAX_STRINGNAME_SIZE)) ||
5876 (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.wmv",OMX_MAX_STRINGNAME_SIZE))
6316 omx_vdec* omx = NULL;
6329 omx = reinterpret_cast<omx_vdec*>(context);
6332 if (omx->m_debug_timestamp)
6335 !(omx->output_flush_progress) )
6338 omx->m_timestamp_list.pop_min_ts(expected_ts);
6354 omx->post_event (NULL,vdec_msg->status_code,\
6359 omx->post_event (NULL,vdec_msg->status_code,\
6364 omx->post_event (NULL,vdec_msg->status_code,\
6369 omx->post_event (NULL,vdec_msg->status_code,\
6374 omx->post_event (NULL,vdec_msg->status_code,\
6379 omx->post_event (NULL,vdec_msg->status_code,\
6383 omx->post_event (NULL,vdec_msg->status_code,\
6393 omxhdr=omx->m_inp_mem_ptr+v4l2_buf_ptr->index;
6395 ((omxhdr - omx->m_inp_mem_ptr) > omx->drv_ctx.ip_buf.actualcount) )
6401 omx->post_event ((unsigned int)omxhdr,vdec_msg->status_code,
6409 omx->post_event ((unsigned int)timestamp, vdec_msg->status_code,
6419 omxhdr=omx->m_out_mem_ptr+v4l2_buf_ptr->index;
6425 ((omxhdr - omx->m_out_mem_ptr) < omx->drv_ctx.op_buf.actualcount) &&
6427 - omx->drv_ctx.ptr_respbuffer) < omx->drv_ctx.op_buf.actualcount))
6433 omxhdr->nTimeStamp = omx->m_out_mem_ptr[v4l2_buf_ptr->index].nTimeStamp;
6434 omxhdr->nFlags = omx->m_out_mem_ptr[v4l2_buf_ptr->index].nFlags;
6441 vdec_msg->msgdata.output_frame.bufferaddr=omx->drv_ctx.ptr_outputbuffer[v4l2_buf_ptr->index].bufferaddr;
6459 if (omx->output_use_buffer)
6467 omx->post_event ((unsigned int)omxhdr, vdec_msg->status_code,
6471 omx->post_event (NULL, vdec_msg->status_code,
6474 omx->post_event (NULL, vdec_msg->status_code,
6479 omx->post_event ((unsigned int)omxhdr,vdec_msg->status_code,
6487 omx->m_port_def.nPortIndex = 1;
6488 eRet = omx->update_portdef(&(omx->m_port_def));
6489 omx->post_event ((unsigned int)omxhdr,vdec_msg->status_code,
7807 // Map driver extradata to corresponding OMX type
7810 p_extra->eType = OMX_ExtraDataMax; // Invalid type to avoid expose this extradata to OMX client
7821 p_extra->eType = OMX_ExtraDataMax; // Invalid type to avoid expose this extradata to OMX client
7829 p_extra->eType = OMX_ExtraDataMax; // Invalid type to avoid expose this extradata to OMX client
7840 // otherwise can be overwritten by omx extradata.
7972 if (!(client_extradata & ~DRIVER_EXTRADATA_MASK)) // If no omx extradata is required remove space for terminator