0

我的应用程序有很多相机逻辑功能。

到目前为止,我在 AVCaptureOutput 中使用了 CoreImage 过滤器并在 GLKView 中显示 CIImage。

现在我想将 CIImage 与 CIFilter 混合。但在“AVCaptureOutput-Loop”中,CoreImage 过滤器链永远不会结束。

所以我想用 GPUImage 来替换 CoreImage 函数。

没有GPUImageVideoCamera或GPUImageStillCamera有什么办法,让我有自己的AVCaptureOutput,例如:

CMSampleBufferRef or CVPixelBufferRef > GPUImage > filter and store the image for the next AVCaptureOutput call > Display in my GLKView

谢谢

PS:对不起我的英语不好;)

4

1 回答 1

0

您仍然可以将 GPUImageVideoCamera 或 GPUImageStillCamera 用于您所描述的内容。GPUImageBuffer 将缓存一次通过过滤器链(直到缓冲区)的处理图像,并将其释放延迟一帧。除其他外,我将其用于低通滤波。

然后,您可以将操作的输出提供给 GPUImageView 或纹理,它可以在 GLKView 中使用。

于 2014-09-17T20:29:29.713 回答