gpt4 book ai didi

cocoa - GPU 上的 QT 电影处理

转载 作者:行者123 更新时间:2023-12-03 16:59:40 24 4
gpt4 key购买 nike

我正在 cocoa 中开发一个 QTKit 项目,其中 QT 电影占用了大约 70% 的 CPU 负载。如果可能的话,我想将一些处理负载转移到 GPU 上。有谁知道这是否可能?

最佳答案

在 Snow Leopard 上,使用 initWithAttributes:error: 创建 QTMovie 对象,并包含值为 YESQTMovieOpenForPlaybackAttribute 属性。这将使用 QuickTime X 解码/播放电影,如果可能的话,will play it with GPU acceleration .

请注意,这会锁定很多功能。您确实只需使用电影进行播放即可。 The QuickTime Kit Application Programming Guide has more information.

关于cocoa - GPU 上的 QT 电影处理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4915864/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com