[翻译] SAMCoreImageView
SAMCoreImageView
https://github.com/soffes/SAMCoreImageView
Render a CIImage in an OpenGL thingy so it's real fast and junk. You won't see any speed up on the simulator, but on the device it's nuts fast.
This is was inspired by TLDFastCoreImageView by Patrick Gibson. Thanks Patrick!
使用OpenGL渲染CIImage,速度太快,就好像用大炮打蚊子般浪费。在模拟器上跑你看不到这种优化的效果,但如果在真机上跑,妈的,实在是太快了。
灵感来自于TLDFastCoreImageView by Patrick Gibson,感谢Patrick这个基佬。
Usage
SAMCoreImageView *imageView = [[SAMCoreImageView alloc] init];
imageView.image = [someFilter outputImage];
SAMCoreImageView's contentMode
behaves just like UIImageView's so go nuts. Internally, it usesSAMContentMode to do its magic.
SAMCoreImageView的contentMode与UIImageView中的contentMode类似哦。说实话,他是用的SAMContMode来实现这个效果的。
Limitations
The only thing SAMCoreImageView doesn't do well is resizing. If you need to resize the view, I recommend destroying it and making a new one for now. I started working on a fix for this, but couldn't get it to work right just yet.
SAMCoreImageView唯一做的不好的地方就是重新设置尺寸。如果你需要重新设置view的尺寸,我建议你销毁它,然后在初始化个新的。如今我在修复这个问题,但还没找到解决方案......
最新文章
- Microsoft Dynamics CRM 2013 的相关更新 2013-12
- ajax response status list [转载]
- 【记录】ASP.NET IIS ISAPI_Rewrite
- Javascript垃圾回收机制(学习笔记)
- wifi 4次握手
- Linux之find命令用于统计信息
- .NET 反射的使用
- ubuntu 安装 Tomcat
- Ext的Panel总结(好文章)
- R语言编程艺术# 数据类型向量(vector)
- php和js根据子网掩码和ip计算子网
- Eric的第一天
- linux7.2系统中安装Nmon并使用
- Spring-MVC理解之一:应用上下文webApplicationContext
- 【JSOI2008】最大数
- win10 anaconda+tensorflow+keras
- 2018-12-16 VS Code英汉词典进化效果演示: 翻译文件所有命名
- Elasticsearch安装部署(CentOS)
- python中super的使用方法
- PCIe Max_Payload_Size 和 Max_Read_Request_Size