why separate the source code of a codec into two p

问题: opencore 中的 codec 源码为何要分开?

opencore codec 的源码以部分在 .../codecs_v2/{audio,video} ,一部分放在 .../codecs_v2/omx_xxx ,比如 mp3 codec 源码, [1] 一部分在 .../codecs_v2/audio/mp3/dec 目录下, [2] 一部分在 .../codecs_v2/omx_mp3
[1] 编译生成 libpvmp3.a
[2] 编译生成 libomx_mp3_component_lib.so

然后根据 .../build_config/opencore_dynamic/android_omx_mp3dec_sharedlibrary.mk ,把 libpvmp3.a libomx_mp3_component_lib.so 整合成 libomx_mp3dec_sharedlibrary.so  (当然还关联 libomx_sharedlibrary libopencore_common.so

这里不明白为什么要把源码分别放在两个地方?有什么标准或原则来分开的没?
还有对于一个新的 codec ,必须把源码拆分为类似的两部分?直接放在 omx 目录下,然后进行对应的接口注册不就可以了么?


why separate the source code of a codec into two parts in opencore?
hi, all! 
i'm now trying to integrate new codecs into opencore for android. there is some problems which puzzle me for the whole day.
take mp3 for example, some part of the source code is placed under directory .../codecs_v2/audio/mp3/dec, which would be compiled into a static library libpvmp3.a; the other part of source code is placed under directory .../codecs_v2/omx/omx_mp3, which would be compiled into a dynamic library libomx_mp3_component_lib.so.
and finally, according to the makefile .../build_config/opencore_dynamic/android_omx_mp3dec_sharedlibrary.mk, it would integrate the two library, libpvmp3.a and libomx_mp3_component_lib.so into one dynamic library: libomx_mp3dec_sharedlibrary.so, which would be found under /system/lib/ direcroty in a real device or an emulator.

my questions are: 
[1] why lay the codec's source code under two plaeces? and any guide line for the separation?
[2] to integrate a new codec into opencore, can i put the whole source code into a directory, and then finish the other registrations? any tips for this?
thanks in advance!!!

ps:
the links where i posted the questions:
[01-chinaunix@zh_CN]
[02-csdn@zh_CN]
[03-anddev@en]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值