Class CameraUtils


  • public final class CameraUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.banuba.sdk.effect_player.CameraOrientation degreesToCameraOrientation​(int degrees)  
      static java.lang.String getCameraInfo​(android.hardware.camera2.CameraCharacteristics characteristics)  
      static android.graphics.Rect getCroppedRect​(android.graphics.Rect inputRect, float scaleFactor)  
      static double getFov​(android.hardware.camera2.CameraCharacteristics characteristics)  
      static android.util.Size getHighResPhotoSize​(android.hardware.camera2.CameraCharacteristics characteristics)  
      static int getLensFacing​(android.hardware.camera2.CameraCharacteristics characteristics)  
      static android.util.Size getPreviewSize​(android.hardware.camera2.CameraCharacteristics characteristics, android.util.Size maxPreviewSize)  
      static int getSensorOrientation​(android.hardware.camera2.CameraCharacteristics characteristics)  
      static com.banuba.sdk.types.FullImageData.Orientation makeFullImageDataOrientation​(Orientation orientation, boolean requireMirroring)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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 java.lang.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)