|
@@ -923,27 +923,36 @@ public class InfraredDemo : JCUnityLib.ViewBase
|
|
|
//水平
|
|
//水平
|
|
|
public void onFlipHorizontally()
|
|
public void onFlipHorizontally()
|
|
|
{
|
|
{
|
|
|
|
|
+
|
|
|
|
|
+#if UNITY_ANDROID || UNITY_IOS
|
|
|
CameraMirror cameraMirror = CameraMirror.HORIZONTAL;
|
|
CameraMirror cameraMirror = CameraMirror.HORIZONTAL;
|
|
|
mirrorIndex.Set((int)cameraMirror);
|
|
mirrorIndex.Set((int)cameraMirror);
|
|
|
|
|
+#endif
|
|
|
infraredCameraHelper.onFlipHorizontally();
|
|
infraredCameraHelper.onFlipHorizontally();
|
|
|
}
|
|
}
|
|
|
//垂直
|
|
//垂直
|
|
|
public void onFlipVertically()
|
|
public void onFlipVertically()
|
|
|
{
|
|
{
|
|
|
|
|
+#if UNITY_ANDROID || UNITY_IOS
|
|
|
CameraMirror cameraMirror = CameraMirror.VERTICAL;
|
|
CameraMirror cameraMirror = CameraMirror.VERTICAL;
|
|
|
mirrorIndex.Set((int)cameraMirror);
|
|
mirrorIndex.Set((int)cameraMirror);
|
|
|
|
|
+#endif
|
|
|
infraredCameraHelper.onFlipVertically();
|
|
infraredCameraHelper.onFlipVertically();
|
|
|
}
|
|
}
|
|
|
public void onDoubleFlip()
|
|
public void onDoubleFlip()
|
|
|
{
|
|
{
|
|
|
|
|
+#if UNITY_ANDROID || UNITY_IOS
|
|
|
CameraMirror cameraMirror = CameraMirror.DOUBLE_FLIP;
|
|
CameraMirror cameraMirror = CameraMirror.DOUBLE_FLIP;
|
|
|
mirrorIndex.Set((int)cameraMirror);
|
|
mirrorIndex.Set((int)cameraMirror);
|
|
|
|
|
+#endif
|
|
|
infraredCameraHelper.onDoubleFlip();
|
|
infraredCameraHelper.onDoubleFlip();
|
|
|
}
|
|
}
|
|
|
public void onFlipDefault()
|
|
public void onFlipDefault()
|
|
|
{
|
|
{
|
|
|
|
|
+#if UNITY_ANDROID || UNITY_IOS
|
|
|
CameraMirror cameraMirror = CameraMirror.NONE;
|
|
CameraMirror cameraMirror = CameraMirror.NONE;
|
|
|
mirrorIndex.Set((int)cameraMirror);
|
|
mirrorIndex.Set((int)cameraMirror);
|
|
|
|
|
+#endif
|
|
|
infraredCameraHelper.onFlipDefault();
|
|
infraredCameraHelper.onFlipDefault();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1813,7 +1822,7 @@ public class InfraredDemo : JCUnityLib.ViewBase
|
|
|
_sliderDelay.transform.Find("Value").GetComponent<Text>().text = delayValue.Get().ToString("f1");
|
|
_sliderDelay.transform.Find("Value").GetComponent<Text>().text = delayValue.Get().ToString("f1");
|
|
|
infraredCameraHelper.SetDelay((int)delayValue.Get());
|
|
infraredCameraHelper.SetDelay((int)delayValue.Get());
|
|
|
}
|
|
}
|
|
|
- #endregion
|
|
|
|
|
|
|
+#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 相机感光度(默认修改对比度)
|
|
#region 相机感光度(默认修改对比度)
|