aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasily <just.one.man@yandex.ru>2020-05-28 17:23:16 +0300
committerVasily <just.one.man@yandex.ru>2020-05-28 17:23:16 +0300
commita76cee7a953a77794ca9824cdff581a350fcf0ae (patch)
tree045c5b61f8ee3f1031e48c474437151313e32d82
parentf30b07130fc21247e3c6edd61d004a9286c5340c (diff)
Update BlurHashSharp to 1.0.1, remove workaround
-rw-r--r--Jellyfin.Drawing.Skia/Jellyfin.Drawing.Skia.csproj2
-rw-r--r--Jellyfin.Drawing.Skia/SkiaEncoder.cs5
2 files changed, 1 insertions, 6 deletions
diff --git a/Jellyfin.Drawing.Skia/Jellyfin.Drawing.Skia.csproj b/Jellyfin.Drawing.Skia/Jellyfin.Drawing.Skia.csproj
index 221346b68..d3fdb5de4 100644
--- a/Jellyfin.Drawing.Skia/Jellyfin.Drawing.Skia.csproj
+++ b/Jellyfin.Drawing.Skia/Jellyfin.Drawing.Skia.csproj
@@ -18,7 +18,7 @@
</ItemGroup>
<ItemGroup>
- <PackageReference Include="BlurHashSharp" Version="1.0.0" />
+ <PackageReference Include="BlurHashSharp" Version="1.0.1" />
<PackageReference Include="BlurHashSharp.SkiaSharp" Version="1.0.0" />
<PackageReference Include="SkiaSharp" Version="1.68.1" />
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="1.68.1" />
diff --git a/Jellyfin.Drawing.Skia/SkiaEncoder.cs b/Jellyfin.Drawing.Skia/SkiaEncoder.cs
index 85461ca4e..7f0da2c9e 100644
--- a/Jellyfin.Drawing.Skia/SkiaEncoder.cs
+++ b/Jellyfin.Drawing.Skia/SkiaEncoder.cs
@@ -257,11 +257,6 @@ namespace Jellyfin.Drawing.Skia
int xComp = Math.Min((int)xCompF + 1, 9);
int yComp = Math.Min((int)yCompF + 1, 9);
- // FIXME: current lib is bugged for xComp != yComp
- // remove when https://github.com/Bond-009/BlurHashSharp/pull/1 is merged
- int tmp = Math.Max(xComp, yComp);
- xComp = yComp = tmp;
-
return BlurHashEncoder.Encode(xComp, yComp, path);
}