Use file-scoped namespaces in Jellyfin.Drawing

This commit is contained in:
Patrick Barron 2023-01-10 19:38:57 -05:00
parent 16e33665a2
commit 6c7225b943
2 changed files with 510 additions and 512 deletions

View File

@ -19,13 +19,13 @@ using MediaBrowser.Model.Net;
using Microsoft.Extensions.Logging;
using Photo = MediaBrowser.Controller.Entities.Photo;
namespace Jellyfin.Drawing
namespace Jellyfin.Drawing;
/// <summary>
/// Class ImageProcessor.
/// </summary>
public sealed class ImageProcessor : IImageProcessor, IDisposable
{
/// <summary>
/// Class ImageProcessor.
/// </summary>
public sealed class ImageProcessor : IImageProcessor, IDisposable
{
// Increment this when there's a change requiring caches to be invalidated
private const char Version = '3';
@ -565,5 +565,4 @@ namespace Jellyfin.Drawing
_disposed = true;
}
}
}

View File

@ -3,13 +3,13 @@ using System.Collections.Generic;
using MediaBrowser.Controller.Drawing;
using MediaBrowser.Model.Drawing;
namespace Jellyfin.Drawing
namespace Jellyfin.Drawing;
/// <summary>
/// A fallback implementation of <see cref="IImageEncoder" />.
/// </summary>
public class NullImageEncoder : IImageEncoder
{
/// <summary>
/// A fallback implementation of <see cref="IImageEncoder" />.
/// </summary>
public class NullImageEncoder : IImageEncoder
{
/// <inheritdoc />
public IReadOnlyCollection<string> SupportedInputFormats
=> new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "png", "jpeg", "jpg" };
@ -54,5 +54,4 @@ namespace Jellyfin.Drawing
{
throw new NotImplementedException();
}
}
}