I have a camera application which is locked to landscape. When needed I rotate the raw bytes gotten from on onPreviewFrame()
and use them to encode a video.
This approach however fails in the Nexus 5X and 6 devices, because their reversed sensor gives me upside-down frames.
As rotating the preview won't help me in this case, as described here:
This does not affect the order of byte array passed in onPreviewFrame(byte[], Camera)
I'd like to know if there's any way to detect that the camera sensor is reversed and/or the raw frame is upside down, so an extra correction is added when rotating them.