Android Camera Live Filter

不打扰是莪最后的温柔 提交于 2019-12-09 16:45:36

问题


What is the best way for Camera Live filters. I am recently using GPUImage Library from Link: https://github.com/CyberAgent/android-gpuimagelibrary. Than I have found SurfaceView and GLSurfaceView.

Problem is: How to apply live filter to camera using SurfaceView or GLSurfaceView.

Thanks in advance.


回答1:


This link uses Texture View

https://github.com/google/grafika/blob/master/app/src/main/java/com/android/grafika/LiveCameraActivity.java

This uses surface view to play a movie..u can manipulate it for live camera

https://github.com/google/grafika/blob/master/app/src/main/java/com/android/grafika/PlayMovieSurfaceActivity.java

To choose on whether to use surfaceView or GLSurfaceView

take a look at this Difference between SurfaceView and GLSurfaceView in Android



来源:https://stackoverflow.com/questions/37808844/android-camera-live-filter

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