EZFilter icon indicating copy to clipboard operation
EZFilter copied to clipboard

Camera2 Landscape wrong orientation issue

Open leonecaramanica opened this issue 11 months ago • 0 comments

Hey @uestccokey , first of all, thanks for this library - it's been years!

I'm refactoring my code to use the last version of EZFilter and Camera2 SurfaceFitView, but I'm facing an issue with a fixed landscape activity. The camera appears to be rotated by 90°, but the shader is rendering in the correct orientation. I've already tried using setRotate90Degrees, but when I apply it, the camera rotates to the correct orientation while the shader ends up at a different angle. If I change to fixed portrait activity, everything renders good :/

(I used the same code of your demo Camera2)

Any idea how to fix this?

Image

leonecaramanica avatar Feb 16 '25 14:02 leonecaramanica