Setting target resolution for CameraX not working as in documentation

前端 未结 2 889
北海茫月
北海茫月 2021-01-14 14:13

I want to capture photos with fixed resolution (i.e. 1200x1600) using CameraX library.

So according to documentation I can set target resolution for

相关标签:
2条回答
  • 2021-01-14 14:44

    It could be a bug that have been recently fixed at AOSP. refer https://android.googlesource.com/platform/frameworks/support/+/5c1aed8c4c502a74eb4ee6d30fe2089f4afcaf11

    0 讨论(0)
  • 2021-01-14 14:58

    The android documentation say this:

    You cannot set both target aspect ratio and target resolution on the same use case. Doing so will throw an IllegalArgumentException when building the config object.

    So decide what is mor important for you and choose only one.

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