Package com.banuba.sdk.offscreen
Class ImageOrientation
- java.lang.Object
-
- com.banuba.sdk.offscreen.ImageOrientation
-
public final class ImageOrientation extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAccelerometerDeviceOrientation()
float[]
getDefaultDrawMatrix(int displaySurfaceRotation)
static ImageOrientation
getForBufferFrame(int frameRotationAngle)
static ImageOrientation
getForCamera(int sensorOrientation, int surfaceRotation, int deviceOrientationAngle)
static ImageOrientation
getForCamera(int imageOrientationAngle, int deviceOrientationAngle, int surfaceRotationIndex, boolean isRequireMirroring)
int
getImageOrientationAngle()
java.util.Map<java.lang.String,java.lang.String>
getParams()
int
getRotationAngle()
int
getRotationIndex()
boolean
isRequireMirroring()
-
-
-
Method Detail
-
getForCamera
@NonNull public static ImageOrientation getForCamera(int sensorOrientation, int surfaceRotation, int deviceOrientationAngle)
-
getForCamera
@NonNull public static ImageOrientation getForCamera(int imageOrientationAngle, int deviceOrientationAngle, int surfaceRotationIndex, boolean isRequireMirroring)
-
getForBufferFrame
public static ImageOrientation getForBufferFrame(int frameRotationAngle)
-
getDefaultDrawMatrix
@NonNull public float[] getDefaultDrawMatrix(int displaySurfaceRotation)
-
getRotationIndex
public int getRotationIndex()
-
getRotationAngle
public int getRotationAngle()
-
getImageOrientationAngle
public int getImageOrientationAngle()
-
isRequireMirroring
public boolean isRequireMirroring()
-
getAccelerometerDeviceOrientation
public int getAccelerometerDeviceOrientation()
-
getParams
@NonNull public java.util.Map<java.lang.String,java.lang.String> getParams()
-
-