Nexus4AndroidLTargetAspectRatioQuirk

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

Quirk that produces stretched preview on Nexus 4 devices running Android L(API levels 21 and 22).

There is a Camera1/HAL1 issue on the Nexus 4. The preview will be stretched when configuring a JPEG that doesn't actually have the same aspect ratio as the maximum JPEG resolution. See: b/19606058.

Summary

Public constructors

Quirk that produces stretched preview on Nexus 4 devices running Android L(API levels 21 and 22).

Public methods
open Int

Get the corrected aspect ratio.

Public constructors

Nexus4AndroidLTargetAspectRatioQuirk

Nexus4AndroidLTargetAspectRatioQuirk()

Quirk that produces stretched preview on Nexus 4 devices running Android L(API levels 21 and 22).

There is a Camera1/HAL1 issue on the Nexus 4. The preview will be stretched when configuring a JPEG that doesn't actually have the same aspect ratio as the maximum JPEG resolution. See: b/19606058.

Public methods

getCorrectedAspectRatio

open fun getCorrectedAspectRatio(): Int

Get the corrected aspect ratio.