Browse Source

fix style cop issues

af/merge-core
Scott Williams 9 years ago
parent
commit
4929fb5297
  1. 8
      gitversion.yml
  2. 12
      src/ImageSharp/Formats/Jpeg/GolangPort/OldJpegDecoder.cs
  3. 11
      src/ImageSharp/Formats/Jpeg/PdfJsPort/Components/IDCT.cs
  4. 10
      src/ImageSharp/Formats/Jpeg/PdfJsPort/Components/YCbCrToRgbTables.cs
  5. 18
      tests/ImageSharp.Benchmarks/Color/RgbToYCbCr.cs
  6. 14
      tests/ImageSharp.Benchmarks/General/RoundSinglePrecisionBlocks.cs

8
gitversion.yml

@ -9,5 +9,13 @@ branches:
increment: Minor
prevent-increment-of-merged-branch-version: false
track-merge-target: true
branch:
regex: '.*'
mode: ContinuousDeployment
tag: ci
increment: Patch
prevent-increment-of-merged-branch-version: false
track-merge-target: true
is-release-branch: false
ignore:
sha: []

12
src/ImageSharp/Formats/Jpeg/GolangPort/OldJpegDecoder.cs

@ -1,9 +1,11 @@
namespace SixLabors.ImageSharp.Formats.Jpeg.GolangPort
{
using System.IO;
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using System.IO;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Jpeg.GolangPort
{
/// <summary>
/// Image decoder for generating an image out of a jpg stream.
/// </summary>
@ -19,7 +21,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.GolangPort
where TPixel : struct, IPixel<TPixel>
{
Guard.NotNull(stream, nameof(stream));
using (var decoder = new OldJpegDecoderCore(configuration, this))
{
return decoder.Decode<TPixel>(stream);

11
src/ImageSharp/Formats/Jpeg/PdfJsPort/Components/IDCT.cs

@ -1,8 +1,11 @@
namespace SixLabors.ImageSharp.Formats.Jpeg.PdfJsPort.Components
{
using System;
using System.Runtime.CompilerServices;
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using System;
using System.Runtime.CompilerServices;
namespace SixLabors.ImageSharp.Formats.Jpeg.PdfJsPort.Components
{
/// <summary>
/// Performs the inverse Descrete Cosine Transform on each frame component.
/// </summary>

10
src/ImageSharp/Formats/Jpeg/PdfJsPort/Components/YCbCrToRgbTables.cs

@ -1,9 +1,11 @@
namespace SixLabors.ImageSharp.Formats.Jpeg.PdfJsPort.Components
{
using System.Runtime.CompilerServices;
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Jpeg.PdfJsPort.Components
{
/// <summary>
/// Provides 8-bit lookup tables for converting from YCbCr to Rgb colorspace.
/// Methods to build the tables are based on libjpeg implementation.

18
tests/ImageSharp.Benchmarks/Color/RgbToYCbCr.cs

@ -1,14 +1,16 @@
namespace SixLabors.ImageSharp.Benchmarks
{
using System;
using System.Buffers;
using System.Numerics;
using System.Runtime.CompilerServices;
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using BenchmarkDotNet.Attributes;
using System;
using System.Buffers;
using System.Numerics;
using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.Formats.Jpg;
using BenchmarkDotNet.Attributes;
using SixLabors.ImageSharp.Formats.Jpeg.Common;
namespace SixLabors.ImageSharp.Benchmarks
{
public partial class RgbToYCbCr
{
private const int InputColorCount = 64;

14
tests/ImageSharp.Benchmarks/General/RoundSinglePrecisionBlocks.cs

@ -1,12 +1,14 @@
namespace SixLabors.ImageSharp.Benchmarks.General
{
using System.Numerics;
using System.Runtime.CompilerServices;
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using BenchmarkDotNet.Attributes;
using System.Numerics;
using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.Formats.Jpg;
using BenchmarkDotNet.Attributes;
using SixLabors.ImageSharp.Formats.Jpeg.Common;
namespace SixLabors.ImageSharp.Benchmarks.General
{
/// <summary>
/// The goal of this benchmark is to measure the following Jpeg-related scenario:
/// - Take 2 blocks of float-s

Loading…
Cancel
Save