worker1138
worker1138

Reputation: 2101

QT movie processing on GPU

I'm working on a QTKit project in cocoa where the QT movie is taking up ~70% of the CPU load. I would like to move some of the processing load onto the GPU, if possible. Does anyone know if that is possible?

Upvotes: 1

Views: 441

Answers (2)

Peter Hosey
Peter Hosey

Reputation: 96333

On Snow Leopard, use initWithAttributes:error: to create the QTMovie object, and include the QTMovieOpenForPlaybackAttribute attribute with a value of YES. This will use QuickTime X to decode/play the movie, which, if possible, will play it with GPU acceleration.

Be aware that this locks out a lot of functionality. You really do need to only be using the movie for playback. The QuickTime Kit Application Programming Guide has more information.

Upvotes: 2

koan
koan

Reputation: 3686

Install a GPU QuickTime codec for the movie format you want to support ? Apparently such things exist, e.g. CoreAVC.

Upvotes: 1

Related Questions