Android 5.0 Wrong crop regions on preview surface and captured still image

前端 未结 1 1044
予麋鹿
予麋鹿 2020-12-21 00:46

I\'m trying to get digital zoomed frame on Android 5.0 with camera2 interface. Appropriate doc for that functionality is developer.android.com/camera2/captureRequest

相关标签:
1条回答
  • 2020-12-21 01:22

    Fixed! General idea is to calculate crop region for preview and still images separately.

    1) Calculate crop region for still image as in initial post (use 4:3 rectangle)

    2) For preview take above crop region (4:3) and reduce vertical size to get 16:9 rectangle.

    0 讨论(0)
提交回复
热议问题