コード例 #1
0
ファイル: Adapter.cs プロジェクト: dxball/v4l-net
        /// <summary>
        /// Creates a Video4Linux device.
        /// </summary>
        /// <param name="path">Path to the device.</param>
        public Adapter(string path) {
            deviceHandle = Syscall.open(path, OpenFlags.O_RDWR);
            if(deviceHandle < 0)
                throw new Exception("Adapter " + path + " cannot be opened.");

            ioControl = new Core.IOControl(deviceHandle);
        }
コード例 #2
0
        /// <summary>
        /// Creates a Video4Linux device.
        /// </summary>
        /// <param name="path">Path to the device.</param>
        public Adapter(string path)
        {
            deviceHandle = Syscall.open(path, OpenFlags.O_RDWR);
            if (deviceHandle < 0)
            {
                throw new Exception("Adapter " + path + " cannot be opened.");
            }

            ioControl = new Core.IOControl(deviceHandle);
        }
コード例 #3
0
 /// <summary>
 /// Creates a Video4Linux device.
 /// </summary>
 /// <param name="path">Path to the device.</param>
 public Adapter(string path)
 {
     deviceHandle = Syscall.open(path, OpenFlags.O_RDWR);
     ioControl = new Core.IOControl(deviceHandle);
 }