コード例 #1
0
        /// <summary>
        /// Creates a buffer to be used with Video4Linux streaming I/O.
        /// </summary>
        /// <param name="device">The parental Video4Linux device.</param>
        /// <param name="buffer">The struct holding the buffer information.</param>
        internal V4LBuffer(V4LDevice device, v4l2_buffer buffer)
        {
            this.device = device;
            this.buffer = buffer;

            mapMemory();
        }
コード例 #2
0
        /// <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;
        }
コード例 #3
0
        internal V4LVideoFormat(V4LDevice device, v4l2_buf_type type)
        {
            this.device = device;

            format = new v4l2_format();
            format.type = type;
            getFormat();
        }
コード例 #4
0
        /// <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();
        }
コード例 #5
0
ファイル: Main.cs プロジェクト: BackupTheBerlios/v4l-net-svn
        public static void Main(string[] args)
        {
            V4LDevice dev = new V4LDevice("/dev/video0");

            System.Console.WriteLine(dev.Name);
            System.Console.WriteLine(dev.Driver);
            System.Console.WriteLine(dev.BusInfo);
            System.Console.WriteLine(dev.Version);
            System.Console.WriteLine();

            foreach (V4LInput input in dev.Inputs)
                System.Console.WriteLine(input.Name);
            System.Console.WriteLine();

            System.Console.WriteLine("Current Input: " + dev.Input.Name);
            dev.Standard = (ulong)Video4Linux.APIv2.v4l2_std_id.Composite_PAL_BG;
            System.Console.WriteLine("Current Standard: " + dev.Standard);

            /*v4l2_std_id std_id = V4L2_STD_PAL_BG;
            if (ioctl(fd, VIDIOC_S_STD, &std_id) < 0)
                printf("err: cant set vid std\n");*/
        }
コード例 #6
0
 public V4LInput(V4LDevice device, APIv2.v4l2_input input)
 {
     this.device = device;
     this.input = input;
 }
コード例 #7
0
 public V4LStandard(V4LDevice device, APIv2.v4l2_standard standard)
 {
     this.device = device;
     this.standard = standard;
 }
コード例 #8
0
 public V4LAudioInput(V4LDevice device, APIv2.v4l2_audio input)
 {
     this.device = device;
     this.input = input;
 }
コード例 #9
0
 /// <summary>
 /// Creates a video input.
 /// </summary>
 /// <param name="device">The parental Video4Linux device.</param>
 /// <param name="input">The struct holding the video input information.</param>
 internal V4LInput(V4LDevice device, v4l2_input input)
 {
     this.device = device;
     this.input = input;
 }
コード例 #10
0
 public V4LFormat(V4LDevice device, APIv2.v4l2_fmtdesc fmtdesc)
 {
     this.device = device;
     this.fmtdesc = fmtdesc;
 }
コード例 #11
0
 internal V4LFormatContainer(V4LDevice device)
 {
     this.device = device;
 }
コード例 #12
0
 /// <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;
 }
コード例 #13
0
 public V4LTuner(V4LDevice device, APIv2.v4l2_tuner tuner)
 {
     this.device = device;
     this.tuner = tuner;
 }
コード例 #14
0
 internal V4LAudioInput(V4LDevice device, v4l2_audio input)
 {
     this.device = device;
     this.input = input;
 }
コード例 #15
0
 public V4LOutput(V4LDevice device, APIv2.v4l2_output output)
 {
     this.device = device;
     this.output = output;
 }