GithubHelp home page GithubHelp logo

Comments (3)

Zeaa avatar Zeaa commented on September 4, 2024

我是在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.

chenmingbiao avatar chenmingbiao commented on September 4, 2024

是的,目前那块我写死的,直接修改origninalRect即可
不过这个框架用CADisplayLink的方式不是很好,会有5%-10%的丢帧,可以考虑一下优化,可提PR :)

from bcvideofilter.

Zeaa avatar Zeaa commented on September 4, 2024

为啥丢帧。。?后来发现这个其实用AVVideoComposition也同样可以处理滤镜的显示,AVPlayerItem有个videoComposition属性,同样可以实时预览滤镜的
playerItem.videoComposition = [AVVideoComposition videoCompositionWithAsset:self.composition applyingCIFiltersWithHandler:^(AVAsynchronousCIImageFilteringRequest * _Nonnull request) {
而且重点是需要保存到本地时也还是需要AVVideoComposition这个类,所以现在准备直接用AVPlayer去显示,不过还有个不明白的问题是这两种显示有什么区别,什么时候用啥哈。。。。。。。。。。。。。。。。。。。。。。。。。。。

from bcvideofilter.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.