Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OrigJpegDecoderCore" /> class.
 /// </summary>
 /// <param name="configuration">The configuration.</param>
 /// <param name="options">The options.</param>
 public OrigJpegDecoderCore(Configuration configuration, IJpegDecoderOptions options)
 {
     this.IgnoreMetadata     = options.IgnoreMetadata;
     this.configuration      = configuration ?? Configuration.Default;
     this.HuffmanTrees       = OrigHuffmanTree.CreateHuffmanTrees();
     this.QuantizationTables = new Block8x8F[MaxTq + 1];
     this.Temp = new byte[2 * Block8x8F.Size];
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="JpegDecoderCore" /> class.
 /// </summary>
 /// <param name="configuration">The configuration.</param>
 /// <param name="options">The options.</param>
 public JpegDecoderCore(Configuration configuration, IJpegDecoderOptions options)
 {
     this.Configuration = configuration ?? Configuration.Default;
     this.IgnoreMetadata = options.IgnoreMetadata;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GolangJpegDecoderCore" /> class.
 /// </summary>
 /// <param name="configuration">The configuration.</param>
 /// <param name="options">The options.</param>
 public GolangJpegDecoderCore(Configuration configuration, IJpegDecoderOptions options)
 {
     this.IgnoreMetadata = options.IgnoreMetadata;
     this.configuration  = configuration ?? Configuration.Default;
     this.Temp           = new byte[2 * Block8x8F.Size];
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JpegDecoderCore" /> class.
 /// </summary>
 /// <param name="options">The options.</param>
 public JpegDecoderCore(IJpegDecoderOptions options)
 {
     this.IgnoreMetadata = options.IgnoreMetadata;
 }