public V4LStandard(V4LDevice device, APIv2.v4l2_standard standard)
 {
     this.device = device;
     this.standard = standard;
 }
 internal V4LStandard(v4l2_standard standard)
 {
     this.standard = standard;
 }
        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++;
            }
        }
        /// <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++;
            }
        }
 private static extern int ioctl(int device, v4l2_operation request, ref v4l2_standard argp);
 /// <summary>
 /// Calls VIDIOC_ENUMSTD.
 /// </summary>
 public int EnumerateStandards(ref v4l2_standard std)
 {
     return ioctl(deviceHandle, v4l2_operation.EnumerateStandards, ref std);
 }