public static void logFrameInforamtion() { int width, height, pixelSize; StringBuilder buffer = new StringBuilder(30); ARUWP.aruwpGetFrameParams(out width, out height, out pixelSize, buffer, 30); Debug.Log("ARUWP: Frame width and height: " + width + "x" + height); Debug.Log("ARUWP: Frame pixel size: " + pixelSize); Debug.Log("ARUWP: Frame pixel format string: " + buffer.ToString()); }
/// <summary> /// Log the current frame information using Debug.Log(). [internal use] /// </summary> private void LogFrameInforamtion() { if (HasNativeHandle()) { int width, height, pixelSize; StringBuilder buffer = new StringBuilder(30); ARUWP.aruwpGetFrameParams(out width, out height, out pixelSize, buffer, 30); Debug.Log("ARUWP: Frame width and height: " + width + "x" + height); Debug.Log("ARUWP: Frame pixel size: " + pixelSize); Debug.Log("ARUWP: Frame pixel format string: " + buffer.ToString()); } else { Debug.Log(TAG + ": LogFrameInforamtion() unsupported status"); } }