Package com.banuba.sdk.internal.utils
Class CameraUtils
java.lang.Object
com.banuba.sdk.internal.utils.CameraUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.banuba.sdk.effect_player.CameraOrientation
degreesToCameraOrientation
(int degrees) static 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)
-
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
-
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)
-