mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-31 14:33:54 -04:00
Use file-scoped namespaces in Jellyfin.Drawing.Skia
This commit is contained in:
parent
6c7225b943
commit
cafc454cfb
@ -2,8 +2,8 @@ using System;
|
|||||||
using MediaBrowser.Model.Drawing;
|
using MediaBrowser.Model.Drawing;
|
||||||
using SkiaSharp;
|
using SkiaSharp;
|
||||||
|
|
||||||
namespace Jellyfin.Drawing.Skia
|
namespace Jellyfin.Drawing.Skia;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Static helper class used to draw percentage-played indicators on images.
|
/// Static helper class used to draw percentage-played indicators on images.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -33,4 +33,3 @@ namespace Jellyfin.Drawing.Skia
|
|||||||
canvas.DrawRect(SKRect.Create(0, (float)endY - IndicatorHeight, Convert.ToInt32(foregroundWidth), endY), paint);
|
canvas.DrawRect(SKRect.Create(0, (float)endY - IndicatorHeight, Convert.ToInt32(foregroundWidth), endY), paint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
using MediaBrowser.Model.Drawing;
|
using MediaBrowser.Model.Drawing;
|
||||||
using SkiaSharp;
|
using SkiaSharp;
|
||||||
|
|
||||||
namespace Jellyfin.Drawing.Skia
|
namespace Jellyfin.Drawing.Skia;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Static helper class for drawing 'played' indicators.
|
/// Static helper class for drawing 'played' indicators.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -45,4 +45,3 @@ namespace Jellyfin.Drawing.Skia
|
|||||||
canvas.DrawText(Text, (float)x - 12, OffsetFromTopRightCorner + 12, paint);
|
canvas.DrawText(Text, (float)x - 12, OffsetFromTopRightCorner + 12, paint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using SkiaSharp;
|
using SkiaSharp;
|
||||||
|
|
||||||
namespace Jellyfin.Drawing.Skia
|
namespace Jellyfin.Drawing.Skia;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents errors that occur during interaction with Skia codecs.
|
/// Represents errors that occur during interaction with Skia codecs.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -42,4 +42,3 @@ namespace Jellyfin.Drawing.Skia
|
|||||||
CodecResult,
|
CodecResult,
|
||||||
base.ToString());
|
base.ToString());
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -12,8 +12,8 @@ using Microsoft.Extensions.Logging;
|
|||||||
using SkiaSharp;
|
using SkiaSharp;
|
||||||
using SKSvg = SkiaSharp.Extended.Svg.SKSvg;
|
using SKSvg = SkiaSharp.Extended.Svg.SKSvg;
|
||||||
|
|
||||||
namespace Jellyfin.Drawing.Skia
|
namespace Jellyfin.Drawing.Skia;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Image encoder that uses <see cref="SkiaSharp"/> to manipulate images.
|
/// Image encoder that uses <see cref="SkiaSharp"/> to manipulate images.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -542,4 +542,3 @@ namespace Jellyfin.Drawing.Skia
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Jellyfin.Drawing.Skia
|
namespace Jellyfin.Drawing.Skia;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents errors that occur during interaction with Skia.
|
/// Represents errors that occur during interaction with Skia.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -36,4 +36,3 @@ namespace Jellyfin.Drawing.Skia
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using SkiaSharp;
|
using SkiaSharp;
|
||||||
|
|
||||||
namespace Jellyfin.Drawing.Skia
|
namespace Jellyfin.Drawing.Skia;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Class containing helper methods for working with SkiaSharp.
|
/// Class containing helper methods for working with SkiaSharp.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -44,4 +44,3 @@ namespace Jellyfin.Drawing.Skia
|
|||||||
return bitmap;
|
return bitmap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -2,8 +2,8 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using SkiaSharp;
|
using SkiaSharp;
|
||||||
|
|
||||||
namespace Jellyfin.Drawing.Skia
|
namespace Jellyfin.Drawing.Skia;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to build the splashscreen.
|
/// Used to build the splashscreen.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -145,4 +145,3 @@ namespace Jellyfin.Drawing.Skia
|
|||||||
return bitmap;
|
return bitmap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -4,8 +4,8 @@ using System.IO;
|
|||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using SkiaSharp;
|
using SkiaSharp;
|
||||||
|
|
||||||
namespace Jellyfin.Drawing.Skia
|
namespace Jellyfin.Drawing.Skia;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to build collages of multiple images arranged in vertical strips.
|
/// Used to build collages of multiple images arranged in vertical strips.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -183,4 +183,3 @@ namespace Jellyfin.Drawing.Skia
|
|||||||
return bitmap;
|
return bitmap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -2,8 +2,8 @@ using System.Globalization;
|
|||||||
using MediaBrowser.Model.Drawing;
|
using MediaBrowser.Model.Drawing;
|
||||||
using SkiaSharp;
|
using SkiaSharp;
|
||||||
|
|
||||||
namespace Jellyfin.Drawing.Skia
|
namespace Jellyfin.Drawing.Skia;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Static helper class for drawing unplayed count indicators.
|
/// Static helper class for drawing unplayed count indicators.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -61,4 +61,3 @@ namespace Jellyfin.Drawing.Skia
|
|||||||
canvas.DrawText(text, x, y, paint);
|
canvas.DrawText(text, x, y, paint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user