Move logic of computing Blurhash components to ImageProcessor

Also rename last few instances of GetImageHash to GetImageBlurHash for clarity
This commit is contained in:
Vasily
2020-06-01 18:12:49 +03:00
parent 58f099c0e2
commit 26eef1bbf8
5 changed files with 24 additions and 20 deletions

View File

@@ -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.