public class TuSdkEngineOrientationImpl extends java.lang.Object implements TuSdkEngineOrientation
构造器和说明 |
---|
TuSdkEngineOrientationImpl() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
finalize() |
CameraConfigs.CameraFacing |
getCameraFacing()
获取相机摄像头位置
|
float |
getDeviceAngle()
设备角度
|
InterfaceOrientation |
getDeviceOrient()
设备方向
|
ImageOrientation |
getInputRotation()
滤镜输入方向
|
org.lasque.tusdk.core.struct.TuSdkSize |
getInputSize()
获取输入宽高
|
InterfaceOrientation |
getInterfaceOrientation()
界面方向
|
ImageOrientation |
getOutputOrientation()
结果输出方向
|
org.lasque.tusdk.core.struct.TuSdkSize |
getOutputSize()
获取正确朝向的输入纹理尺寸
|
ImageOrientation |
getYuvOutputOrienation()
YUV数据输出方向
|
boolean |
isOriginalCaptureOrientation()
拍摄的数据是否是原始朝向 默认: true
|
boolean |
isOutputCaptureMirrorEnabled()
设置拍照后输出的图像是否需要镜像 默认:false
|
void |
release()
释放资源
|
void |
setCameraFacing(CameraConfigs.CameraFacing facing)
设置相机摄像头位置
|
void |
setDeviceAngle(float angle)
设备角度
|
void |
setDeviceOrient(InterfaceOrientation orient)
设备方向
|
void |
setHorizontallyMirrorFrontFacingCamera(boolean horizontallyMirrorFrontFacingCamera)
设置相机是否水平镜像前置镜头
|
void |
setHorizontallyMirrorRearFacingCamera(boolean horizontallyMirrorRearFacingCamera)
设置相机是否水平镜像后置镜头
|
void |
setInputOrientation(ImageOrientation orientation)
设置输入图像方向
|
void |
setInputSize(int width,
int height)
设置输入宽高
|
void |
setInterfaceOrientation(InterfaceOrientation interfaceOrientation)
设置界面方向
|
void |
setOriginalCaptureOrientation(boolean keep)
拍摄的数据是否是原始朝向 默认: true
|
void |
setOutputCaptureMirrorEnabled(boolean enabled)
设置拍照后输出的图像是否需要镜像 默认:false
|
void |
setOutputOrientation(ImageOrientation orientation)
设置输出图像方向
|
void |
setYuvOutputOrienation(ImageOrientation orientation)
设置YUV数据输出方向
|
void |
switchCameraFacing()
切换摄像头
|
public org.lasque.tusdk.core.struct.TuSdkSize getInputSize()
getInputSize
在接口中 TuSdkEngineOrientation
public void setInputSize(int width, int height)
setInputSize
在接口中 TuSdkEngineOrientation
public CameraConfigs.CameraFacing getCameraFacing()
getCameraFacing
在接口中 TuSdkEngineOrientation
public void setCameraFacing(CameraConfigs.CameraFacing facing)
setCameraFacing
在接口中 TuSdkEngineOrientation
public void switchCameraFacing()
switchCameraFacing
在接口中 TuSdkEngineOrientation
public InterfaceOrientation getInterfaceOrientation()
public void setInterfaceOrientation(InterfaceOrientation interfaceOrientation)
public void setInputOrientation(ImageOrientation orientation)
setInputOrientation
在接口中 TuSdkEngineOrientation
public void setOutputOrientation(ImageOrientation orientation)
setOutputOrientation
在接口中 TuSdkEngineOrientation
public void setHorizontallyMirrorFrontFacingCamera(boolean horizontallyMirrorFrontFacingCamera)
public void setHorizontallyMirrorRearFacingCamera(boolean horizontallyMirrorRearFacingCamera)
public void release()
TuSdkEngineOrientation
release
在接口中 TuSdkEngineOrientation
protected void finalize() throws java.lang.Throwable
finalize
在类中 java.lang.Object
java.lang.Throwable
public ImageOrientation getInputRotation()
getInputRotation
在接口中 TuSdkEngineOrientation
public ImageOrientation getOutputOrientation()
getOutputOrientation
在接口中 TuSdkEngineOrientation
public org.lasque.tusdk.core.struct.TuSdkSize getOutputSize()
getOutputSize
在接口中 TuSdkEngineOrientation
public float getDeviceAngle()
getDeviceAngle
在接口中 TuSdkEngineOrientation
public void setDeviceAngle(float angle)
setDeviceAngle
在接口中 TuSdkEngineOrientation
public InterfaceOrientation getDeviceOrient()
getDeviceOrient
在接口中 TuSdkEngineOrientation
public void setDeviceOrient(InterfaceOrientation orient)
setDeviceOrient
在接口中 TuSdkEngineOrientation
public boolean isOriginalCaptureOrientation()
public void setOriginalCaptureOrientation(boolean keep)
public void setOutputCaptureMirrorEnabled(boolean enabled)
public boolean isOutputCaptureMirrorEnabled()
public ImageOrientation getYuvOutputOrienation()
getYuvOutputOrienation
在接口中 TuSdkEngineOrientation
public void setYuvOutputOrienation(ImageOrientation orientation)
setYuvOutputOrienation
在接口中 TuSdkEngineOrientation