【转+翻译】An overview of Stagefright player

There is a new playback engine implemented by Google comes with Android 2.0 (i.e, Stagefright), which seems to be quite simple and straightforward compared with the OpenCORE solution.

伴随着Android2.0而来的是Google实现的一种新的播放引擎(例如:Stagefright)。比起OpenCORE的解决方案来,它似乎比较简单和直接。

  • MediaExtractor is responsible for retrieving track data and the corresponding meta data from the underlying file system or http stream;
  • MediaExtractor负责检索从底层文件系统或http流上来的音轨数据(track data)和相应的元数据;
  • Leveraging OMX for decoding: there are two OMX plugins currently, adapting to PV's software codec and vendor's hardware implementation respectively. And there is a local implementation of software codecs which encapsulates PV's decoder APIs directly;
  • 用OMX来解码:目前有两个OMX插件,分别用来适配PV的软件codec和vendor的硬件codec。并且有一个本地软件codec的实现,他直接封装了PV的解码API;
  • AudioPlayer is responsible for rendering audio, it also provides the timebase for timing and A/V synchronization whenever audio track is present;
  • AudioPlayer负责播放音频,并且,只要有音轨(audio track)存在,它就为计时和AV同步来提供时基(timebase);
  • Depending on which codec is picked, a local or remote render will be created for video rendering; and system clock is used as the timebase for video only playback;
  • 播放视频时,一个本地的或远程的render将会被创建,这取决于我们选取哪种codec。与此同时,系统时钟会被用来作为视频播放的时基(timebase);

AwesomePlayer works as the engine to coordinate the above modules, and is finally connected into android media framework through the adapter of StagefrightPlayer.

AwesomePlayer作为引擎来协调以上模块,并且最终通过StagefrightPlayer这个适配器来连接到Android的媒体框架

 

[StageFrighter+overview.bmp]

 

 

转自:(需要翻墙)

http://freepine.blogspot.com/2010/01/overview-of-stagefrighter-player.html

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值