-
-
Notifications
You must be signed in to change notification settings - Fork 853
Commit
V2 - Clear Pixel Buffers on Decode.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,7 +116,8 @@ public override void InjectFrameData(JpegFrame frame, IRawJpegData jpegData) | |
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 @@ public void Dispose() | |
this.pixelBuffer?.Dispose(); | ||
} | ||
} | ||
} | ||
} | ||
Check warning on line 219 in src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter{TPixel}.cs GitHub Actions / Build (ubuntu-latest, net6.0, 6.0.x, true, -x64, false)
Check warning on line 219 in src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter{TPixel}.cs GitHub Actions / Build (ubuntu-latest, net5.0, -x64, false)
Check warning on line 219 in src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter{TPixel}.cs GitHub Actions / Build (ubuntu-latest, netcoreapp3.1, -x64, false)
Check warning on line 219 in src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter{TPixel}.cs GitHub Actions / Build (macos-latest, net5.0, -x64, false)
Check warning on line 219 in src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter{TPixel}.cs GitHub Actions / Build (macos-latest, net6.0, 6.0.x, true, -x64, false)
Check warning on line 219 in src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter{TPixel}.cs GitHub Actions / Build (windows-latest, net5.0, -x64, false)
Check warning on line 219 in src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter{TPixel}.cs GitHub Actions / Build (windows-latest, net6.0, 6.0.x, true, -x64, false)
Check warning on line 219 in src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter{TPixel}.cs GitHub Actions / Build (windows-latest, netcoreapp3.1, -x64, false)
Check warning on line 219 in src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter{TPixel}.cs GitHub Actions / Build (windows-latest, net472, -x64, false)
Check warning on line 219 in src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter{TPixel}.cs GitHub Actions / Build (windows-latest, net472, -x86, false)
Check warning on line 219 in src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter{TPixel}.cs GitHub Actions / Build (macos-latest, netcoreapp3.1, -x64, false)
|