- 声网自定义摄像头
- https://docs.agora.io/cn/Video/custom_video_android?platform=Android
- RenderScript Nv21转Bitmap
- onSurfaceChanged
- userFilter
- GPUImageFilterGroup
- YUV -> RGBA -> glTextureId
-
bitmap -> ARGB -> glTextureId
- https://www.jianshu.com/p/861f82520336
-
requestRender -> onDrawFrame filter.onDraw(glTextureId)
- getBitmapWithFilterApplied
- renderer.setImageBitmap
-
renderer.onPreviewFrame
- 整体实现流程
- 自定义摄像头采集 -> YUV转bitmap -> 美颜过滤 -> bitmap转YUV -> 传给声网