14 lines
583 B
C#
14 lines
583 B
C#
namespace ErsatzTV.Core.Interfaces.Images;
|
|
|
|
/// <summary>
|
|
/// Validates that a stream is a decodable image within the decode budget, throwing if not.
|
|
/// Used by the logo save path and the artwork upload path (neither needs the decoded pixels,
|
|
/// only "is this safe to cache"). The graphics engine uses the static
|
|
/// RemoteImageValidator.DecodeAndValidate instead, which returns the Image it composites.
|
|
/// (ersatztv#525)
|
|
/// </summary>
|
|
public interface IRemoteImageValidator
|
|
{
|
|
Task Validate(Stream stream, Uri uri, CancellationToken cancellationToken);
|
|
}
|