Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="VideoOutputStream"/> class.
        /// </summary>
        /// <param name="stream">The video stream.</param>
        /// <param name="config">The stream setting.</param>
        internal VideoOutputStream(OutputStream <VideoFrame> stream, VideoEncoderSettings config)
        {
            this.stream   = stream;
            Configuration = config;
            converter     = new ImageConverter();

            var(size, format) = GetStreamLayout(stream);
            encodedFrame      = VideoFrame.Create(size, format);
        }