If you want to implement your own solution using OpenGL ES, here is writeup to get you started. Although I'm not sure if this is the same algorithm that Apple uses, it looks pretty close. At the very least, this will not force your application to prohibit the use of a private API.
wdn
source share