SurfaceEntity.StereoMode


public final class SurfaceEntity.StereoMode


Specifies how the surface content will be routed for stereo viewing. Applications must render into the surface in accordance with what they provided here in order for the compositor to correctly produce a stereoscopic view to the user.

Values here match values from androidx.media3.common.C.StereoMode.

See also
https

://developer.android.com/reference/androidx/media3/common/C.StereoMode

Summary

Public fields

static final @NonNull SurfaceEntity.StereoMode

Each eye will see the entire surface (no separation)

static final @NonNull SurfaceEntity.StereoMode

Multiview video, primary, auxiliary views will map to left, right eyes

static final @NonNull SurfaceEntity.StereoMode

Multiview video, primary, auxiliary views will map to right, left eyes

static final @NonNull SurfaceEntity.StereoMode

The left, right halves of the surface will map to left, right eyes

static final @NonNull SurfaceEntity.StereoMode

The top, bottom halves of the surface will map to left, right eyes

Public methods

@NonNull String

Public fields

MONO

public static final @NonNull SurfaceEntity.StereoMode MONO

Each eye will see the entire surface (no separation)

MULTIVIEW_LEFT_PRIMARY

public static final @NonNull SurfaceEntity.StereoMode MULTIVIEW_LEFT_PRIMARY

Multiview video, primary, auxiliary views will map to left, right eyes

MULTIVIEW_RIGHT_PRIMARY

public static final @NonNull SurfaceEntity.StereoMode MULTIVIEW_RIGHT_PRIMARY

Multiview video, primary, auxiliary views will map to right, left eyes

SIDE_BY_SIDE

public static final @NonNull SurfaceEntity.StereoMode SIDE_BY_SIDE

The left, right halves of the surface will map to left, right eyes

TOP_BOTTOM

public static final @NonNull SurfaceEntity.StereoMode TOP_BOTTOM

The top, bottom halves of the surface will map to left, right eyes

Public methods

toString

public @NonNull String toString()