Exemplo n.º 1
0
        /// <summary>
        /// Collects all available image formats from the device.
        /// </summary>
        private void fetchFormats() {
            formats = new List<Analog.Video.Format>();
            v4l2_fmtdesc cur = new v4l2_fmtdesc();

            cur.index = 0;
            while(ioControl.EnumerateFormats(ref cur) == 0) {
                formats.Add(new Analog.Video.Format(cur));
                cur.index++;
            }
        }
Exemplo n.º 2
0
			ioctl(int device, v4l2_operation request, ref v4l2_fmtdesc argp);
Exemplo n.º 3
0
 private static extern int ioctl(int device, v4l2_operation request, ref v4l2_fmtdesc argp);
Exemplo n.º 4
0
		/// <summary>
		/// Calls VIDIOC_ENUM_FMT.
		/// </summary>
		public int EnumerateFormats(ref v4l2_fmtdesc fmt)
		{
			return ioctl(deviceHandle, v4l2_operation.EnumerateFormats, ref fmt);
		}
Exemplo n.º 5
0
		internal Format(v4l2_fmtdesc fmtdesc)
		{
			this.fmtdesc = fmtdesc;
		}