public enum

SurfaceConfig.ConfigSize

extends java.lang.Enum<SurfaceConfig.ConfigSize>

 java.lang.Object

↳java.lang.Enum<SurfaceConfig.ConfigSize>

↳androidx.camera.core.impl.SurfaceConfig.ConfigSize

Overview

The Camera2 stream sizes for the surface.

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

Summary

Enum Constants
MAXIMUMMAXIMUM refers to the camera device's maximum output resolution for that format or target from StreamConfigurationMap.getOutputSizes() or getHighResolutionOutputSizes() in the default sensor pixel mode.
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.
s1440ps1440p refers to the best size match to the device's screen resolution, or to 1440p (1920x1440), whichever is smaller.
s720ps720p refers to the best size match to the device's screen resolution, or to 720p (1280x720), whichever is smaller.
ULTRA_MAXIMUMULTRA_MAXIMUM refers to the camera device's maximum output resolution for that format or target from StreamConfigurationMap.getOutputSizes() or getHighResolutionOutputSizes() in the maximum resolution sensor pixel mode.
VGADefault VGA size is 640x480, which is the default size of Image Analysis.
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

VGA

Default VGA size is 640x480, which is the default size of Image Analysis.

s720p

s720p refers to the best size match to the device's screen resolution, or to 720p (1280x720), whichever is smaller.

PREVIEW

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

s1440p

s1440p refers to the best size match to the device's screen resolution, or to 1440p (1920x1440), 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() or getHighResolutionOutputSizes() in the default sensor pixel mode.

ULTRA_MAXIMUM

ULTRA_MAXIMUM refers to the camera device's maximum output resolution for that format or target from StreamConfigurationMap.getOutputSizes() or getHighResolutionOutputSizes() in the maximum resolution sensor pixel mode.

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)