Skip to content

Commit 57d0793

Browse files
committed
Fixed build warnings / errors
1 parent 5d65ef0 commit 57d0793

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/ImageSharp/Formats/Jpeg/JpegDecoderCore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public JpegDecoderCore(JpegDecoderOptions options)
125125
}
126126

127127
/// <summary>
128-
/// The only supported precision
128+
/// Gets the only supported precisions
129129
/// </summary>
130130
// Refers to assembly's static data segment, no allocation occurs.
131131
private static ReadOnlySpan<byte> SupportedPrecisions => new byte[] { 8, 12 };

src/ImageSharp/Formats/Webp/Lossy/WebpLossyDecoder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,9 @@ private void ReconstructRow(Vp8Decoder dec)
361361
}
362362
}
363363

364+
Span<int> scratch = stackalloc int[16];
365+
Span<byte> scratchBytes = stackalloc byte[4];
366+
364367
// Reconstruct one row.
365368
for (int mbx = 0; mbx < dec.MbWidth; mbx++)
366369
{
@@ -399,9 +402,6 @@ private void ReconstructRow(Vp8Decoder dec)
399402
topYuv.V.CopyTo(yuv[(vOff - WebpConstants.Bps)..]);
400403
}
401404

402-
Span<int> scratch = stackalloc int[16];
403-
Span<byte> scratchBytes = stackalloc byte[4];
404-
405405
// Predict and add residuals.
406406
if (block.IsI4x4)
407407
{

src/ImageSharp/Formats/Webp/WebpDecoderCore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ private WebpImageInfo ReadVp8Info(BufferedReadStream stream, ImageMetadata metad
228228
/// <param name="chunkType">The chunk type.</param>
229229
/// <param name="features">The webp image features.</param>
230230
/// <param name="ignoreAlpha">For identify, the alpha data should not be read.</param>
231-
/// <param name="buffer">Temporary buffer.</param></param>
231+
/// <param name="buffer">Temporary buffer.</param>
232232
/// <returns>true, if its a alpha chunk.</returns>
233233
private bool ParseOptionalExtendedChunks(
234234
BufferedReadStream stream,

0 commit comments

Comments
 (0)