/// <summary> /// /// </summary> /// <param name="fileName"></param> /// <returns></returns> public static FrameSource CreateVideoSourceGpu(string fileName) { if (String.IsNullOrEmpty("fileName")) { throw new ArgumentNullException("fileName"); } if (!File.Exists(fileName)) { throw new FileNotFoundException("", fileName); } IntPtr ptr = NativeMethods.superres_createFrameSource_Video_GPU(fileName); return(FrameSourceImpl.FromPtr(ptr)); }
/// <summary> /// /// </summary> /// <param name="deviceId"></param> /// <returns></returns> public static FrameSource CreateCameraSource(int deviceId) { IntPtr ptr = NativeMethods.superres_createFrameSource_Camera(deviceId); return(FrameSourceImpl.FromPtr(ptr)); }
/// <summary> /// /// </summary> /// <returns></returns> public static FrameSource CreateEmptySource() { IntPtr ptr = NativeMethods.superres_createFrameSource_Empty(); return(FrameSourceImpl.FromPtr(ptr)); }