最重要的还是openmax的处理,只是看了一天,很多东西还需要再细看一下
openmax 的IL层规定了一些接口,openmax分为core和instance,core加载instance,omax instance实现IL接口,提供给openmax框架调用,而omax instance就是特定平台实现自己codec的具体地方。
下面代码是qcom平台的建立自己omx具体方法的地方,omx 具体调用的就是component的方法,而具体的到底是什么方法是在omx il的api中规定好的。
void * qc_omx_create_component_wrapper(OMX_PTR obj_ptr)
{
qc_omx_component *pThis = (qc_omx_component *)obj_ptr;
OMX_COMPONENTTYPE* component = &(pThis->m_cmp);
memset(&pThis->m_cmp,0,sizeof(OMX_COMPONENTTYPE));
component->nSize = sizeof(OMX_COMPONENTTYPE);
component->nVersion.nVersion = OMX_SPEC_VERSION;
component->pApplicationPrivate = 0;
component->pComponentPrivate = obj_ptr;
component->AllocateBuffer = &qc_omx_component_allocate_buffer;
component->FreeBuffer = &qc_omx_component_free_buffer;
component->GetParameter = &qc_omx_component_get_parameter;
component->SetParameter = &qc_omx_component_set_parameter;
component->SendCommand = &qc_omx_component_send_command;
component->FillThisBuffer = &qc_omx_component_fill_this_buffer;
component->EmptyThisBuffer = &qc_omx_component_empty_this_buffer;
component->GetState = &qc_omx_component_get_state;
component->GetComponentVersion = &qc_omx_component_get_version;
component->GetConfig = &qc_omx_component_get_config;
component->SetConfig = &qc_omx_component_set_config;
component->GetExtensionIndex = &qc_omx_component_get_extension_index;
component->ComponentTunnelRequest = &qc_omx_component_tunnel_request;
component->UseBuffer = &qc_omx_component_use_buffer;
component->SetCallbacks = &qc_omx_component_set_callbacks;
component->UseEGLImage = &qc_omx_component_use_EGL_image;
component->ComponentRoleEnum = &qc_omx_component_role_enum;
component->ComponentDeInit = &qc_omx_component_deinit;
return (void *)component;
}
qcom平台会继续调用自己实现的omx方法
分享到:
相关推荐
stagefright实例,主要讲述android的多媒体架构
stagefright + omx小结 stagefright + omx小结 stagefright + omx小结 stagefright + omx小结 stagefright + omx小结 stagefright + omx小结 stagefright + omx小结
在android系统中,多媒体可以说占到整个系统的50 ,因此,关于多媒体的知识很重要,本文就要就是我个人关于android系统在2.3版本以后都采用的播放组件stagefright进行的详细的源码分析,相信对那些希望对多媒体有更...
stagefright与opencore对比
详细分析stagefright框架,包括omx,awesomeplayer以及AAC音频等的详细解析
stageFright_OpenMax系统.doc,对Android2.3的 stagefright框架和openMAx的深入分析
stagefright框架2.0.pdf
StageFright_選擇Video Decoder
Android 系统下Stagefright Player框架介绍
了解stagefright的缓存机制,对于android多媒体的移动开发有很大帮助
StageFright_Video Playback的流程
详细分析StageFright框架流程,StageFright并没有完全抛弃opencore,主要是做了一个OMX层,仅仅是对opencore的omx-component部分做了引用。stagefright是在MediaPlayerService这一层加入的,和opencore是并列的。...
stagefright opencore对比 mp4范例stagefright opencore对比 mp4范例stagefright opencore对比 mp4范例stagefright opencore对比 mp4范例
stagefright-cve-2015-3864 PoC-CVE-2015-3864的二进制补丁(非生产版本,使用后果自负)
stagefright框架2.0
最近花了半个多月的时间研读android源码中处理httplivestreaming的部分,其中包含了如何处理.m3u8文件,android内部如何缓冲视频流,包括后台线程始终获取数据缓冲的过程,以及缓冲没有命中时如何处理的等等,大致还...
很好的stagefright AwesomePlayer框架分析文档
StageFright_Video Rendering
Android-StageFright之数据流的封装和AwesomePlayer流程