CamcorderProfileResolutionQuirk

@RequiresApi(21) open class CamcorderProfileResolutionQuirk : Quirk
kotlin.Any
   ↳ androidx.camera.camera2.internal.compat.quirk.CamcorderProfileResolutionQuirk

Quirk that should validate the video resolution of CamcorderProfile on legacy camera.

When using the Camera 2 API in LEGACY mode (i.e. when android.hardware.camera2.CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL is set to android.hardware.camera2.CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY), CamcorderProfile#hasProfile may return true for unsupported resolutions. To ensure a given resolution is supported in LEGACY mode, the configuration given in android.hardware.camera2.CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP must contain the resolution in the supported output sizes. The recommended way to check this is with android.hardware.camera2.params.StreamConfigurationMap#getOutputSizes(Class) with the class of the desired recording endpoint, and check that the desired resolution is contained in the list returned.

Summary

Public constructors

Public methods
open MutableList<Size!>

Returns the supported video resolutions.

Public constructors

CamcorderProfileResolutionQuirk

CamcorderProfileResolutionQuirk(@NonNull characteristicsCompat: CameraCharacteristicsCompat)

Public methods

getSupportedResolutions

@NonNull open fun getSupportedResolutions(): MutableList<Size!>

Returns the supported video resolutions.