public enum

SurfaceConfig.ConfigSize

extends java.lang.Enum<SurfaceConfig.ConfigSize>

 java.lang.Object

↳java.lang.Enum<SurfaceConfig.ConfigSize>

↳androidx.camera.core.SurfaceConfig.ConfigSize

Overview

The Camera2 stream sizes for the surface.

These are the enumerations defined in android.hardware.camera2.CameraDevice.

Summary

Enum Constants
ANALYSISDefault ANALYSIS size is 640x480.
MAXIMUMMAXIMUM refers to the camera device's maximum output resolution for that format or target from StreamConfigurationMap.getOutputSizes(int)
NOT_SUPPORTNOT_SUPPORT is for the size larger than MAXIMUM
PREVIEWPREVIEW refers to the best size match to the device's screen resolution, or to 1080p (1920x1080), whichever is smaller.
RECORDRECORD refers to the camera device's maximum supported recording resolution, as determined by CamcorderProfile.
Methods
public static SurfaceConfig.ConfigSizevalueOf(java.lang.String name)

public static SurfaceConfig.ConfigSizevalues()

from java.lang.Enum<E>clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
from java.lang.ObjectgetClass, notify, notifyAll, wait, wait, wait

Enum Constants

ANALYSIS

Default ANALYSIS size is 640x480.

PREVIEW

PREVIEW refers to the best size match to the device's screen resolution, or to 1080p (1920x1080), whichever is smaller.

RECORD

RECORD refers to the camera device's maximum supported recording resolution, as determined by CamcorderProfile.

MAXIMUM

MAXIMUM refers to the camera device's maximum output resolution for that format or target from StreamConfigurationMap.getOutputSizes(int)

NOT_SUPPORT

NOT_SUPPORT is for the size larger than MAXIMUM

Methods

public static SurfaceConfig.ConfigSize values()

public static SurfaceConfig.ConfigSize valueOf(java.lang.String name)