Comments (3)
我是在BCGLKView中这样写
- (void) drawRect:(CGRect)rect {
CGRect origninalRect = CGRectMake(0, 0, self.drawableWidth, self.drawableHeight);
[coreImageContext drawImage:self.image inRect:origninalRect fromRect:self.image.extent];
}
from bcvideofilter.
是的,目前那块我写死的,直接修改origninalRect即可
不过这个框架用CADisplayLink的方式不是很好,会有5%-10%的丢帧,可以考虑一下优化,可提PR :)
from bcvideofilter.
为啥丢帧。。?后来发现这个其实用AVVideoComposition也同样可以处理滤镜的显示,AVPlayerItem有个videoComposition属性,同样可以实时预览滤镜的
playerItem.videoComposition = [AVVideoComposition videoCompositionWithAsset:self.composition applyingCIFiltersWithHandler:^(AVAsynchronousCIImageFilteringRequest * _Nonnull request) {
而且重点是需要保存到本地时也还是需要AVVideoComposition这个类,所以现在准备直接用AVPlayer去显示,不过还有个不明白的问题是这两种显示有什么区别,什么时候用啥哈。。。。。。。。。。。。。。。。。。。。。。。。。。。
from bcvideofilter.
Related Issues (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 bcvideofilter.