Android.Hardware.Camera2.CaptureResult.LensOpticalStabilizationMode Property

Syntax

[Android.Runtime.Register("LENS_OPTICAL_STABILIZATION_MODE")]
public static CaptureResult.Key LensOpticalStabilizationMode { get; }

See Also

CaptureRequest.ControlVideoStabilizationMode
CameraCharacteristics.InfoSupportedHardwareLevel
CameraCharacteristics.LensInfoAvailableOpticalStabilization

Value

Documentation for this section has not yet been entered.

Remarks

Sets whether the camera device uses optical image stabilization (OIS) when capturing images.

OIS is used to compensate for motion blur due to small movements of the camera during capture. Unlike digital image stabilization (CaptureRequest.ControlVideoStabilizationMode), OIS makes use of mechanical elements to stabilize the camera sensor, and thus allows for longer exposure times before camera shake becomes apparent.

Switching between different optical stabilization modes may take several frames to initialize, the camera device will report the current mode in capture result metadata. For example, When "ON" mode is requested, the optical stabilization modes in the first several capture results may still be "OFF", and it will become "ON" when the initialization is done.

If a camera device supports both OIS and digital image stabilization (CaptureRequest.ControlVideoStabilizationMode), turning both modes on may produce undesirable interaction, so it is recommended not to enable both at the same time.

Not all devices will support OIS; see CameraCharacteristics.LensInfoAvailableOpticalStabilization for available controls.

Possible values:

Available values for this device:

CameraCharacteristics.LensInfoAvailableOpticalStabilization

Optional - This value may be null on some devices.

Limited capability - Present on all camera devices that report being at least CameraMetadata.INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED devices in the CameraCharacteristics.InfoSupportedHardwareLevel key

[Android Documentation]

Requirements

Namespace: Android.Hardware.Camera2
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0