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.CameraOrientationdegreesToCameraOrientation(int degrees) static StringgetCameraInfo(android.hardware.camera2.CameraCharacteristics characteristics) static android.graphics.RectgetCroppedRect(android.graphics.Rect inputRect, float scaleFactor) static doublegetFov(android.hardware.camera2.CameraCharacteristics characteristics) static android.util.SizegetHighResPhotoSize(android.hardware.camera2.CameraCharacteristics characteristics) static intgetLensFacing(android.hardware.camera2.CameraCharacteristics characteristics) static android.util.SizegetPreviewSize(android.hardware.camera2.CameraCharacteristics characteristics, android.util.Size maxPreviewSize) static intgetSensorOrientation(android.hardware.camera2.CameraCharacteristics characteristics) static com.banuba.sdk.types.FullImageData.OrientationmakeFullImageDataOrientation(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)
-