public ImageBufferList(EncoderConfiguration.Configuration config) : base() { SourceWidth = config.Video.InputWidth; SourceHeight = config.Video.InputHeight; WaitingCaptures = new SortedSubscriberQueue <TimedImage>(); }
/// <summary> /// Prepare a set of buffers to accept the images. /// Incoming frames will be scaled to match the given width and height. /// For best results, capture and buffer sizes should match. /// Rescaling does not preserve aspect ratio. /// </summary> /// <param name="SourcePixels">height * width of the capture device.</param> public ImageBuffer(int Width, int Height) { height = Height; width = Width; WaitingFrames = new List<TimedImage>(100); WaitingCaptures = new SortedSubscriberQueue<TimedImage>(); // dummy one until a proper queue is added. }
/// <summary> /// Prepare a set of buffers to accept the images. /// Incoming frames will be scaled to match the given width and height. /// For best results, capture and buffer sizes should match. /// Rescaling does not preserve aspect ratio. /// </summary> /// <param name="SourcePixels">height * width of the capture device.</param> public ImageBuffer(int Width, int Height) { height = Height; width = Width; WaitingFrames = new List <TimedImage>(100); WaitingCaptures = new SortedSubscriberQueue <TimedImage>(); // dummy one until a proper queue is added. }