private void OnVuforiaStarted()
 {
     if (CameraDevice.Instance.SetFrameFormat(m_PixelFormat, true))
     {
         Debug.Log("Successfully registered pixel format " + m_PixelFormat.ToString());
         Debugger.Instance.LogLine("Registered");
         m_formatRegistered = true;
     }
     else
     {
         Debug.LogError(
             "Failed to register pixel format " + m_PixelFormat.ToString() +
             "\n the format may be unsupported by your device;" +
             "\n consider using a different pixel format.");
         Debugger.Instance.LogLine("Failed to register");
         m_formatRegistered = false;
     }
 }
Esempio n. 2
0
    void OnVuforiaStarted()
    {
        // Try register camera image format
        if (CameraDevice.Instance.SetFrameFormat(mPixelFormat, true))
        {
            Debug.Log("Successfully registered pixel format " + mPixelFormat.ToString());

            mFormatRegistered = true;
        }
        else
        {
            Debug.LogError(
                "\nFailed to register pixel format: " + mPixelFormat.ToString() +
                "\nThe format may be unsupported by your device." +
                "\nConsider using a different pixel format.\n");

            mFormatRegistered = false;
        }
    }