Browse Source

IJpegComponent -> JpegComponent

pull/2073/head
Brian Popow 4 years ago
parent
commit
0a08940eb2
  1. 2
      src/ImageSharp/Formats/Jpeg/Components/Decoder/IRawJpegData.cs
  2. 2
      src/ImageSharp/Formats/Jpeg/Components/Decoder/JpegFrame.cs
  3. 6
      src/ImageSharp/Formats/Jpeg/JpegDecoderCore.cs

2
src/ImageSharp/Formats/Jpeg/Components/Decoder/IRawJpegData.cs

@ -18,7 +18,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder
/// <summary>
/// Gets the components.
/// </summary>
IJpegComponent[] Components { get; }
JpegComponent[] Components { get; }
/// <summary>
/// Gets the quantization tables, in natural order.

2
src/ImageSharp/Formats/Jpeg/Components/Decoder/JpegFrame.cs

@ -86,7 +86,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder
/// <summary>
/// Gets or sets the frame component collection.
/// </summary>
public IJpegComponent[] Components { get; set; }
public JpegComponent[] Components { get; set; }
/// <summary>
/// Gets or sets the number of MCU's per line.

6
src/ImageSharp/Formats/Jpeg/JpegDecoderCore.cs

@ -148,10 +148,10 @@ namespace SixLabors.ImageSharp.Formats.Jpeg
/// <summary>
/// Gets the components.
/// </summary>
public IJpegComponent[] Components => this.Frame.Components;
public JpegComponent[] Components => this.Frame.Components;
/// <inheritdoc/>
IJpegComponent[] IRawJpegData.Components => this.Components;
JpegComponent[] IRawJpegData.Components => this.Components;
/// <inheritdoc/>
public Block8x8F[] QuantizationTables { get; private set; }
@ -1244,7 +1244,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg
new JpegComponent(this.Configuration.MemoryAllocator, this.Frame, componentId, h, v, quantTableIndex, i) :
new ArithmeticDecodingComponent(this.Configuration.MemoryAllocator, this.Frame, componentId, h, v, quantTableIndex, i);
this.Frame.Components[i] = component;
this.Frame.Components[i] = (JpegComponent)component;
this.Frame.ComponentIds[i] = componentId;
index += componentBytes;

Loading…
Cancel
Save