jellyfin/MediaBrowser.Controller/Drawing/IImageEncoder.cs

51 lines
1.8 KiB
C#
Raw Normal View History

using System;
2019-02-06 20:31:41 +00:00
using System.Collections.Generic;
2018-12-27 23:27:57 +00:00
using MediaBrowser.Model.Drawing;
namespace MediaBrowser.Controller.Drawing
{
public interface IImageEncoder
{
/// <summary>
/// Gets the supported input formats.
/// </summary>
/// <value>The supported input formats.</value>
2019-02-06 20:31:41 +00:00
IReadOnlyCollection<string> SupportedInputFormats { get; }
2018-12-27 23:27:57 +00:00
/// <summary>
/// Gets the supported output formats.
/// </summary>
/// <value>The supported output formats.</value>
2019-02-06 20:31:41 +00:00
IReadOnlyCollection<ImageFormat> SupportedOutputFormats { get; }
2018-12-27 23:27:57 +00:00
/// <summary>
/// Encodes the image.
/// </summary>
string EncodeImage(string inputPath, DateTime dateModified, string outputPath, bool autoOrient, ImageOrientation? orientation, int quality, ImageProcessingOptions options, ImageFormat outputFormat);
/// <summary>
/// Creates the image collage.
/// </summary>
/// <param name="options">The options.</param>
void CreateImageCollage(ImageCollageOptions options);
/// <summary>
/// Gets the name.
/// </summary>
/// <value>The name.</value>
string Name { get; }
/// <summary>
/// Gets a value indicating whether [supports image collage creation].
/// </summary>
/// <value><c>true</c> if [supports image collage creation]; otherwise, <c>false</c>.</value>
bool SupportsImageCollageCreation { get; }
/// <summary>
/// Gets a value indicating whether [supports image encoding].
/// </summary>
/// <value><c>true</c> if [supports image encoding]; otherwise, <c>false</c>.</value>
bool SupportsImageEncoding { get; }
ImageDimensions GetImageSize(string path);
2018-12-27 23:27:57 +00:00
}
}