Ejemplo n.º 1
0
    public static bool arwGetVideoParams(out int width, out int height, out int pixelSize, out String pixelFormatString)
    {
        StringBuilder sb = new StringBuilder(128);
        bool          ok;

        if (Application.platform == RuntimePlatform.IPhonePlayer)
        {
            ok = ARNativePluginStatic.arwGetVideoParams(out width, out height, out pixelSize, sb, sb.Capacity);
        }
        else
        {
            ok = ARNativePlugin.arwGetVideoParams(out width, out height, out pixelSize, sb, sb.Capacity);
        }
        if (!ok)
        {
            pixelFormatString = "";
        }
        else
        {
            pixelFormatString = sb.ToString();
        }
        return(ok);
    }