开发者

How to play video without AVPlayer or Movie Player on iOS

开发者 https://www.devze.com 2023-03-27 12:45 出处:网络
I need to play custom format video on iOS, with all the rendering done by myself. My current choice is OpenGL ES, but it takes too much CPU from profiling resul开发者_Go百科t (mostly in glTexImage2D)

I need to play custom format video on iOS, with all the rendering done by myself.

My current choice is OpenGL ES, but it takes too much CPU from profiling resul开发者_Go百科t (mostly in glTexImage2D).

Is there any faster alternatives for my need?

Thanks!


AVPlayer is going to be fast because the code has been optimized to decompress using GPU acceleration and llvm optimizations. If you want to use OpenGL ES, you will probably end up using EAGLContext, creating texture shaders and doing other low-level optimizations. Our app can composite multiple layers on top of video at a high frame rate with very low CPU load.


I guess you can use openmax application layer integration using egl which will stream the video to opengl es 2.0 via egl and can be stored or displayed to opengl es screen. Can help you if i can have the snippet :)

0

精彩评论

暂无评论...
验证码 换一张
取 消