Update BlurHashSharp to 1.0.1, remove workaround

This commit is contained in:
Vasily 2020-05-28 17:23:16 +03:00
parent f30b07130f
commit a76cee7a95
2 changed files with 1 additions and 6 deletions

View file

@ -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" />

View file

@ -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);
}