Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the buffer after using Filter? #2652

Open
HelloWilliam opened this issue Sep 18, 2020 · 2 comments
Open

How to get the buffer after using Filter? #2652

HelloWilliam opened this issue Sep 18, 2020 · 2 comments

Comments

@HelloWilliam
Copy link

Now I can get the origin buffer with GPUImageVideoCameraDelegate.

How to get the new buffer after using Filter?

@Zuozihao
Copy link

Now I can get the origin buffer with GPUImageVideoCameraDelegate.

How to get the new buffer after using Filter?

any solution?

@MoWangChen
Copy link

MoWangChen commented May 19, 2022

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

// imageFramebuffer->renderTarget is a private ivar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants