简体   繁体   中英

how to draw yuv buffer using opengl es in Android

i am using android surface view to display images. i have a yuv frame buffer decoded from ffmpeg. how to convert yuv to rgb using opengl es and display it. is there any examples to convert yuv to rgb in android native code.

You may want to look at paper below which gives basic c++ code and many improvements on this conversion which I also employed (excpt the SIMD part :).

http://lestourtereaux.free.fr/papers/data/yuvrgb.pdf

Moreover, depending on opengl version you are be using, you may put this conversion into even shaders.

Hope this helps... :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM