ongakuer / camerafilter Goto Github PK
View Code? Open in Web Editor NEW研究 Android 用 OpenGL ES 2.0 处理相机预览和滤镜。
研究 Android 用 OpenGL ES 2.0 处理相机预览和滤镜。
我反编译了他们的APK,发现他们android声明文件里面有opengl的声明,那应该是用opengl,但他们并没有限制4.3以上设备能使用。因此估计不能使用 grafika方案。然后看了下它们的.so文件,发现都很小,不知道是不是自己写的编码器,引用ffmpeg似乎会很大。感觉它们这块做得相当好。
作者您好,最最近我在使用opengles2.0 做一个图片平移的效果,在广告板子上面抖动的厉害,您能指教一下么
为什么ToneCurve使用的是GLES20.GL_TEXTURE_2D,而不是GLES11Ext.GL_TEXTURE_EXTERNAL_OES,你的说明里面说的是用的GLES11Ext.GL_TEXTURE_EXTERNAL_OES
在录制的时候,录完,立刻播放时,有时会出现无法播放。不知道怎么回事。
Device:Samsung s7 edge
Android:6.0.1
Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 4167 (TextureMovieEnc)
录制的时候,生成的mp4文件没有声音,不知道是什么原因
GLES20.glGenFramebuffers(1, mFrameBuffers, 0);
改为
GLES20.glGenFramebuffers(1, mFrameBuffers, i);
会正常
试了一下filtergroup 高斯模糊,无法运行。研究了以后发现第二个滤镜必须使用image类型的,因为纹理类型不同。但是摄像头预览画面变的旋转,不完整了。一直没有找到问题原因。希望能协助解决,谢谢!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.