1

Is there any sample code which gives me an idea about how to access StageFright API's to decode h264 video as well as Rendering the Decoded data (which will be in YUV420 ) using Surfaceflinger APIs from application layer on Android (GB,ICS).

4

1 回答 1

0

在标准的 android 发行版中,有一个命令行实用程序也被调用stagefrightframeworks\base\cmds\stagefright (ICS)它将执行基于命令行的独立解码。

如果您希望在 a 上解码和显示数据Surface,那么您需要创建 a ,它是框架MediaPlayer之上更高级别的抽象。Stagefright可以Surface通过具体的SetVideoSurface方法来设置MediaPlayer

于 2013-02-18T16:21:42.560 回答