|
|
|
@ -372,8 +372,7 @@ namespace SixLabors.ImageSharp.Tests |
|
|
|
return new Image<TPixel>(42, 42); |
|
|
|
} |
|
|
|
|
|
|
|
public Task<Image<TPixel>> DecodeAsync<TPixel>(Configuration configuration, Stream stream, |
|
|
|
CancellationToken cancellationToken) |
|
|
|
public Task<Image<TPixel>> DecodeAsync<TPixel>(Configuration configuration, Stream stream, CancellationToken cancellationToken) |
|
|
|
where TPixel : unmanaged, IPixel<TPixel> |
|
|
|
{ |
|
|
|
InvocationCountsAsync[this.callerName]++; |
|
|
|
@ -393,8 +392,8 @@ namespace SixLabors.ImageSharp.Tests |
|
|
|
|
|
|
|
public Image Decode(Configuration configuration, Stream stream) => this.Decode<Rgba32>(configuration, stream); |
|
|
|
|
|
|
|
public async Task<Image> DecodeAsync(Configuration configuration, Stream stream, |
|
|
|
CancellationToken cancellationToken) => await this.DecodeAsync<Rgba32>(configuration, stream, TODO); |
|
|
|
public async Task<Image> DecodeAsync(Configuration configuration, Stream stream, CancellationToken cancellationToken) |
|
|
|
=> await this.DecodeAsync<Rgba32>(configuration, stream, cancellationToken); |
|
|
|
} |
|
|
|
|
|
|
|
private class TestDecoderWithParameters : IImageDecoder |
|
|
|
@ -428,8 +427,7 @@ namespace SixLabors.ImageSharp.Tests |
|
|
|
return new Image<TPixel>(42, 42); |
|
|
|
} |
|
|
|
|
|
|
|
public Task<Image<TPixel>> DecodeAsync<TPixel>(Configuration configuration, Stream stream, |
|
|
|
CancellationToken cancellationToken) |
|
|
|
public Task<Image<TPixel>> DecodeAsync<TPixel>(Configuration configuration, Stream stream, CancellationToken cancellationToken) |
|
|
|
where TPixel : unmanaged, IPixel<TPixel> |
|
|
|
{ |
|
|
|
InvocationCountsAsync[this.callerName]++; |
|
|
|
@ -449,8 +447,8 @@ namespace SixLabors.ImageSharp.Tests |
|
|
|
|
|
|
|
public Image Decode(Configuration configuration, Stream stream) => this.Decode<Rgba32>(configuration, stream); |
|
|
|
|
|
|
|
public async Task<Image> DecodeAsync(Configuration configuration, Stream stream, |
|
|
|
CancellationToken cancellationToken) => await this.DecodeAsync<Rgba32>(configuration, stream, TODO); |
|
|
|
public async Task<Image> DecodeAsync(Configuration configuration, Stream stream, CancellationToken cancellationToken) |
|
|
|
=> await this.DecodeAsync<Rgba32>(configuration, stream, cancellationToken); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|