Пример #1
0
 private extern void StartVideoMode_Internal(IntPtr videoCaptureObj, int audioState, VideoCapture.OnVideoModeStartedCallback onVideoModeStartedCallback, float hologramOpacity, float frameRate, int cameraResolutionWidth, int cameraResolutionHeight, int pixelFormat);
Пример #2
0
 private static void InvokeOnVideoModeStartedDelegate(VideoCapture.OnVideoModeStartedCallback callback, long hResult)
 {
     callback(VideoCapture.MakeCaptureResult(hResult));
 }
Пример #3
0
 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);
 }
Пример #4
0
 private extern void StartVideoMode_Internal_Injected(ref CameraParameters cameraParameters, VideoCapture.AudioState audioState, VideoCapture.OnVideoModeStartedCallback onVideoModeStartedCallback);
Пример #5
0
 private void StartVideoMode_Internal(CameraParameters cameraParameters, VideoCapture.AudioState audioState, VideoCapture.OnVideoModeStartedCallback onVideoModeStartedCallback)
 {
     this.StartVideoMode_Internal_Injected(ref cameraParameters, audioState, onVideoModeStartedCallback);
 }
Пример #6
0
        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);
        }