Browse Source

fix style cop issues

pull/299/head
Scott Williams 9 years ago
parent
commit
88f142969a
  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 increment: Minor
prevent-increment-of-merged-branch-version: false prevent-increment-of-merged-branch-version: false
track-merge-target: true 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: ignore:
sha: [] sha: []

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

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

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

@ -1,9 +1,11 @@
namespace SixLabors.ImageSharp.Formats.Jpeg.PdfJsPort.Components // Copyright (c) Six Labors and contributors.
{ // Licensed under the Apache License, Version 2.0.
using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.PixelFormats; using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Jpeg.PdfJsPort.Components
{
/// <summary> /// <summary>
/// Provides 8-bit lookup tables for converting from YCbCr to Rgb colorspace. /// Provides 8-bit lookup tables for converting from YCbCr to Rgb colorspace.
/// Methods to build the tables are based on libjpeg implementation. /// 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 // Copyright (c) Six Labors and contributors.
{ // Licensed under the Apache License, Version 2.0.
using System;
using System.Buffers;
using System.Numerics;
using System.Runtime.CompilerServices;
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 public partial class RgbToYCbCr
{ {
private const int InputColorCount = 64; private const int InputColorCount = 64;

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

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

Loading…
Cancel
Save