SamsungPreviewTargetAspectRatioQuirk

public class SamsungPreviewTargetAspectRatioQuirk implements Quirk


Quirk that produces stretched preview on certain Samsung devices.

On certain Samsung devices, the HAL provides 16:9 preview even when the Surface size is set to 4:3, which causes the preview to be stretched in PreviewView.

Summary

Public methods

@NonNull boolean

Whether to overwrite the aspect ratio in the config to be 16:9.

Public methods

require16_9

@NonNull
public boolean require16_9(@NonNull Config config)

Whether to overwrite the aspect ratio in the config to be 16:9.