public void StartVideoModeAsync(CameraParameters setupParams, VideoCapture.AudioState audioState, VideoCapture.OnVideoModeStartedCallback onVideoModeStartedCallback) { if (this.m_NativePtr == IntPtr.Zero) { throw new InvalidOperationException("You must create a Video Capture Object before starting its video mode."); } if (onVideoModeStartedCallback == null) { throw new ArgumentNullException("onVideoModeStartedCallback"); } if (setupParams.cameraResolutionWidth == 0 || setupParams.cameraResolutionHeight == 0) { throw new ArgumentOutOfRangeException("setupParams", "The camera resolution must be set to a supported resolution."); } if (setupParams.frameRate == 0f) { throw new ArgumentOutOfRangeException("setupParams", "The camera frame rate must be set to a supported recording frame rate."); } this.StartVideoMode_Internal(this.m_NativePtr, (int)audioState, onVideoModeStartedCallback, setupParams.hologramOpacity, setupParams.frameRate, setupParams.cameraResolutionWidth, setupParams.cameraResolutionHeight, (int)setupParams.pixelFormat); }
public void StartVideoModeAsync(CameraParameters setupParams, VideoCapture.AudioState audioState, VideoCapture.OnVideoModeStartedCallback onVideoModeStartedCallback) { bool flag = onVideoModeStartedCallback == null; if (flag) { throw new ArgumentNullException("onVideoModeStartedCallback"); } bool flag2 = setupParams.cameraResolutionWidth == 0 || setupParams.cameraResolutionHeight == 0; if (flag2) { throw new ArgumentOutOfRangeException("setupParams", "The camera resolution must be set to a supported resolution."); } bool flag3 = setupParams.frameRate == 0f; if (flag3) { throw new ArgumentOutOfRangeException("setupParams", "The camera frame rate must be set to a supported recording frame rate."); } this.StartVideoMode_Internal(setupParams, audioState, onVideoModeStartedCallback); }
private extern void StartVideoMode_Internal_Injected(ref CameraParameters cameraParameters, VideoCapture.AudioState audioState, VideoCapture.OnVideoModeStartedCallback onVideoModeStartedCallback);
private void StartVideoMode_Internal(CameraParameters cameraParameters, VideoCapture.AudioState audioState, VideoCapture.OnVideoModeStartedCallback onVideoModeStartedCallback) { this.StartVideoMode_Internal_Injected(ref cameraParameters, audioState, onVideoModeStartedCallback); }