rendering YUV ffmpeg frames in Android native ndk

こ雲淡風輕ζ 提交于 2019-12-11 20:13:03

问题


Can we render YUV frames from ffmpeg streaming output(AV_PIX_FMT_YUV420P) directly in Android screen without converting to RGB format?


回答1:


I've had some experience with Google WebRTC open source project recently.

It provide a fully packaged video call example, also contains an Android demo.

What the demo doing is displaying decoded video frames, which is I420(YUV420P) pixel format.

Take a look at the source code: https://code.google.com/p/webrtc/source/browse/trunk/webrtc/modules/video_render/android/video_render_opengles20.cc



来源:https://stackoverflow.com/questions/26407165/rendering-yuv-ffmpeg-frames-in-android-native-ndk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!