Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed all occurenceas of var #2803

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update SharedInfrastructure
stefannikolei committed Oct 7, 2024
commit 0a22179afd2d4f9f2b78e55d9964aa8911ebb005
2 changes: 1 addition & 1 deletion shared-infrastructure

Unchanged files with check annotations Beta

/// </summary>
private static readonly int[] ScaledBlockSizes =
[
// 8 => 1, 1/8 of the original size

Check failure on line 16 in src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter.cs

GitHub Actions / Build (false, ubuntu-latest, net8.0, 8.0.x, -x64, false)

Check failure on line 16 in src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter.cs

GitHub Actions / Build (false, ubuntu-latest, net8.0, 8.0.x, -x64, false)

1,
// 8 => 2, 1/4 of the original size
return
[
// YCbCr 4:4:4

Check failure on line 40 in src/ImageSharp/Formats/Jpeg/JpegEncoderCore.FrameConfig.cs

GitHub Actions / Build (false, ubuntu-latest, net8.0, 8.0.x, -x64, false)

new(
JpegColorSpace.YCbCr,
JpegColorType.YCbCrRatio444,
{
private static readonly int[][] BiasMatrices =
[
// [luma-ac,luma-dc,chroma][dc,ac]

Check failure on line 10 in src/ImageSharp/Formats/Webp/Lossy/Vp8Matrix.cs

GitHub Actions / Build (false, ubuntu-latest, net8.0, 8.0.x, -x64, false)

[96, 110],
[96, 108],
[110, 115]
// the higher, the "easier" the macroblock is to compress.
public static readonly int[] Vp8DspScan =
[
// Luma

Check failure on line 23 in src/ImageSharp/Formats/Webp/WebpLookupTables.cs

GitHub Actions / Build (false, ubuntu-latest, net8.0, 8.0.x, -x64, false)

0 + (0 * WebpConstants.Bps), 4 + (0 * WebpConstants.Bps), 8 + (0 * WebpConstants.Bps), 12 + (0 * WebpConstants.Bps),
0 + (4 * WebpConstants.Bps), 4 + (4 * WebpConstants.Bps), 8 + (4 * WebpConstants.Bps), 12 + (4 * WebpConstants.Bps),
0 + (8 * WebpConstants.Bps), 4 + (8 * WebpConstants.Bps), 8 + (8 * WebpConstants.Bps), 12 + (8 * WebpConstants.Bps),
public static readonly short[] Vp8Scan =
[
// Luma

Check failure on line 35 in src/ImageSharp/Formats/Webp/WebpLookupTables.cs

GitHub Actions / Build (false, ubuntu-latest, net8.0, 8.0.x, -x64, false)

0 + (0 * WebpConstants.Bps), 4 + (0 * WebpConstants.Bps), 8 + (0 * WebpConstants.Bps), 12 + (0 * WebpConstants.Bps),
0 + (4 * WebpConstants.Bps), 4 + (4 * WebpConstants.Bps), 8 + (4 * WebpConstants.Bps), 12 + (4 * WebpConstants.Bps),
0 + (8 * WebpConstants.Bps), 4 + (8 * WebpConstants.Bps), 8 + (8 * WebpConstants.Bps), 12 + (8 * WebpConstants.Bps),
// This uses C#'s compiler optimization to refer to assembly's static data directly.
public static ReadOnlySpan<byte> Norm =>
[
// renorm_sizes[i] = 8 - log2(i)

Check failure on line 244 in src/ImageSharp/Formats/Webp/WebpLookupTables.cs

GitHub Actions / Build (false, ubuntu-latest, net8.0, 8.0.x, -x64, false)

7, 6, 6, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
// This uses C#'s compiler optimization to refer to assembly's static data directly.
public static ReadOnlySpan<byte> NewRange =>
[
// range = ((range + 1) << kVP8Log2Range[range]) - 1

Check failure on line 259 in src/ImageSharp/Formats/Webp/WebpLookupTables.cs

GitHub Actions / Build (false, ubuntu-latest, net8.0, 8.0.x, -x64, false)

127, 127, 191, 127, 159, 191, 223, 127, 143, 159, 175, 191, 207, 223, 239,
127, 135, 143, 151, 159, 167, 175, 183, 191, 199, 207, 215, 223, 231, 239,
247, 127, 131, 135, 139, 143, 147, 151, 155, 159, 163, 167, 171, 175, 179,
/// </summary>
private static IReadOnlyList<Vector4[]> KernelComponents { get; } =
[
// 1 component

Check failure on line 31 in src/ImageSharp/Processing/Processors/Convolution/Parameters/BokehBlurKernelDataProvider.cs

GitHub Actions / Build (false, ubuntu-latest, net8.0, 8.0.x, -x64, false)

[new Vector4(0.862325f, 1.624835f, 0.767583f, 1.862321f)],
// 2 components
Mode = PixOrCopyMode.Copy,
BgraOrDistance = distance,
Len = len
};

Check failure on line 39 in src/ImageSharp/Formats/Webp/Lossless/PixOrCopy.cs

GitHub Actions / Build (false, ubuntu-latest, net8.0, 8.0.x, -x64, false)

public int Literal(int component) => (int)(this.BgraOrDistance >> (component * 8)) & 0xFF;