public abstract class

SessionConfig.OutputConfig

extends java.lang.Object

 java.lang.Object

↳androidx.camera.core.impl.SessionConfig.OutputConfig

Overview

The output configuration associated with the DeferrableSurface that will be used to create the configuration needed to open a camera session. In camera2 this will be used to create the corresponding .

Summary

Fields
public static final intSURFACE_GROUP_ID_NONE

Constructors
publicOutputConfig()

Methods
public static SessionConfig.OutputConfig.Builderbuilder(DeferrableSurface surface)

Creates the SessionConfig.OutputConfig.Builder instance with specified DeferrableSurface.

public abstract java.lang.StringgetPhysicalCameraId()

Returns the physical camera ID.

public abstract java.util.List<DeferrableSurface>getSharedSurfaces()

Returns the shared surfaces.

public abstract DeferrableSurfacegetSurface()

Returns the surface associated with the SessionConfig.OutputConfig.

public abstract intgetSurfaceGroupId()

Returns the surface group ID.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public static final int SURFACE_GROUP_ID_NONE

Constructors

public OutputConfig()

Methods

public abstract DeferrableSurface getSurface()

Returns the surface associated with the SessionConfig.OutputConfig.

public abstract java.util.List<DeferrableSurface> getSharedSurfaces()

Returns the shared surfaces. If non-empty, surface sharing will be enabled and the shared surfaces will share the same memory buffer as the main surface returned in SessionConfig.OutputConfig.getSurface().

public abstract java.lang.String getPhysicalCameraId()

Returns the physical camera ID. By default it would be null. For cameras consisting of multiple physical cameras, this allows output to be redirected to specific physical camera.

public abstract int getSurfaceGroupId()

Returns the surface group ID. Default value is SessionConfig.OutputConfig.SURFACE_GROUP_ID_NONE meaning it doesn't belong to any surface group. A surface group ID is used to identify which surface group this output surface belongs to. Output streams with the same non-negative group ID won't receive the camera output simultaneously therefore it could reduce the overall memory footprint.

Creates the SessionConfig.OutputConfig.Builder instance with specified DeferrableSurface.