diff --git a/src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs b/src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs index 2f22a7ea9..332dcec48 100644 --- a/src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs +++ b/src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs @@ -1227,8 +1227,8 @@ namespace ImageSharp.Formats } /// - /// Processes the "Adobe" APP14 segment stores image encoding information for DCT filters. - /// This segment may be copied or deleted as a block using the Extra "Adobe" tag, but note that it is not + /// Processes the "Adobe" APP14 segment stores image encoding information for DCT filters. + /// This segment may be copied or deleted as a block using the Extra "Adobe" tag, but note that it is not /// deleted by default when deleting all metadata because it may affect the appearance of the image. /// /// The remaining number of bytes in the stream. @@ -1305,7 +1305,7 @@ namespace ImageSharp.Formats byte cr = this.ycbcrImage.CrChannel[co + (x / scale)]; TColor packed = default(TColor); - this.PackCmyk(ref packed, yy, cb, cr, x, y); + this.PackCmyk(ref packed, yy, cb, cr, x, y); pixels[x, y] = packed; } }); @@ -1975,7 +1975,7 @@ namespace ImageSharp.Formats } /// - /// Refines non-zero entries of b in zig-zag order. + /// Refines non-zero entries of b in zig-zag order. /// If >= 0, the first zero entries are skipped over. /// /// The block of coefficients @@ -2098,7 +2098,7 @@ namespace ImageSharp.Formats } /// - /// Optimized method to pack bytes to the image from the YCbCr color space. + /// Optimized method to pack bytes to the image from the YCbCr color space. /// This is faster than implicit casting as it avoids double packing. /// /// The pixel format. @@ -2122,7 +2122,7 @@ namespace ImageSharp.Formats } /// - /// Optimized method to pack bytes to the image from the CMYK color space. + /// Optimized method to pack bytes to the image from the CMYK color space. /// This is faster than implicit casting as it avoids double packing. /// /// The pixel format. @@ -2149,7 +2149,7 @@ namespace ImageSharp.Formats // Get keyline float keyline = (255 - this.blackPixels[(yy * this.blackStride) + xx]) / 255F; - // Convert back to RGB + // Convert back to RGB byte r = (byte)(((1 - cyan) * (1 - keyline)).Clamp(0, 1) * 255); byte g = (byte)(((1 - magenta) * (1 - keyline)).Clamp(0, 1) * 255); byte b = (byte)(((1 - yellow) * (1 - keyline)).Clamp(0, 1) * 255); @@ -2193,7 +2193,7 @@ namespace ImageSharp.Formats } /// - /// The EOF (End of File exception). + /// The EOF (End of File exception). /// Thrown when the decoder encounters an EOF marker without a proceeding EOI (End Of Image) marker /// private class EOFException : Exception diff --git a/src/ImageSharp/Formats/Jpg/JpegEncoderCore.cs b/src/ImageSharp/Formats/Jpg/JpegEncoderCore.cs index c9ffd855b..8d9b48a20 100644 --- a/src/ImageSharp/Formats/Jpg/JpegEncoderCore.cs +++ b/src/ImageSharp/Formats/Jpg/JpegEncoderCore.cs @@ -559,7 +559,7 @@ namespace ImageSharp.Formats byte g = color[1]; byte b = color[2]; - // Convert returned bytes into the YCbCr color space. Assume RGBA + // Convert returned bytes into the YCbCr color space. Assume RGBA byte yy = (byte)((0.299F * r) + (0.587F * g) + (0.114F * b)); byte cb = (byte)(128 + ((-0.168736F * r) - (0.331264F * g) + (0.5F * b))); byte cr = (byte)(128 + ((0.5F * r) - (0.418688F * g) - (0.081312F * b))); @@ -681,7 +681,7 @@ namespace ImageSharp.Formats } /// - /// Writes the Define Quantization Marker and tables. + /// Writes the Define Quantization Marker and tables. /// private void WriteDefineQuantizationTables() { @@ -766,7 +766,7 @@ namespace ImageSharp.Formats /// The number of components to write. private void WriteDefineHuffmanTables(int componentCount) { - // Table identifiers. + // Table identifiers. byte[] headers = { 0x00, 0x10, 0x01, 0x11 }; int markerlen = 2; HuffmanSpec[] specs = TheHuffmanSpecs; diff --git a/src/ImageSharp/Image/PixelRow.cs b/src/ImageSharp/Image/PixelRow.cs index 6ad25dbed..4682aaaac 100644 --- a/src/ImageSharp/Image/PixelRow.cs +++ b/src/ImageSharp/Image/PixelRow.cs @@ -68,7 +68,7 @@ namespace ImageSharp } /// - /// Finalizes an instance of the class. + /// Finalizes an instance of the class. /// ~PixelRow() {