Skip to content

Camera2 Landscape wrong orientation issue #76

@leonecaramanica

Description

@leonecaramanica

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions