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

Speedup ios-realtimeblur ( by factor of 2-3! ) #23

Open
robertjpayne opened this issue Oct 1, 2013 · 1 comment
Open

Speedup ios-realtimeblur ( by factor of 2-3! ) #23

robertjpayne opened this issue Oct 1, 2013 · 1 comment

Comments

@robertjpayne
Copy link

The performance of this library could be greatly improved, below is a list of recommendations to take to increase the performance:

  • To capture the raw pixels you can utilise a CGBitmapContextCreate with your own memory buffer as the first argument. This allows you to skip compressing it to a JPG and then an NSData object just to unpack it back into raw pixels using the image provider methods.
  • You can use the vImage_Buffer as both the source and destination to avoid using more memory than necessary.

Both of the above recommendations can be found here: https://gist.github.com/robertjpayne/6775157. I didn't create a pull request because the code is not heavily tested.

In the simple testing I did it resulted in a speedup of about 2-3x.

@carlinyuen
Copy link

Have you done more testing on this perhaps? Interested in seeing this change go in to make things more performant on iOS 6 devices.

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

2 participants