jellyfin-server/MediaBrowser.Controller/Drawing/IImageEncoder.cs

57 lines
2.2 KiB
C#
Raw Normal View History

2016-11-11 17:33:10 +00:00
using System;
2015-04-08 14:38:02 +00:00
using MediaBrowser.Model.Drawing;
2016-11-11 17:33:10 +00:00
namespace MediaBrowser.Controller.Drawing
2015-04-08 14:38:02 +00:00
{
public interface IImageEncoder : IDisposable
{
/// <summary>
/// Gets the supported input formats.
/// </summary>
/// <value>The supported input formats.</value>
string[] SupportedInputFormats { get; }
/// <summary>
/// Gets the supported output formats.
/// </summary>
/// <value>The supported output formats.</value>
ImageFormat[] SupportedOutputFormats { get; }
/// <summary>
/// Encodes the image.
/// </summary>
/// <param name="inputPath">The input path.</param>
/// <param name="outputPath">The output path.</param>
2016-01-21 16:53:03 +00:00
/// <param name="autoOrient">if set to <c>true</c> [automatic orient].</param>
2015-04-08 14:38:02 +00:00
/// <param name="width">The width.</param>
/// <param name="height">The height.</param>
/// <param name="quality">The quality.</param>
/// <param name="options">The options.</param>
2015-11-09 18:18:37 +00:00
/// <param name="outputFormat">The output format.</param>
2016-01-21 16:53:03 +00:00
void EncodeImage(string inputPath, string outputPath, bool autoOrient, int width, int height, int quality, ImageProcessingOptions options, ImageFormat outputFormat);
2015-04-08 14:38:02 +00:00
/// <summary>
/// Creates the image collage.
/// </summary>
/// <param name="options">The options.</param>
void CreateImageCollage(ImageCollageOptions options);
2015-04-09 05:20:23 +00:00
/// <summary>
/// Gets the name.
/// </summary>
/// <value>The name.</value>
string Name { get; }
2015-10-26 05:29:32 +00:00
/// <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; }
2017-05-12 04:57:09 +00:00
ImageSize GetImageSize(string path);
2015-04-08 14:38:02 +00:00
}
}