camera-samples icon indicating copy to clipboard operation
camera-samples copied to clipboard

Camera2: Manual SurfaceView rotation

Open zabochen opened this issue 3 years ago • 2 comments

Hi guys. How can manually rotate (90/180/270) camera2 preview, using AutoFitSurfaceView/SurfaceView from example? Thanks!

zabochen avatar Nov 10 '21 19:11 zabochen

I need to learn that one(suppose to fix the multi-window/large screen problem in that class when I get chance)

ggfan avatar Nov 11 '21 00:11 ggfan

@ggfan Ok)

  1. Now I can't fix the rotation issue with "AutoFitSurfaceView"?

Normal: https://drive.google.com/file/d/1Ecg0A8uO93iV4A05YoArfdcQwtCuuAQh/view?usp=sharing

Rotation 90: https://drive.google.com/file/d/1qlL34fEeWWiLtf25buiTk6MNbEQ3a1rq/view?usp=sharing

  1. Do I need to use the old approach with "AutoFitTextureView" to fix this issue?

https://github.com/googlearchive/android-Camera2Basic/tree/master/Application/src/main/java/com/example/android/camera2basic

zabochen avatar Nov 11 '21 08:11 zabochen