I have learned GPUImage for a few time and I found that most question focused on filter, for example GPUImage3x3ConvolutionFilter ,GPUImageBilateralFilter and so on. I know GPUImage Encapsulates OpenGL to make it easily to use. I come across a question now. I use GPUImageVideo to load a video and I want to get each frame of the video and then gain the pixel data of every frame. I think that GPUImageFrameBuffer may be useful but I do not know how to use it and I have not found any related codes until now. So I release a new issue here for some help. Any advice will be appreciated! Here is my code.
I have learned GPUImage for a few time and I found that most question focused on filter, for example GPUImage3x3ConvolutionFilter ,GPUImageBilateralFilter and so on. I know GPUImage Encapsulates OpenGL to make it easily to use. I come across a question now. I use GPUImageVideo to load a video and I want to get each frame of the video and then gain the pixel data of every frame. I think that GPUImageFrameBuffer may be useful but I do not know how to use it and I have not found any related codes until now. So I release a new issue here for some help. Any advice will be appreciated! Here is my code.
self.mGPUImageFramebuffer = [[GPUImageFramebuffer alloc] initWithSize:CGSizeMake(1920, 1080)]; CGImageRef ImageRef = self.mGPUImageFramebuffer.newCGImageFromFramebufferContents;
I just init the mGPUImageFramebuffer but do not get the data because I do not know how to get data from the video.