AspectRatioLegacyApi21Quirk

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

QuirkSummary Bug Id: b/128924712 Description: Quirk that produces stretched use cases on all the legacy API 21 devices. If the device is LEGACY + Android 5.0, then return the same aspect ratio as maximum JPEG resolution. The Camera2 LEGACY mode API always sends the HAL a configure call with the same aspect ratio as the maximum JPEG resolution, and do the cropping/scaling before returning the output. There is a bug because of a flipped scaling factor in the intermediate texture transform matrix, and it was fixed in L MR1. Device(s): All the legacy API 21 devices

Summary

Public constructors

QuirkSummary Bug Id: b/128924712 Description: Quirk that produces stretched use cases on all the legacy API 21 devices.

Public methods
open Int

Get the corrected aspect ratio.

Public constructors

AspectRatioLegacyApi21Quirk

AspectRatioLegacyApi21Quirk()

QuirkSummary Bug Id: b/128924712 Description: Quirk that produces stretched use cases on all the legacy API 21 devices. If the device is LEGACY + Android 5.0, then return the same aspect ratio as maximum JPEG resolution. The Camera2 LEGACY mode API always sends the HAL a configure call with the same aspect ratio as the maximum JPEG resolution, and do the cropping/scaling before returning the output. There is a bug because of a flipped scaling factor in the intermediate texture transform matrix, and it was fixed in L MR1. Device(s): All the legacy API 21 devices

Public methods

getCorrectedAspectRatio

open fun getCorrectedAspectRatio(): Int

Get the corrected aspect ratio.