/// <summary> /// Creates a video capture/output format. /// </summary> /// <param name="device">The parental Video4Linux device.</param> /// <param name="type">The buffer type the format belongs to.</param> internal V4LOverlayFormat(V4LDevice device, v4l2_buf_type type) { this.device = device; format = new v4l2_format(); format.type = type; }
internal V4LVideoFormat(V4LDevice device, v4l2_buf_type type) { this.device = device; format = new v4l2_format(); format.type = type; getFormat(); }
private static extern int ioctl(int device, v4l2_operation request, ref v4l2_format argp);
/// <summary> /// Calls VIDIOC_S_FMT. /// </summary> public int SetFormat(ref v4l2_format fmt) { return ioctl(deviceHandle, v4l2_operation.SetFormat, ref fmt); }