Example #1
0
 public V4LInput(V4LDevice device, APIv2.v4l2_input input)
 {
     this.device = device;
     this.input = input;
 }
        private void fetchInputs()
        {
            inputs = new List<V4LInput>();
            APIv2.v4l2_input cur = new APIv2.v4l2_input();

            cur.index = 0;
            while (ioctl(deviceHandle, APIv2.v4l2_operation_id.EnumerateInputs, ref cur) == 0)
            {
                inputs.Add(new V4LInput(this, cur));
                cur.index++;
            }
        }
Example #3
0
 /// <summary>
 /// Creates a video input.
 /// </summary>
 /// <param name="device">The parental Video4Linux device.</param>
 /// <param name="input">The struct holding the video input information.</param>
 internal V4LInput(V4LDevice device, v4l2_input input)
 {
     this.device = device;
     this.input = input;
 }
        private void fetchInputs()
        {
            inputs = new List<V4LInput>();
            APIv2.v4l2_input cur = new APIv2.v4l2_input();

            cur.index = 0;
            while (ioControl.EnumerateInputs(ref cur) == 0)
            {
                inputs.Add(new V4LInput(this, cur));
                cur.index++;
            }
        }
 /// <summary>
 /// Calls VIDIOC_ENUMINPUT.
 /// </summary>
 public int EnumerateInputs(ref v4l2_input input)
 {
     return ioctl(deviceHandle, v4l2_operation.EnumerateInputs, ref input);
 }
 private static extern int ioctl(int device, v4l2_operation request, ref v4l2_input argp);