且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何应用不同的动态效果Android相机?

更新时间:2023-02-02 10:30:23

你尝试过什么?我想通过你的意思是在preVIEW显示实时效果。

What have you tried? I assume by live effects you mean shown on the preview.

您可以试试这里的答案 的建议是什么,但任何形式的在Java中实现复杂的过滤器要慢下来。为了获得良好的性能,你可能需要编写一些本地code来处理previews。好消息是,如果你正在写NDK code,你可以使用像 OpenCV的库一>做筛选适合你。

You can try what the answer here suggested, but any sort of complicated filter implemented in java is going to slow things down. For good performance you'll probably have to write some native code to process the previews. The good news is, if you're writing NDK code you can make use of libraries like OpenCV to do the filtering for you.