GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

How to get the buffer after using Filter?

Open HelloWilliam opened this issue 3 years ago • 2 comments

Now I can get the origin buffer with GPUImageVideoCameraDelegate.

How to get the new buffer after using Filter?

HelloWilliam avatar Sep 18 '20 09:09 HelloWilliam

Now I can get the origin buffer with GPUImageVideoCameraDelegate.

How to get the new buffer after using Filter?

any solution?

Zuozihao avatar Aug 31 '21 07:08 Zuozihao

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

// imageFramebuffer->renderTarget is a private ivar.

MoWangChen avatar May 19 '22 01:05 MoWangChen