TextureViewRotationQuirk

public class TextureViewRotationQuirk implements Quirk


A quirk that requires applying extra rotation on TextureView

On certain devices, the rotation of the output is incorrect. One example is b/177561470. In which case, the extra rotation is needed to correct the output on TextureView.

Summary

Public methods

@NonNull int
getCorrectionRotation(@NonNull boolean isFrontCamera)

Gets correction needed for the given camera.

Public methods

getCorrectionRotation

@NonNull
public int getCorrectionRotation(@NonNull boolean isFrontCamera)

Gets correction needed for the given camera.