Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Mpeg4Writer"/> class.
        /// </summary>
        /// <param name="pipeline">Pipeline this component is a part of</param>
        /// <param name="filename">Name of output file to write to</param>
        /// <param name="configurationFilename">Name of file containing media capture device configuration</param>
        public Mpeg4Writer(Pipeline pipeline, string filename, string configurationFilename)
            : this(pipeline, filename)
        {
            var configurationHelper = new ConfigurationHelper <Mpeg4WriterConfiguration>(configurationFilename);

            this.configuration = configurationHelper.Configuration;
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Mpeg4Writer"/> class.
 /// </summary>
 /// <param name="pipeline">Pipeline this component is a part of</param>
 /// <param name="filename">Name of output file to write to</param>
 /// <param name="width">Width of output image in pixels</param>
 /// <param name="height">Height of output image in pixels</param>
 /// <param name="pixelFormat">Format of input images</param>
 public Mpeg4Writer(Pipeline pipeline, string filename, uint width, uint height, Imaging.PixelFormat pixelFormat)
     : this(pipeline, filename)
 {
     this.configuration             = Mpeg4WriterConfiguration.Default;
     this.configuration.ImageWidth  = width;
     this.configuration.ImageHeight = height;
     this.configuration.PixelFormat = pixelFormat;
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Mpeg4Writer"/> class.
 /// </summary>
 /// <param name="pipeline">Pipeline this component is a part of</param>
 /// <param name="filename">Name of output file to write to</param>
 /// <param name="configuration">Describes how to configure the media capture device</param>
 public Mpeg4Writer(Pipeline pipeline, string filename, Mpeg4WriterConfiguration configuration)
     : this(pipeline, filename)
 {
     this.configuration = configuration;
 }