/// <summary> /// Gets a V4LStandard out of the list of all supported standards. /// </summary> /// <param name="std">Id of the standard.</param> private Analog.Video.Standard getStandardById(v4l2_std_id std) { foreach (Analog.Video.Standard standard in Standards) { if (standard.Id == std) { return(standard); } } throw new Exception("VIDIOC_G_STD [std not in list]"); }
/// <summary> /// Gets a V4LStandard out of the list of all supported standards. /// </summary> /// <param name="std">Id of the standard.</param> private Analog.Video.Standard getStandardById(v4l2_std_id std) { foreach(Analog.Video.Standard standard in Standards) if(standard.Id == std) return standard; throw new Exception("VIDIOC_G_STD [std not in list]"); }
ioctl(int device, v4l2_operation request, ref v4l2_std_id argp);
public int QueryInputStandard(ref v4l2_std_id std) { return -1; // FIXME: Unimplemented; }
/// <summary> /// Calls VIDIOC_S_STD. /// </summary> public int SetStandard(ref v4l2_std_id std) { return ioctl(deviceHandle, v4l2_operation.SetStandard, ref std); }
private static extern int ioctl(int device, v4l2_operation request, ref v4l2_std_id argp);
public int QueryInputStandard(ref v4l2_std_id std) { return(-1); // FIXME: Unimplemented; }
/// <summary> /// Calls VIDIOC_S_STD. /// </summary> public int SetStandard(ref v4l2_std_id std) { return(ioctl(deviceHandle, v4l2_operation.SetStandard, ref std)); }