GPUImage3 icon indicating copy to clipboard operation
GPUImage3 copied to clipboard

Allow Camera's imageOrientation to be controlled externally

Open tastycode opened this issue 5 years ago • 2 comments

During the upgrade to GPUImage3 from GPUImage2, the ability to modify the orientation of the camera was removed. I need to be able to do this, and have tried by converting the imageOrientation property of Camera from a function to a variable that I set externally. It works 95% of the way. For some reason, the very first time I setup the camera, the orientation is wrong. Any subsequent initialization of the camera, seems to work fine.

@BradLarson Could you either make this change, or if not, would you be willing to pair with me remotely (of course I'd be happy to compensate you for your time), or otherwise help me make this happen? I'm totally stuck and can't do anything without your help.

tastycode avatar Jun 23 '19 01:06 tastycode

Let me take a look at this, I'm in the process of adding a bunch of filters to the framework anyway. I'll see what I can get working tomorrow.

BradLarson avatar Jun 24 '19 20:06 BradLarson

I just committed a new orientation parameter that you can initialize or set on Camera, which might do what you want, even on the first frame. Give that a try and see if that works for your needs.

BradLarson avatar Jun 25 '19 19:06 BradLarson