SetGain() public method

public SetGain ( int value ) : void
value int
return void
Esempio n. 1
0
    // ------ Function ------

    // Use this for initialization
    void Awake()
    {
        //Open camera
        if (OvrPro.Open(cameraMode, ARsize))
        {
            if (overlaySettings)
            {
                OvrPro.SetExposure(conf_exposure);
                OvrPro.SetGain(conf_gain);
                OvrPro.SetBLC(conf_blc);
                OvrPro.SetWhiteBalanceAutoMode(conf_wb_auto);
                if (!conf_wb_auto)
                {
                    OvrPro.SetWhiteBalanceR(conf_wb_r);
                    OvrPro.SetWhiteBalanceG(conf_wb_g);
                    OvrPro.SetWhiteBalanceB(conf_wb_b);
                }
                Thread.Sleep(100);
            }
        }
        else
        {
            Debug.LogError("Ovrvision open error!!");
        }
    }
Esempio n. 2
0
    public void UpdateOvrvisionSetting()
    {
        if (!ovrPro.camStatus)
        {
            return;
        }

        //set config
        {
            ovrPro.SetExposure(settings.conf_exposure);
            ovrPro.SetGain(settings.conf_gain);
            ovrPro.SetBLC(settings.conf_blc);
            ovrPro.SetWhiteBalanceR(settings.conf_wb_r);
            ovrPro.SetWhiteBalanceG(settings.conf_wb_g);
            ovrPro.SetWhiteBalanceB(settings.conf_wb_b);
            ovrPro.SetWhiteBalanceAutoMode(settings.conf_wb_auto);
        }
        Thread.Sleep(100);
    }