BradLarson/GPUImage — pull request #201 by Philippe23 (2012-06-16 23:29:05+00:00)
Title: Fixes for video orientations.

I've noticed that many of the video orientations appear mirrored on my iPad 3, and my brother confirmed the same for his iPhone 4. To boot, the rear-facing camera's PortraitUpsideDown orientation appeared ... well, upside down (and I think flipped).

These changes fix various orientations on both the front and rear facing camera. It required adding a kGPUImageRotate180 to GPUImageRotationMode. I also modified the SimpleVideoFilter demo to allow rotation so it could be used for testing.

I should note that the changes to the front facing camera has text show up readable, whereas the iOS Camera app has all views appear mirrored (thus text is unreadable, unless you're Leonardo da Vinci). I didn't go the mirror route because I'm assuming that this is a display thing because saved videos are not mirrored.

P.S. A paper with some writing on it is helpful for varification. Just avoid words like "wow" and "mom". ;-)