Android Camera2 CropRegion not always respected - Stack Overflow

If I had any hair, I would be tearing it...Im making an app that records videos, and I made a UI for v

If I had any hair, I would be tearing it...

Im making an app that records videos, and I made a UI for visually selecting recorded area by pinching and dragging a overlay on top of a preview that shows "full" output preview from camera(ActiveArraySize). I then translate the size of the overlay, to the actual crop-coordinates, and store them, and set them on a capture-request later when doing the recording.

This worked fine for all phones/tablets I tried, but when testing on Samsung Galaxy Tab S8(SM-X706B), it seems SOME crops are not valid, and in those cases default(full) crop is used. S7 and S9 works fine...

Seems like when im near the right edge this will happen...

I tried turning DistortionCorrection off, and seems to not reset the crop-section then, but image is useless(almost black, just showing my ceiling lamp)...

Also tried to read out preCorrectionActiveArraySize but I just get null for this on the device in question...

Anyone have any idea whats happening or tips for what to try?

From the ui selecting crop region:

Then on the S8, it shows full screen instead of crop selected....

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744969522a4603882.html

相关推荐

  • Android Camera2 CropRegion not always respected - Stack Overflow

    If I had any hair, I would be tearing it...Im making an app that records videos, and I made a UI for v

    1天前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信