Browse Source

Removed unused methods

pull/348/head
James Jackson-South 9 years ago
parent
commit
7f9bb9012b
  1. 38
      src/ImageSharp/Formats/Jpeg/GolangPort/OrigJpegDecoderCore.cs

38
src/ImageSharp/Formats/Jpeg/GolangPort/OrigJpegDecoderCore.cs

@ -47,16 +47,6 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.GolangPort
/// </summary>
private readonly Configuration configuration;
/// <summary>
/// The App14 marker color-space
/// </summary>
private byte adobeTransform;
/// <summary>
/// Whether the image is in CMYK format with an App14 marker
/// </summary>
private bool adobeTransformValid;
/// <summary>
/// The horizontal resolution. Calculated if the image has a JFIF header.
/// </summary>
@ -446,30 +436,6 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.GolangPort
}
}
/// <summary>
/// Returns a value indicating whether the image in an RGB image.
/// </summary>
/// <returns>
/// The <see cref="bool" />.
/// </returns>
private bool IsRGB()
{
if (this.isJfif)
{
return false;
}
if (this.adobeTransformValid && this.adobeTransform == OrigJpegConstants.Adobe.ColorTransformUnknown)
{
// http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/JPEG.html#Adobe
// says that 0 means Unknown (and in practice RGB) and 1 means YCbCr.
return true;
}
return this.Components[0].Identifier == 'R' && this.Components[1].Identifier == 'G'
&& this.Components[2].Identifier == 'B';
}
/// <summary>
/// Processes the application header containing the Adobe identifier
/// which stores image encoding information for DCT filters.
@ -495,10 +461,6 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.GolangPort
if (this.isAdobe)
{
// TODO: delete these 2 lines
this.adobeTransformValid = true;
this.adobeTransform = this.Temp[11];
this.adobe = new AdobeMarker
{
DCTEncodeVersion = (short)((this.Temp[5] << 8) | this.Temp[6]),

Loading…
Cancel
Save