Config.ImageStabilizationMode

  • Config.ImageStabilizationMode describes the behavior of the Electronic Image Stabilization (EIS) API, which smooths the camera feed and corrects video shakes when enabled.

  • Not all devices support all image stabilization modes; you must use Session.isImageStabilizationModeSupported to check for support before configuring.

  • Attempting to configure an unsupported mode will result in an UnsupportedConfigurationException.

  • The default image stabilization mode is OFF, and you can set the desired mode using Config.setImageStabilizationMode.

  • The available image stabilization modes are EIS (Image stabilization is on) and OFF (Image stabilization is off).

public static final enum Config.ImageStabilizationMode

Describes the behavior of the Electronic Image Stabilization (EIS) API. When enabled, EIS smoothes the camera feed and helps correct video shakes in the camera preview. See the Electronic Image Stabilization developer guide for more information.

Not all devices support all modes. Use Session.isImageStabilizationModeSupported(Config.ImageStabilizationMode) to check if a Config.ImageStabilizationMode is supported with the selected camera configuration.

Attempting to use Session.configure(Config) to configure a Config.ImageStabilizationMode mode on a device that that isn't supported, Session.configure(Config) will throw UnsupportedConfigurationException.

The default value is OFF. Use Config.setImageStabilizationMode(Config.ImageStabilizationMode) to set the desired mode.

Inherited Methods

Enum Values

EIS

public static final Config.ImageStabilizationMode EIS

OFF

public static final Config.ImageStabilizationMode OFF

Image stabilization is off.

This is the default mode.