IEnumerator DelayedInit()
        {
            yield return(new WaitForEndOfFrame());

            if (context == null)
            {
                yield break;
            }

            RealSenseUtility.SetOption(feed.colorSensor, Option.Exposure, context.Data.deviceData.exposure);
            RealSenseUtility.SetOption(feed.colorSensor, Option.Gain, context.Data.deviceData.gain);
            RealSenseUtility.SetOption(feed.colorSensor, Option.WhiteBalance, context.Data.deviceData.whiteBalance);
            RealSenseUtility.SetOption(feed.depthSensor, Option.Exposure, context.Data.deviceData.infraredExposure);
        }
Exemplo n.º 2
0
        IEnumerator ReinitLibAVCoroutine()
        {
            yield return(new WaitForEndOfFrame());

            if (context == null || context.Data == null || context.Data.deviceData == null)
            {
                yield break;
            }

            RealSenseUtility.SetOption(colorSensor, Option.Exposure, context.Data.deviceData.exposure);
            RealSenseUtility.SetOption(colorSensor, Option.Gain, context.Data.deviceData.gain);
            RealSenseUtility.SetOption(colorSensor, Option.WhiteBalance, context.Data.deviceData.whiteBalance);
            RealSenseUtility.SetOption(depthSensor, Option.Exposure, context.Data.deviceData.infraredExposure);
        }