Move SkiaSharp related code to Jellyfin.Drawing and IImageEncoder

This commit is contained in:
Nick
2023-05-30 14:23:02 -07:00
parent 049361b66c
commit 0e2c362078
5 changed files with 131 additions and 65 deletions

View File

@@ -2,6 +2,7 @@
using System;
using System.Collections.Generic;
using MediaBrowser.Model.Configuration;
using MediaBrowser.Model.Drawing;
namespace MediaBrowser.Controller.Drawing
@@ -81,5 +82,15 @@ namespace MediaBrowser.Controller.Drawing
/// <param name="posters">The list of poster paths.</param>
/// <param name="backdrops">The list of backdrop paths.</param>
void CreateSplashscreen(IReadOnlyList<string> posters, IReadOnlyList<string> backdrops);
/// <summary>
/// Creates a new jpeg trickplay grid image.
/// </summary>
/// <param name="options">The options to use when creating the image. Width and Height are a quantity of tiles in this case, not pixels.</param>
/// <param name="quality">The image encode quality.</param>
/// <param name="imgWidth">The width of a single trickplay image.</param>
/// <param name="imgHeight">Optional height of a single trickplay image, if it is known.</param>
/// <returns>Height of single decoded trickplay image.</returns>
int CreateTrickplayGrid(ImageCollageOptions options, int quality, int imgWidth, int? imgHeight);
}
}