GithubHelp home page GithubHelp logo

bcvideofilter's Introduction

BCVideoFilter

apm

描述

基于 CoreImage 实现视频加滤镜。

效果

动图

img

截图

img

用法

// 初始化
BCVideoFilter *videoFilter = [[BCVideoFilter alloc] initWithFrame:self.view.bounds videoInputUrl:url];
// 设置显示层
[self.view addSubview: videoFilter.view];
// 设置滤镜
BCSepiaToneFilter *filter = [[BCSepiaToneFilter alloc] init];
[videoFilter addFilter:filter];
// 开始
[videoFilter processVideoWithBlockCompletionHandler:^(float progress, BOOL isFinish, NSError *error) {
    ...
}];

自定义滤镜

filters 文件夹下,添加一个自定义的类,并重写 - (CIImage *)getFilterHanldeImage:(CIImage *)image 方法,在方法中可以添加自定义的滤镜,在 VC 中实例化并使用 addFilter 方法就可以实现自定义滤镜。

License

BCVideoFilter is under the MIT license.

bcvideofilter's People

Contributors

chenmingbiao avatar zeaa avatar

Watchers

James Cloos avatar  avatar

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.