How to use the ImageReader that appeared in Android 4.4?

时光毁灭记忆、已成空白 提交于 2019-12-23 16:09:09

问题


Android 4.4 Kit Kat introduced the ImageReader class for accessing the image in the Surface, useful for real-time processing of a camera preview. However, I can't figure out how to link it to the Surface or use it. Anybody have any insights or short example code?


回答1:


You can find an example in the camera CTS tests.

As noted in the comments, ImageReader isn't actually usable until 5.0 ("Lollipop").



来源:https://stackoverflow.com/questions/21147519/how-to-use-the-imagereader-that-appeared-in-android-4-4

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