CameraExtensionsControl


interface CameraExtensionsControl


A camera extensions control instance that allows customization of capture request settings for supported camera extensions.

Applications can leverage the getCameraExtensionsControl method to acquire a CameraExtensionsControl object to manage extension-related settings.

Summary

Public functions

Unit
setExtensionStrength(strength: @IntRange(from = 0, to = 100) Int)

Sets the extension strength for the extension mode associated with the CameraExtensionsControl.

Public functions

setExtensionStrength

Added in 1.4.0
fun setExtensionStrength(strength: @IntRange(from = 0, to = 100) Int): Unit

Sets the extension strength for the extension mode associated with the CameraExtensionsControl.

Strength equal to 0 means that the extension must not apply any post-processing and return a regular captured frame. Strength equal to 100 is the default level of post-processing applied when the control is not supported or not set by the client. Values between 0 and 100 will have different effect depending on the extension type as described below:

  • BOKEH - the strength will control the amount of blur.
  • HDR and NIGHT - the strength will control the amount of images fused and the brightness of the final image.
  • FACE_RETOUCH - the strength value will control the amount of cosmetic enhancement and skin smoothing.

This will be supported if the isExtensionStrengthAvailable associated to the same extensions enabled camera returns true. Invoking this method will be no-op if extension strength is not supported.

Parameters
strength: @IntRange(from = 0, to = 100) Int

the new extension strength value