0

我正在做一个项目,我想用 QTKit 打开一个视频(在 Mac 上)。那部分我可以做没有问题,但是当我播放它时,我想使用 OpenGL 即时编辑或修改视频。

据我了解,我应该能够截取帧并在它到达显示器之前对其进行更改,但无论我做什么,我似乎都无法这样做。

4

1 回答 1

0

It sounds like you should have a look at Core Video and the display link mechanic. You can basically get a callback on a high priority thread with the decoded frame in a CVImageBuffer and do whatever you like with it (including packing it up as a texture for OpenGL processing and display). Apple provides documentation and demo code snippets on the developer sites.

于 2012-06-30T10:34:10.723 回答