CamcorderProfileResolutionQuirk

public class CamcorderProfileResolutionQuirk implements Quirk


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

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

See also
CamcorderProfile

CamcorderProfile#hasProfile

Summary

Public constructors

Public methods

@NonNull List<@NonNull Size>

Returns the supported video resolutions.

Public constructors

CamcorderProfileResolutionQuirk

public CamcorderProfileResolutionQuirk(
    @NonNull CameraCharacteristicsCompat characteristicsCompat
)

Public methods

getSupportedResolutions

@NonNull
public List<@NonNull SizegetSupportedResolutions()

Returns the supported video resolutions.