< Summary - Jellyfin

Information
Class: Jellyfin.Drawing.NullImageEncoder
Assembly: Jellyfin.Drawing
File(s): /srv/git/jellyfin/src/Jellyfin.Drawing/NullImageEncoder.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 11
Coverable lines: 11
Total lines: 63
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_SupportedInputFormats()100%210%
get_SupportedOutputFormats()100%210%
get_Name()100%210%
get_SupportsImageCollageCreation()100%210%
get_SupportsImageEncoding()100%210%
GetImageSize(...)100%210%
EncodeImage(...)100%210%
CreateImageCollage(...)100%210%
CreateSplashscreen(...)100%210%
CreateTrickplayTile(...)100%210%
GetImageBlurHash(...)100%210%

File(s)

/srv/git/jellyfin/src/Jellyfin.Drawing/NullImageEncoder.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using MediaBrowser.Controller.Drawing;
 4using MediaBrowser.Model.Drawing;
 5
 6namespace Jellyfin.Drawing;
 7
 8/// <summary>
 9/// A fallback implementation of <see cref="IImageEncoder" />.
 10/// </summary>
 11public class NullImageEncoder : IImageEncoder
 12{
 13    /// <inheritdoc />
 14    public IReadOnlyCollection<string> SupportedInputFormats
 015        => new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "png", "jpeg", "jpg" };
 16
 17    /// <inheritdoc />
 18    public IReadOnlyCollection<ImageFormat> SupportedOutputFormats
 019        => new HashSet<ImageFormat>() { ImageFormat.Jpg, ImageFormat.Png };
 20
 21    /// <inheritdoc />
 022    public string Name => "Null Image Encoder";
 23
 24    /// <inheritdoc />
 025    public bool SupportsImageCollageCreation => false;
 26
 27    /// <inheritdoc />
 028    public bool SupportsImageEncoding => false;
 29
 30    /// <inheritdoc />
 31    public ImageDimensions GetImageSize(string path)
 032        => throw new NotImplementedException();
 33
 34    /// <inheritdoc />
 35    public string EncodeImage(string inputPath, DateTime dateModified, string outputPath, bool autoOrient, ImageOrientat
 36    {
 037        throw new NotImplementedException();
 38    }
 39
 40    /// <inheritdoc />
 41    public void CreateImageCollage(ImageCollageOptions options, string? libraryName)
 42    {
 043        throw new NotImplementedException();
 44    }
 45
 46    /// <inheritdoc />
 47    public void CreateSplashscreen(IReadOnlyList<string> posters, IReadOnlyList<string> backdrops)
 48    {
 049        throw new NotImplementedException();
 50    }
 51
 52    /// <inheritdoc />
 53    public int CreateTrickplayTile(ImageCollageOptions options, int quality, int imgWidth, int? imgHeight)
 54    {
 055        throw new NotImplementedException();
 56    }
 57
 58    /// <inheritdoc />
 59    public string GetImageBlurHash(int xComp, int yComp, string path)
 60    {
 061        throw new NotImplementedException();
 62    }
 63}