BradLarson / GPUImage

An open source iOS framework for GPU-based image and video processing
http://www.sunsetlakesoftware.com/2012/02/12/introducing-gpuimage-framework
BSD 3-Clause "New" or "Revised" License
20.2k stars 4.61k forks source link

How to get the buffer after using Filter? #2652

Open HelloWilliam opened 3 years ago

HelloWilliam commented 3 years ago

Now I can get the origin buffer with GPUImageVideoCameraDelegate.

How to get the new buffer after using Filter?

Zuozihao commented 2 years ago

Now I can get the origin buffer with GPUImageVideoCameraDelegate.

How to get the new buffer after using Filter?

any solution?

MoWangChen commented 2 years ago

[self.filter setFrameProcessingCompletionBlock:^(GPUImageOutput output, CMTime time) { GPUImageFramebuffer imageFramebuffer = output.framebufferForOutput; CVPixelBufferRef pixelBuffer = [imageFramebuffer renderTarget]; }];

// imageFramebuffer->renderTarget is a private ivar.