public abstract class

SessionConfig.OutputConfig.Builder

extends java.lang.Object

 java.lang.Object

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

Overview

Builder to create the SessionConfig.OutputConfig

Summary

Constructors
publicBuilder()

Methods
public abstract SessionConfig.OutputConfigbuild()

Creates the instance.

public abstract SessionConfig.OutputConfig.BuildersetDynamicRange(DynamicRange dynamicRange)

Returns the dynamic range for this output configuration.

public abstract SessionConfig.OutputConfig.BuildersetMirrorMode(int mirrorMode)

Sets the mirror mode.

public abstract SessionConfig.OutputConfig.BuildersetPhysicalCameraId(java.lang.String cameraId)

Sets the physical camera ID.

public abstract SessionConfig.OutputConfig.BuildersetSharedSurfaces(java.util.List<DeferrableSurface> surface)

Sets the shared surfaces.

public abstract SessionConfig.OutputConfig.BuildersetSurface(DeferrableSurface surface)

Sets the surface associated with the SessionConfig.OutputConfig.

public abstract SessionConfig.OutputConfig.BuildersetSurfaceGroupId(int surfaceGroupId)

Sets the surface group ID.

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

Constructors

public Builder()

Methods

public abstract SessionConfig.OutputConfig.Builder setSurface(DeferrableSurface surface)

Sets the surface associated with the SessionConfig.OutputConfig.

public abstract SessionConfig.OutputConfig.Builder setSharedSurfaces(java.util.List<DeferrableSurface> surface)

Sets the shared surfaces. After being set, 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 SessionConfig.OutputConfig.Builder setPhysicalCameraId(java.lang.String cameraId)

Sets the physical camera ID. For cameras consisting of multiple physical cameras, this allows output to be redirected to specific physical camera.

public abstract SessionConfig.OutputConfig.Builder setMirrorMode(int mirrorMode)

Sets the mirror mode. It specifies mirroring mode for .

See also:

public abstract SessionConfig.OutputConfig.Builder setSurfaceGroupId(int surfaceGroupId)

Sets the surface group ID. 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 be used to reduce the overall memory footprint.

public abstract SessionConfig.OutputConfig.Builder setDynamicRange(DynamicRange dynamicRange)

Returns the dynamic range for this output configuration.

The dynamic range will determine the dynamic range encoding and profile for pixels in the surfaces associated with this output configuration.

public abstract SessionConfig.OutputConfig build()

Creates the instance.