diff options
| author | Vasily <just.one.man@yandex.ru> | 2020-06-01 18:12:49 +0300 |
|---|---|---|
| committer | Vasily <just.one.man@yandex.ru> | 2020-06-01 18:12:49 +0300 |
| commit | 26eef1bbf823e6f9fc22b11d95a17b1370b21842 (patch) | |
| tree | 78d200c9530bfb2bd9c7c5a6fc42d1dc00796b45 /MediaBrowser.Controller/Drawing/IImageEncoder.cs | |
| parent | 58f099c0e2fec23d861bc9bdb76ac0d6d8e239b7 (diff) | |
Move logic of computing Blurhash components to ImageProcessor
Also rename last few instances of GetImageHash to GetImageBlurHash for clarity
Diffstat (limited to 'MediaBrowser.Controller/Drawing/IImageEncoder.cs')
| -rw-r--r-- | MediaBrowser.Controller/Drawing/IImageEncoder.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Drawing/IImageEncoder.cs b/MediaBrowser.Controller/Drawing/IImageEncoder.cs index 4baec6204..e09ccd204 100644 --- a/MediaBrowser.Controller/Drawing/IImageEncoder.cs +++ b/MediaBrowser.Controller/Drawing/IImageEncoder.cs @@ -46,9 +46,11 @@ namespace MediaBrowser.Controller.Drawing /// <summary> /// Gets the blurhash of an image. /// </summary> + /// <param name="xComp">Amount of X components of DCT to take.</param> + /// <param name="yComp">Amount of Y components of DCT to take.</param> /// <param name="path">The filepath of the image.</param> /// <returns>The blurhash.</returns> - string GetImageHash(string path); + string GetImageBlurHash(int xComp, int yComp, string path); /// <summary> /// Encode an image. |
