Comments (2)
抱歉,高斯模糊滤镜只是仿造GpuImage写的,视频上无法运行,GL_TEXTURE_EXTERNAL_OES
的FBO多次处理我不会,怎么调试都没走通…… 如果能走通了话,FilterGroup就可以使用了……
另外,相机纹理和叠加纹理旋转是存在Bug的。应该是当拿到相机纹理矩阵(texMatrix)后,先旋转处理好,mvpMatrix则使用默认值,这样其他叠加纹理才是没有旋转过的。
from camerafilter.
我现在的情况是 已经可以运行2 filter的情况。
CameraFilterGaussianBlur.java
修改为
addFilter(new CameraFilterGaussianSingleBlur(context, blur, false));
addFilter(new ImageFilterGaussianSingleBlur(context, blur, true));
即可。
这个也是琢磨了许久,想到的。
如果出来的画面旋转+被放大裁切了。
原因我想应该是 两个纹理大小不同导致。
camera preview的size为 640x480 而我测试手机的屏幕分辨率是 1280x720 导致几次纹理渲染时,位置发生了错位。
你的处理中用到了 FBO FRenderd等,不是很清楚其原理。
还有个问题。我发现Surfacechanged 时设置glViewPort(0,0,w,h) 只是让显示全屏。如果设置为w/2 h/2.
只是显示的位置变化了。还是完整的画面。andorid的ogles默认的vertex 坐标就是归一化为 (-1,1)对应为视口的全屏范围?没有看到 设置 平截头 或者正交投影的 地方。
你有qq方便联系吗?周围是在找不到交流opengles这块的人。
我的qq 364953305
from camerafilter.
Related Issues (10)
- 相当给力的项目,最近我也在研究这块东西,请问您觉得instagram用的是什么方案? HOT 2
- 录制的视频有时无法播放 HOT 1
- 录制的时候,生成的mp4文件没有声音 HOT 1
- 请问怎样录制声音? HOT 1
- FilterGroup 有个bug,滤镜多于2个时会报错 HOT 5
- 为什么ToneCurve使用的是GLES20.GL_TEXTURE_2D? HOT 1
- Crash while recording
- How to filter Grayscale
- 图片平移问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from camerafilter.