ExtensionMode

public final class ExtensionMode
extends Object

java.lang.Object
   ↳ androidx.camera.extensions.ExtensionMode


The available modes for the extensions.

Summary

Constants

int AUTO

Automatically adjusts the final image with the surrounding scenery.

int BOKEH

Bokeh mode blurs the background of a photo.

int FACE_RETOUCH

Retouches face skin tone, geometry and so on when taking still images.

int HDR

HDR mode takes photos that keep a larger range of scene illumination levels visible in the final image.

int NIGHT

Gets the best still images under low-light situations, typically at night time.

int NONE

Normal mode without any specific effect applied.

Inherited methods

Constants

AUTO

public static final int AUTO

Automatically adjusts the final image with the surrounding scenery. For example, the vendor library implementation might do the low light detection and can switch to low light mode or HDR to take the picture. Or the face retouch mode can be automatically applied when taking a portrait image. This delegates modes to the vendor library implementation to decide.

Constant Value: 5 (0x00000005)

BOKEH

public static final int BOKEH

Bokeh mode blurs the background of a photo. It is generally intended for taking portrait photos of people like what would be produced by a camera with a large lens.

Constant Value: 1 (0x00000001)

FACE_RETOUCH

public static final int FACE_RETOUCH

Retouches face skin tone, geometry and so on when taking still images.

Constant Value: 4 (0x00000004)

HDR

public static final int HDR

HDR mode takes photos that keep a larger range of scene illumination levels visible in the final image. For example, when taking a picture of an object in front of a bright window, both the object and the scene through the window may be visible when using HDR mode, while in normal mode, one or the other may be poorly exposed. As a tradeoff, HDR mode generally takes much longer to capture a single image, has no user control, and may have other artifacts depending on the HDR method used.

Constant Value: 2 (0x00000002)

NIGHT

public static final int NIGHT

Gets the best still images under low-light situations, typically at night time.

Constant Value: 3 (0x00000003)

NONE

public static final int NONE

Normal mode without any specific effect applied.

Constant Value: 0 (0x00000000)