Browse Source

stackalloc chroma

pull/604/head
Jason Nelson 8 years ago
parent
commit
4c26dd9a5f
  1. 2
      src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs

2
src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs

@ -738,7 +738,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg
{
// "default" to 4:2:0
Span<byte> subsamples = stackalloc byte[] { 0x22, 0x11, 0x11 };
byte[] chroma = { 0x00, 0x01, 0x01 };
Span<byte> chroma = stackalloc byte[] { 0x00, 0x01, 0x01 };
switch (this.subsample)
{

Loading…
Cancel
Save