From 0e2c362078c5b0babaa0fd254106452e6d67ebe8 Mon Sep 17 00:00:00 2001 From: Nick <20588554+nicknsy@users.noreply.github.com> Date: Tue, 30 May 2023 14:23:02 -0700 Subject: Move SkiaSharp related code to Jellyfin.Drawing and IImageEncoder --- MediaBrowser.Controller/Drawing/IImageEncoder.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'MediaBrowser.Controller/Drawing/IImageEncoder.cs') diff --git a/MediaBrowser.Controller/Drawing/IImageEncoder.cs b/MediaBrowser.Controller/Drawing/IImageEncoder.cs index e5c8ebfaf..42c680761 100644 --- a/MediaBrowser.Controller/Drawing/IImageEncoder.cs +++ b/MediaBrowser.Controller/Drawing/IImageEncoder.cs @@ -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 /// The list of poster paths. /// The list of backdrop paths. void CreateSplashscreen(IReadOnlyList posters, IReadOnlyList backdrops); + + /// + /// Creates a new jpeg trickplay grid image. + /// + /// The options to use when creating the image. Width and Height are a quantity of tiles in this case, not pixels. + /// The image encode quality. + /// The width of a single trickplay image. + /// Optional height of a single trickplay image, if it is known. + /// Height of single decoded trickplay image. + int CreateTrickplayGrid(ImageCollageOptions options, int quality, int imgWidth, int? imgHeight); } } -- cgit v1.2.3