GPUImage
GPUImage copied to clipboard
Which steps are all needed to be changed when device rotates and video camera is used?
I have custom camera overlay for my application. I've written method that is called when device rotates, it adjusts camera overlay properly. I've tried to rotate input camera for video camera like this?
case UIDeviceOrientationLandscapeLeft: { videoCamera.outputImageOrientation = UIInterfaceOrientationLandscapeLeft; }
Now my camera rotates and it this works fine I see landscape while recording, but my video is recorded in portrait mode. The video frames that I see while recording are narrowed to video like it was recorded in portrait mode. (My recorded video is narrowed by width). I've read there is setOrientation method, but didn't find the suitable example.
Any help is welcome.
King Regards, Dejan