How do I correctly convert YUV colours to RGB in Android?

╄→гoц情女王★ 提交于 2020-01-05 04:51:05

问题


I am using MediaCodec to retrieve frames from a video on the SD card.

I am using ScriptIntrinsicYuvToRGB to convert the outputted frames of the MediaCodec to RGB. Then I am displaying them in a TextureView.
The problem is, the RGB colours are wrong (e.g. The grass is meant to be green. NOT purplish-grey)
Anybody know how to fix this please?
Thanks

来源:https://stackoverflow.com/questions/29953508/how-do-i-correctly-convert-yuv-colours-to-rgb-in-android

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