I am able to generate a CGImage from a thumbnail in MPMoviePlayer. What I want to do is apply a filter on the image and show it on the device as fast as possible (probably in a UIImageView).
The caveat here is that I need to apply the filter to every frame of the video so the user sees filtered images in a video stream, with no lag.
At the moment I get the thumbnail, apply my filter, and set my UIImageView.image to this filtered image. The filter works fine, the image shows up, but the app really lags. Is there any way to speed this up?
I've also tried using a CAdisplaylink as this has helped me speed up multiple UIImages flying around on screen at once, but it doesn't do anything in this instance. Any help would be appreciated.
Thank you.