Class CameraUtils

java.lang.Object
com.banuba.sdk.internal.utils.CameraUtils

public final class CameraUtils extends Object
  • Method Details

    • getSensorOrientation

      public static int getSensorOrientation(@NonNull android.hardware.camera2.CameraCharacteristics characteristics)
    • getLensFacing

      public static int getLensFacing(@NonNull android.hardware.camera2.CameraCharacteristics characteristics)
    • getFov

      public static double getFov(@NonNull android.hardware.camera2.CameraCharacteristics characteristics)
    • getPreviewSize

      public static android.util.Size getPreviewSize(@NonNull android.hardware.camera2.CameraCharacteristics characteristics, @NonNull android.util.Size maxPreviewSize)
    • getHighResPhotoSize

      public static android.util.Size getHighResPhotoSize(@NonNull android.hardware.camera2.CameraCharacteristics characteristics)
    • getCameraInfo

      public static String getCameraInfo(android.hardware.camera2.CameraCharacteristics characteristics)
    • getCroppedRect

      public static android.graphics.Rect getCroppedRect(android.graphics.Rect inputRect, float scaleFactor)
    • degreesToCameraOrientation

      public static com.banuba.sdk.effect_player.CameraOrientation degreesToCameraOrientation(int degrees)
    • makeFullImageDataOrientation

      public static com.banuba.sdk.types.FullImageData.Orientation makeFullImageDataOrientation(Orientation orientation, boolean requireMirroring)