Hi!
My goal is to create a camera app which is able to take pictures using
manual ISO and shutter speed settings. In other words manual AE.
When I change my preview builder's settings, the preview picture is blank and I cannot take picture:
var pb = new Preview.Builder();
var ext1 = new Camera2Interop.Extender(pb)
.SetCaptureRequestOption(CaptureRequest.ControlAeMode, (int)ControlAEMode.Off)
.SetCaptureRequestOption(CaptureRequest.SensorSensitivity, 400)
.SetCaptureRequestOption(CaptureRequest.SensorExposureTime, 100000000); // 100 000 000 ns = 100 000 us = 100 ms
var preview = pb.SetTargetName("PREVIEW").Build();
preview.SetSurfaceProvider(sfcPreview.SurfaceProvider);
The same, when I keep auto AE settings for preview and use manual AE for capture:
var cb = new ImageCapture.Builder();
var ext2 = new Camera2Interop.Extender(cb)
.SetCaptureRequestOption(CaptureRequest.ControlAeMode, (int)ControlAEMode.Off)
.SetCaptureRequestOption(CaptureRequest.SensorSensitivity, 400)
.SetCaptureRequestOption(CaptureRequest.SensorExposureTime, 100000000); // 100 000 000 ns = 100 000 us = 100 ms
capture = cb
.SetTargetResolution(new Size(800, 600))
.SetTargetName("CAPTURE")
.Build();
So my question is: How to properly configure preview for auto AE and at the same time capture for manual AE or whether it is possible at all?
BR,
Ladislav