|
|
|
@ -116,7 +116,8 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder |
|
|
|
this.pixelBuffer = allocator.Allocate2D<TPixel>( |
|
|
|
frame.PixelWidth, |
|
|
|
frame.PixelHeight, |
|
|
|
this.configuration.PreferContiguousImageBuffers); |
|
|
|
this.configuration.PreferContiguousImageBuffers, |
|
|
|
AllocationOptions.Clean); |
|
|
|
this.paddedProxyPixelRow = allocator.Allocate<TPixel>(frame.PixelWidth + 3); |
|
|
|
|
|
|
|
// component processors from spectral to Rgba32
|
|
|
|
@ -215,4 +216,4 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder |
|
|
|
this.pixelBuffer?.Dispose(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |