ConfigSize

class ConfigSize
kotlin.Any
   ↳ kotlin.Enum<androidx.camera.core.impl.SurfaceConfig.ConfigSize>
   ↳ androidx.camera.core.impl.SurfaceConfig.ConfigSize

The Camera2 stream sizes for the surface.

These are the enumerations defined in android.hardware.camera2.CameraDevice#createCaptureSession(List, StateCallback, Handler).

Summary

Enum values

Default ANALYSIS size is 640x480.

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

NOT_SUPPORT is for the size larger than MAXIMUM

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

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

Enum values

ANALYSIS

enum val ANALYSIS : SurfaceConfig.ConfigSize

Default ANALYSIS size is 640x480.

MAXIMUM

enum val MAXIMUM : SurfaceConfig.ConfigSize

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

NOT_SUPPORT

enum val NOT_SUPPORT : SurfaceConfig.ConfigSize

NOT_SUPPORT is for the size larger than MAXIMUM

PREVIEW

enum val PREVIEW : SurfaceConfig.ConfigSize

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

RECORD

enum val RECORD : SurfaceConfig.ConfigSize

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