ExcludedSupportedSizesQuirk

public class ExcludedSupportedSizesQuirk implements Quirk


Quirk required to exclude certain supported surface sizes that are problematic. These sizes are dependent on the device, camera and image format.

An example is the resolution size 4000x3000 which is supported on OnePlus 6, but causes a WYSIWYG issue between preview and image capture. See b/157448499.

On Huawei P20 Lite, the Preview screen will become too bright when 400x400 or 720x720 Preview resolutions are used together with a large zoom in value. The same symptom happens on ImageAnalysis. See https://issuetracker.google.com/192129158.

Summary

Public methods

@NonNull List<@NonNull Size>
getExcludedSizes(@NonNull String cameraId, @NonNull int imageFormat)

Retrieves problematic supported surface sizes that have to be excluded on the current device, for the given camera id and image format.

Public methods

getExcludedSizes

@NonNull
public List<@NonNull SizegetExcludedSizes(@NonNull String cameraId, @NonNull int imageFormat)

Retrieves problematic supported surface sizes that have to be excluded on the current device, for the given camera id and image format.