Skip to content

Cross-Platform ALooper -- Porting Android Stagefright foundation and utils

License

Notifications You must be signed in to change notification settings

NethunterJack/ALooper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

================================================================================
CrossPlatform ALooper
================================================================================
  该库源码从Android源码树中移植出来,欲支持跨平台。对应库libstagefright_foundation.so。
主要是利用Stagefright foundation中的ALooper消息处理模型,该模型比较好的抽象了loop,
可以以非常少的代码来编写一个消息事件处理循环,并且,消息事件处理有同步和异步机制,
可较好适应多变的场景。
  该源码是从Android4.x分支分离出来修改,当前支持arm,后续我会把它底层的平台相关代
码替换,支持Android, Win32, iOS平台。
  Tangmai: 通麦,318国道骑行需要经过的一个地方,俗称通麦天险。使用该库时需使用该
命名空间。

================================================================================
如何编译使用
================================================================================
1. Android源码树中编译
   cd external/ALooper
   mm //执行mm,编译该目录下源文件
2. Android NKD编译
   cd ALooper/build/android
   ndk-build //ndk编译
3. ......后面,你懂的

================================================================================
TODO
================================================================================
1. 替换atomic跟平台相关的代码,Android上直接使用gcc的那套函数
2. 处理uio相关代码
3. 替换线程函数相关代码
4. 加入TimedEventQueue.cpp(frameworks/av/media/libstagefright)代码,并更改使之跨
   平台
5. 支持Win32, iOS

如果这个项目对您有帮助,或者您想讨论跟此相关相关的话题,请联系本人:
Michael Chen (omxcodec@gmail.com)

About

Cross-Platform ALooper -- Porting Android Stagefright foundation and utils

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 89.8%
  • C 8.8%
  • Makefile 1.2%
  • Other 0.2%