opencore與omx的接口:hardware/ti/omap3/omx/core_plugin/omx_core_plugin/src

使用singleton pattern, 由TIOMXInterface繼承OMXInterface

libOMX_Core.so由ti_omx_interface.cpp開啟

external/opencore/codecs_v2/omx/omx_core_plugins/template/src/pv_omx_interface.cpp的PVOMXInterface為使用OMXInterface的範本

由PVGetInterface()得到真正的物件, 回傳void*, 常見的一種寫法, 之後再轉型

PVOMXInterface繼承於OMXInterface, 標準singleton寫法,由static PVOMXInterface* Instance()得到真正的物件

external/opencore/codecs_v2/omx/下的物件, 皆由PVGetInterface()得到

codecs_v2/omx/下所有的component都繼承於OmxComponentBase

由oscl/oscl/oscllib/src/oscl_shared_library.cpp取得.so檔中的PVGetInterface symbol

由oscl/oscl/oscllib/src/oscl_shared_library.cpp的QueryInterface()取得實際物件

更多相关文章

  1. Android实现下载文件功能的方法
  2. Android(安卓)编译NDK
  3. Android(安卓)基础UI编程2
  4. Android动态获取当前手机IP地址
  5. android文件下载
  6. android录音和得到音量
  7. android发送json并解析返回json
  8. android 启动第三方APP的方式
  9. Android(安卓)Wifi的使用

随机推荐

  1. 实现简单的Android的播放视频功能
  2. Android 在屏幕上打印LOG
  3. [转]Android Audio简述
  4. js 判断当前操作系统 ios, android, 电脑
  5. 对话框式activity
  6. 在Android中支持表情
  7. android 竖屏activity跳转横屏activity返
  8. Android ListView在TalkBack下有些项无法
  9. 探讨相对布局的重要特性和属性
  10. Ubuntu 下配置使用Android adb