CoreImage 修补 10.6 中的问题

发布于 2024-08-07 08:31:27 字数 199 浏览 3 评论 0原文

在 10.6 中,某些系统 CoreImage CIPerspectiveTransform(以及其他 api)会导致输出图像中出现彩色补丁。 (这似乎是与硬件相关的问题,并且只有分辨率高于 4000X2500 的图像才会出现)

有没有办法解决这个错误? 最后可以使用 NSAffineTransform 代替吗? 如果是的话怎么使用。

谢谢, 达那。

In 10.6 with some systems CoreImage CIPerspectiveTransform (And other api's too) results in colored patches in output image. (It seems like hardware related issue And it occurs only with images with resolution above 4000X2500)

Is there ay way to come out of this bug?
At-last is it possible to use NSAffineTransform instead?
If yes how to use it.

Thanks,
Dhana.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

昔日梦未散 2024-08-14 08:31:27

创建 CIContext 时,您是否尝试过禁用硬件渲染器?这为我解决了问题:

CIContext *context = [CIContext contextWithCGContext:[[NSGraphicsContext currentContext] graphicsPort]
                                             options:[NSDictionary dictionaryWithObjectsAndKeys:
                      [NSNumber numberWithBool:YES], kCIContextUseSoftwareRenderer, nil]];

When creating your CIContext, have you tried disabling the hardware renderer? This fixed problems for me:

CIContext *context = [CIContext contextWithCGContext:[[NSGraphicsContext currentContext] graphicsPort]
                                             options:[NSDictionary dictionaryWithObjectsAndKeys:
                      [NSNumber numberWithBool:YES], kCIContextUseSoftwareRenderer, nil]];
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文