您的位置:首页 > 移动开发 > Android开发

【转+翻译】An overview of Stagefright player

2010-08-10 09:38 597 查看
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的媒体框架
 



 
 
转自:(需要翻墙)
http://freepine.blogspot.com/2010/01/overview-of-stagefrighter-player.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息