示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="JpegComponentPostProcessor"/> class.
        /// </summary>
        public JpegComponentPostProcessor(JpegImagePostProcessor imagePostProcessor, IJpegComponent component)
        {
            this.Component          = component;
            this.ImagePostProcessor = imagePostProcessor;
            this.ColorBuffer        = new Buffer2D <float>(imagePostProcessor.PostProcessorBufferSize);

            this.BlockRowsPerStep = JpegImagePostProcessor.BlockRowsPerStep / this.Component.SubSamplingDivisors.Height;
            this.blockAreaSize    = this.Component.SubSamplingDivisors * 8;
        }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="JpegComponentPostProcessor"/> class.
        /// </summary>
        public JpegComponentPostProcessor(MemoryManager memoryManager, JpegImagePostProcessor imagePostProcessor, IJpegComponent component)
        {
            this.Component          = component;
            this.ImagePostProcessor = imagePostProcessor;
            this.ColorBuffer        = memoryManager.Allocate2D <float>(
                imagePostProcessor.PostProcessorBufferSize.Width,
                imagePostProcessor.PostProcessorBufferSize.Height);

            this.BlockRowsPerStep = JpegImagePostProcessor.BlockRowsPerStep / this.Component.SubSamplingDivisors.Height;
            this.blockAreaSize    = this.Component.SubSamplingDivisors * 8;
        }