android camera2 handle zoom

后端 未结 4 1729
遥遥无期
遥遥无期 2020-12-28 20:44

I\'m new in Android Camera2 API. I just move my all project to the new Camera2 API. I have used the Camera2Basic example as a starting point.

I\'m now trying handle

4条回答
  •  鱼传尺愫
    2020-12-28 21:14

    You've only set the SCALER_CROP_REGION on the CaptureRequestBuilder for the recurring preview camera output. You just need to add the same crop region property to the CaptureRequestBuilder that uses the ImageSaver's JPEG Surface as the output, and you should be all set.

提交回复
热议问题