Пример #1
0
        /// <summary>
        /// Initialize Tango Service and Config.
        /// </summary>
        public void InitApplication()
        {
            Debug.Log("-----------------------------------Initializing Tango");
            _TangoInitialize();
            TangoConfig.InitConfig(TangoEnums.TangoConfigType.TANGO_CONFIG_DEFAULT);

            if (m_enableVideoOverlay && m_useExperimentalVideoOverlay)
            {
                int yTextureWidth   = 0;
                int yTextureHeight  = 0;
                int uvTextureWidth  = 0;
                int uvTextureHeight = 0;

                TangoConfig.GetInt32(TangoConfig.Keys.EXPERIMENTAL_Y_TEXTURE_WIDTH, ref yTextureWidth);
                TangoConfig.GetInt32(TangoConfig.Keys.EXPERIMENTAL_Y_TEXTURE_HEIGHT, ref yTextureHeight);
                TangoConfig.GetInt32(TangoConfig.Keys.EXPERIMENTAL_UV_TEXTURE_WIDTH, ref uvTextureWidth);
                TangoConfig.GetInt32(TangoConfig.Keys.EXPERIMENTAL_UV_TEXTURE_HEIGHT, ref uvTextureHeight);

                if (yTextureWidth == 0 ||
                    yTextureHeight == 0 ||
                    uvTextureWidth == 0 ||
                    uvTextureHeight == 0)
                {
                    Debug.Log("Video overlay texture sizes were not set properly");
                }

                m_yuvTexture.ResizeAll(yTextureWidth, yTextureHeight, uvTextureWidth, uvTextureHeight);
            }
        }
Пример #2
0
 /// <summary>
 /// Initialize Tango Service and Config.
 /// </summary>
 public void InitApplication()
 {
     Debug.Log("-----------------------------------Initializing Tango");
     _TangoInitialize();
     TangoConfig.InitConfig(TangoEnums.TangoConfigType.TANGO_CONFIG_DEFAULT);
 }