Example #1
0
        /// <inheritdoc cref="DestroyVideoSource(CuVideoSource)"/>
        public void Dispose()
        {
            var handle = Interlocked.Exchange(ref Handle, IntPtr.Zero);
            if (handle == IntPtr.Zero) return;
            var obj = new CuVideoSource { Handle = handle };

            CheckResult(DestroyVideoSource(obj));
        }
Example #2
0
 public static extern CuResult GetSourceVideoFormat(CuVideoSource obj, ref CuVideoFormat pvidfmt, uint flags);
Example #3
0
 public static extern CuVideoState GetVideoSourceState(CuVideoSource obj);
Example #4
0
 public static extern CuResult SetVideoSourceState(CuVideoSource obj, CuVideoState state);
Example #5
0
 public static extern CuResult DestroyVideoSource(CuVideoSource obj);
Example #6
0
 public static extern CuResult GetSourceAudioFormat(CuVideoSource obj, ref CuAudioFormat paudfmt, uint flags);