Tompi
Tompi

Reputation: 296

Android Camera2 CropRegion not always respected

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: Selecting crop region

Then on the S8, it shows full screen instead of crop selected.... Crop reset in the recording preview

Upvotes: 0

Views: 11

Answers (0)

Related Questions