why separate the source code of a codec into two p
来源:互联网 发布:php strncmp 编辑:程序博客网 时间:2024/04/29 05:56
问题: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
[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
- why separate the source code of a codec into two p
- Chapter 1 A Guided Tour Of The MySQL Source Code
- P17 (*) Split a list into two parts; the length of the first part is given.
- Source Code of a B Tree
- The source code of a greedy snake game I wrote in Turbo C 2.0 lately
- The source code of A Web Game(看你能坚持几秒.htm)
- ORACLE MERGE INTO语句,unable to get a stable set of rows in the source tables报错解决
- How to find the source code of the special command?
- code forces 630 P. Area of a Star
- The Logbook of Qt Source Code Reading(1)
- The Source Code of ActionScript 3 Cookie class
- The Study of Tomcat Source Code -- Part I
- The study of Tomcat Source Code -- Party II
- the functionality of an "nbtstat -A" code
- Source Code of exe2com.
- Source Code of exe2com
- Source code of CIH
- 多媒体 omx gstreamer ffmpeg
- 高效敏捷的十大经验法则
- ti omx
- AndEngine 环境配置出错解决
- 每日编程10之二叉树的先序遍历的非递归版本
- why separate the source code of a codec into two p
- MIPS CPU地址空间简介
- 苹果MFI认证流程
- openmax component类的继承关系
- Ruby学习笔记 -- Date format
- Oracle 表访问方式
- QT中启动怎么打开.chm
- 一台电脑可以同时安装两个版本的virtual box虚拟机软件吗?
- 图形图像处理-之-任意角度的高质量的快速的图像旋转