Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自定义滤镜 #45

Open
Sparklehorse001 opened this issue Oct 30, 2018 · 6 comments
Open

自定义滤镜 #45

Sparklehorse001 opened this issue Oct 30, 2018 · 6 comments

Comments

@Sparklehorse001
Copy link

基于 5 * 4 的颜色矩阵, 不知道如何转换, 才能自定义滤镜

@wysaid
Copy link
Owner

wysaid commented Nov 4, 2018

啥…… 举个例子呢?

@wysaid
Copy link
Owner

wysaid commented Nov 4, 2018

最简单的颜色映射可以使用LUT图, 目前滤镜规则是支持的

@bolagong
Copy link

你好,我用这个 方法: cgeFilterUIImage_MultipleEffects(srcImage, ruleString, 1.0f, nil);
同时加载8个滤镜的时候,我发现内存飘升瞬间130MB左右,请教一下该怎么处理,谢谢

@wysaid
Copy link
Owner

wysaid commented May 12, 2019

@bolagong 你是异步加载八个吗, 如果是八个线程就可能同时存在8份.
建议直接顺序执行, 执行完了一个再加载下一个

@bolagong
Copy link

你好,是图片的问题,我发现加载的图片质量越是高清的大图,加载滤镜的时候越消耗内存。我点击一下添加滤镜,内存就从48M左右直接飘升到117M左右,你可以告诉我怎么优化类似这个的问题吗

@wysaid
Copy link
Owner

wysaid commented May 18, 2019

预览的时候不要用这么高分辨率的图, 使用小一点的图, 最好保存结果, 离屏渲染的时候再使用高清大图会比较好

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants