Reputation: 1
continuous focus:
In camera2 api,the follow code implement the feature which called continuous focus, CaptureRequest.Builder.set(CaptureRequest.CONTROL_AF_MODE, CONTROL_AF_MODE_CONTINUOUS_PICTURE); But in cameraX,I find after camera bindToLifecycle,it has already support the feature.And there is not API to cancel the continuous focus.Do you know how to do in cameraX?
lock aeaf:
In camera2 api,the follow code implement the feature which called lock aeaf, captureRequestBuilder.set(CaptureRequest.CONTROL_AF_MODE, CaptureRequest.CONTROL_AF_MODE_OFF); captureRequestBuilder.set(CaptureRequest.CONTROL_AF_TRIGGER, CameraMetadata.CONTROL_AF_TRIGGER_IDLE); captureRequestBuilder.set(CaptureRequest.CONTROL_AE_MODE, CaptureRequest.CONTROL_AE_MODE_ON); captureRequestBuilder.set(CaptureRequest.CONTROL_AE_LOCK, true); But in cameraX,I only find how to lock af,you can do like this, FocusMeteringAction focusAction = new FocusMeteringAction.Builder( mPreviewView.getMeteringPointFactory().createPoint(x, y)).disableAutoCancel().build(); mCameraControl.startFocusAndMetering(focusAction) For the autocancel is disable,the af would not be canceled.So af is indirectly locked. The way to lock ae,I have not found.Do you know how to do in cameraX?
Thanks a lot.
Upvotes: 0
Views: 8