why separate the source code of a codec into two p
2012-09-27 09:21
169 查看
问题: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]
http://linux.chinaunix.net/bbs/thread-1164510-1-1.html
[02-csdn@zh_CN]
http://topic.csdn.net/u/20100525/16/802187da-7fcf-4a8b-a7a5-5209ccc5127f.html?81382
[03-anddev@en]
http://www.anddev.org/multimedia-problems-f28/why-separate-a-codec-s-source-into-two-parts-t14452.html
http:/forum.xda-developers.com/showthread.php?p=6588451%23post6588451][04-xda-dev@en]
http://forum.xda-developers.com/showthread.php?p=6588451#post6588451
在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]
http://linux.chinaunix.net/bbs/thread-1164510-1-1.html
[02-csdn@zh_CN]
http://topic.csdn.net/u/20100525/16/802187da-7fcf-4a8b-a7a5-5209ccc5127f.html?81382
[03-anddev@en]
http://www.anddev.org/multimedia-problems-f28/why-separate-a-codec-s-source-into-two-parts-t14452.html
http:/forum.xda-developers.com/showthread.php?p=6588451%23post6588451][04-xda-dev@en]
http://forum.xda-developers.com/showthread.php?p=6588451#post6588451
相关文章推荐
- why separate the source code of a codec into two p
- P17 (*) Split a list into two parts; the length of the first part is given.
- The study of Tomcat Source Code -- Party II
- two sets of Qt binaries into the same process的解决办法
- How to get the source code of the chromium of the specified revision
- The Source Code of ActionScript 3 Cookie class
- How to find the source code of the special command?
- The source code of the Receiver class of the famous IM app
- View the format of IEEE 754 floating point numbers source code
- Chapter 1 A Guided Tour Of The MySQL Source Code
- The source code of the SmsReceiver class of the famous IM app
- The source code of the Account class of the famous IM app
- FFmpeg Understanding(2. Where to download the source code of FFMPEG?)
- The source code of the BootCompletedReceiver class of the famous IM app
- How to import the Spring Framework sourcecode into Eclipse
- The Logbook of Qt Source Code Reading(1)
- C#也能写病毒,源代码分析 the analysis of C# virus source code
- How to get the source code of the chromium of the specified revision