/// <summary> /// Creates a tuner. /// </summary> /// <param name="device">The parental Video4Linux device.</param> /// <param name="index">The index of the tuner.</param> /// <param name="type">The type of the tuner.</param> internal V4LTuner(V4LDevice device, uint index, V4LTunerType type) { this.device = device; tuner = new v4l2_tuner(); tuner.index = index; tuner.type = type; getTuner(); }
private void fetchTuners() { tuners = new List<V4LTuner>(); APIv2.v4l2_tuner cur = new APIv2.v4l2_tuner(); cur.index = 0; while (ioControl.GetTuner(ref cur) == 0) { tuners.Add(new V4LTuner(this, cur)); cur.index++; } }
/// <summary> /// Collects all available tuners from the device. /// </summary> private void fetchTuners() { tuners = new ManagedList<V4LTuner>(); v4l2_tuner cur = new v4l2_tuner(); cur.index = 0; while (ioControl.GetTuner(ref cur) == 0) { tuners.Add(new V4LTuner(this, cur.index, cur.type)); cur.index++; } }
/// <summary> /// Creates a tuner. /// </summary> /// <param name="device">The parental Video4Linux device.</param> /// <param name="tuner">The struct holding the tuner information.</param> internal V4LTuner(V4LDevice device, v4l2_tuner tuner) { this.device = device; this.tuner = tuner; }
public V4LTuner(V4LDevice device, APIv2.v4l2_tuner tuner) { this.device = device; this.tuner = tuner; }
private static extern int ioctl(int device, v4l2_operation request, ref v4l2_tuner argp);
/// <summary> /// Calls VIDIOC_S_TUNER. /// </summary> public int SetTuner(ref v4l2_tuner tuner) { return ioctl(deviceHandle, v4l2_operation.SetTuner, ref tuner); }