BradLarson / GPUImage2

GPUImage 2 is a BSD-licensed Swift framework for GPU-accelerated video and image processing.
BSD 3-Clause "New" or "Revised" License
4.87k stars 609 forks source link

Swift 4: Creating size-based filters doesn't seem possible #286

Open ZNickq opened 5 years ago

ZNickq commented 5 years ago

I'm converting an old filter from GPUImage1 to 2, and it overrides the setInputSize method to get the size and run some math on it which is then sent to the uniformSettings. This doesn't seem possible in GPUImage2, the setInputSize method is gone, and since none of the methods are marked open, there is no way to get access to a framebuffer (for sizeForTargetOrientation for example) by overriding a method/property.

Is there a new method for getting the size that I've missed? Any help would be appreciated, but it seems like just making some of the BasicOperation methods open would fix my issue.