Esempio n. 1
0
        public static int GetCameraQualityInfo(CameraQuality item, ref CameraQualityInfo paramInfo)
        {
            int result = (int)Error.FAILED;

            result = SRWorkModule_API.GetCameraStatus((int)item, ref paramInfo.Status);
            if (result != (int)Error.WORK)
            {
                return(result);
            }
            result = SRWorkModule_API.GetCameraDefaultValue((int)item, ref paramInfo.DefaultValue);
            if (result != (int)Error.WORK)
            {
                return(result);
            }
            result = SRWorkModule_API.GetCameraMin((int)item, ref paramInfo.Min);
            if (result != (int)Error.WORK)
            {
                return(result);
            }
            result = SRWorkModule_API.GetCameraMax((int)item, ref paramInfo.Max);
            if (result != (int)Error.WORK)
            {
                return(result);
            }
            result = SRWorkModule_API.GetCameraStep((int)item, ref paramInfo.Step);
            if (result != (int)Error.WORK)
            {
                return(result);
            }
            result = SRWorkModule_API.GetCameraDefaultMode((int)item, ref paramInfo.DefaultMode);
            if (result != (int)Error.WORK)
            {
                return(result);
            }
            result = SRWorkModule_API.GetCameraValue((int)item, ref paramInfo.Value);
            if (result != (int)Error.WORK)
            {
                return(result);
            }
            result = SRWorkModule_API.GetCameraMode((int)item, ref paramInfo.Mode);
            if (result != (int)Error.WORK)
            {
                return(result);
            }

            return(result);
        }
Esempio n. 2
0
 public static int SetCameraQualityInfo(CameraQuality item, CameraQualityInfo paramInfo)
 {
     return(ViveSR_Framework.SetParameterStruct(ViveSR_Framework.MODULE_ID_SEETHROUGH, (int)item, paramInfo));
 }