예제 #1
0
 public V4LStandard(V4LDevice device, APIv2.v4l2_standard standard)
 {
     this.device = device;
     this.standard = standard;
 }
예제 #2
0
 internal V4LStandard(v4l2_standard standard)
 {
     this.standard = standard;
 }
예제 #3
0
        private void fetchStandards()
        {
            standards = new List<V4LStandard>();
            APIv2.v4l2_standard cur = new APIv2.v4l2_standard();

            cur.index = 0;
            while (ioControl.EnumerateStandards(ref cur) == 0)
            {
                standards.Add(new V4LStandard(this, cur));
                cur.index++;
            }
        }
예제 #4
0
        /// <summary>
        /// Collects all available TV standards from the device.
        /// </summary>
        private void fetchStandards()
        {
            standards = new ManagedList<V4LStandard>();
            v4l2_standard cur = new v4l2_standard();

            cur.index = 0;
            while (ioControl.EnumerateStandards(ref cur) == 0)
            {
                standards.Add(new V4LStandard(cur));
                cur.index++;
            }
        }
예제 #5
0
 private static extern int ioctl(int device, v4l2_operation request, ref v4l2_standard argp);
예제 #6
0
 /// <summary>
 /// Calls VIDIOC_ENUMSTD.
 /// </summary>
 public int EnumerateStandards(ref v4l2_standard std)
 {
     return ioctl(deviceHandle, v4l2_operation.EnumerateStandards, ref std);
 }