예제 #1
0
파일: Buffer.cs 프로젝트: rasberry/AutoCar
        /// <summary>
        /// Creates a buffer to be used with Video4Linux streaming I/O.
        /// </summary>
        /// <param name="adapter">The parental Video4Linux device.</param>
        /// <param name="buffer">The struct holding the buffer information.</param>
        internal Buffer(Analog.Adapter adapter, v4l2_buffer buffer)
        {
            this.adapter = adapter;
            this.buffer  = buffer;

            mapMemory();
        }
예제 #2
0
		/// <summary>
		/// Creates a buffer to be used with Video4Linux streaming I/O.
		/// </summary>
		/// <param name="adapter">The parental Video4Linux device.</param>
		/// <param name="buffer">The struct holding the buffer information.</param>
		internal Buffer(Analog.Adapter adapter, v4l2_buffer buffer)
		{
			this.adapter = adapter;
			this.buffer = buffer;
			
			mapMemory();
		}
예제 #3
0
 internal void Set(Analog.Adapter adapter)
 {
     if (adapter.IoControl.SetFormat(ref format) < 0)
     {
         throw new Exception("VIDIOC_S_FMT");
     }
 }
예제 #4
0
파일: Input.cs 프로젝트: rasberry/AutoCar
 internal Input(Analog.Adapter adapter, v4l2_audio input)
 {
     this.adapter = adapter;
     this.input   = input;
 }
예제 #5
0
		public Stream(Analog.Adapter adapter)
			: base()
		{
			this.adapter = adapter;
		}
예제 #6
0
		internal Input(Analog.Adapter adapter, v4l2_audio input)
		{
			this.adapter = adapter;
			this.input = input;
		}
예제 #7
0
 public Stream(Analog.Adapter adapter)
     : base()
 {
     this.adapter = adapter;
 }