diff options
| author | Nick <20588554+nicknsy@users.noreply.github.com> | 2023-05-30 14:23:02 -0700 |
|---|---|---|
| committer | Nick <20588554+nicknsy@users.noreply.github.com> | 2023-06-22 16:23:52 -0700 |
| commit | 0e2c362078c5b0babaa0fd254106452e6d67ebe8 (patch) | |
| tree | c7db15c260b4a9576ed278d5b7d84658f3df98fe /MediaBrowser.Controller/Drawing | |
| parent | 049361b66cefe7cb26364f9c39ac57abc7826752 (diff) | |
Move SkiaSharp related code to Jellyfin.Drawing and IImageEncoder
Diffstat (limited to 'MediaBrowser.Controller/Drawing')
| -rw-r--r-- | MediaBrowser.Controller/Drawing/IImageEncoder.cs | 11 |
1 files changed, 11 insertions, 0 deletions
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 /// <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); } } |
