33// Licensed under the Apache License, Version 2.0.
44// </copyright>
55
6- using System . Numerics ;
7-
86namespace ImageSharp . Formats
97{
108 using System ;
@@ -51,7 +49,8 @@ internal class JpegEncoderCore
5149 /// The values are derived from section K.1 after converting from natural to
5250 /// zig-zag order.
5351 /// </summary>
54- private readonly byte [ , ] unscaledQuant = {
52+ private readonly byte [ , ] unscaledQuant =
53+ {
5554 {
5655 // Luminance.
5756 16 , 11 , 12 , 14 , 12 , 10 , 16 , 14 , 13 , 14 , 18 , 17 , 16 , 19 , 24 , 40 ,
@@ -73,7 +72,8 @@ internal class JpegEncoderCore
7372 /// The Huffman encoding specifications.
7473 /// This encoder uses the same Huffman encoding for all images.
7574 /// </summary>
76- private readonly HuffmanSpec [ ] theHuffmanSpec = {
75+ private readonly HuffmanSpec [ ] theHuffmanSpec =
76+ {
7777 // Luminance DC.
7878 new HuffmanSpec (
7979 new byte [ ]
@@ -488,9 +488,9 @@ public void Encode<TColor, TPacked>(Image<TColor, TPacked> image, Stream stream,
488488 int componentCount = 3 ;
489489
490490 // Write the Start Of Image marker.
491- WriteApplicationHeader ( ( short ) image . HorizontalResolution , ( short ) image . VerticalResolution ) ;
491+ this . WriteApplicationHeader ( ( short ) image . HorizontalResolution , ( short ) image . VerticalResolution ) ;
492492
493- WriteProfiles ( image ) ;
493+ this . WriteProfiles ( image ) ;
494494
495495 // Write the quantization tables.
496496 this . WriteDQT ( ) ;
@@ -574,7 +574,7 @@ private void WriteProfiles<TColor, TPacked>(Image<TColor, TPacked> image)
574574 where TColor : struct , IPackedPixel < TPacked >
575575 where TPacked : struct
576576 {
577- WriteProfile ( image . ExifProfile ) ;
577+ this . WriteProfile ( image . ExifProfile ) ;
578578 }
579579
580580 private void WriteProfile ( ExifProfile exifProfile )
0 commit comments