Android decodeYUV420SP results in green images?

前端 未结 2 1668
旧巷少年郎
旧巷少年郎 2021-01-21 11:30

Ok so my question is pretty much identical to this: Converting preview frame to bitmap

However his answer is no good, and trying to use it doesn\'t solve my problem.

2条回答
  •  清酒与你
    2021-01-21 12:04

    Ok so the problem was the decodeYUV method which I got from a different stackoverflow post here: Converting YUV->RGB(Image processing)->YUV during onPreviewFrame in android? didn't quite work.

    But I replaced that with what I think must be the original decodeYUV method from here: http://code.google.com/p/android/issues/detail?id=823 an

提交回复
热议问题