GPUImageOutput imageByFilteringImage not defined
Brad,
A little confused. In GPUImageOutput.m is there a reason this function isn't defined (i.e. doesn't do anything other than return nil)? Also, I tried applying the "Code help" label to this but GitHub won't let me for some reason.
- (UIImage *)imageByFilteringImage:(UIImage *)imageToFilter;
{
return nil;
}
GPUImageOutput is a generic superclass for both filters and filter groups. As both implement these methods in different ways, the ones in GPUImageOutput are just stubs.
Right, missed that. Thanks!
Brad,
It could obviously be something I'm doing elsewhere in my code, but that function for GPUImageFilter keeps crashing on line 168: CFRetain(renderTarget);
Is there anything different I should be doing for that function instead of using imageFromCurrentlyProcessedOutputWithOrientation: (which was working fine)? Or is there a reason that it would crash there? Not retaining my image correctly, etc?
This isn't just the filter groups. There's a known race condition in photo capture that was introduced with the multithreading enhancements I made last week. Occasionally, an FBO is being deallocated just before the image has been captured from it, so I'm working on locking around that.