Compare commits

...
2 Commits
Author SHA1 Message Date
Jeremy Pritts b0038a5184 bump version 2022-02-05 23:50:03 -05:00
Jeremy Pritts 6665fab8d9 fix overflow in RGBAHalfToBGRA32 2022-02-05 23:48:53 -05:00
2 changed files with 6 additions and 6 deletions

No files matched your search

+4 -4
View File
@@ -511,10 +511,10 @@ namespace TextureDecoder.Rgb
{
for (int j = 0; j < height; j++)
{
byte r = Convert.ToByte(Math.Round(ToHalf(input, io + 0) * 255f));
byte g = Convert.ToByte(Math.Round(ToHalf(input, io + 2) * 255f));
byte b = Convert.ToByte(Math.Round(ToHalf(input, io + 4) * 255f));
byte a = Convert.ToByte(Math.Round(ToHalf(input, io + 6) * 255f));
byte r = ClampByte(ToHalf(input, io + 0) * 255f);
byte g = ClampByte(ToHalf(input, io + 2) * 255f);
byte b = ClampByte(ToHalf(input, io + 4) * 255f);
byte a = ClampByte(ToHalf(input, io + 6) * 255f);
output[oo + 0] = b; // b
output[oo + 1] = g; // g
output[oo + 2] = r; // r
+2 -2
View File
@@ -9,8 +9,8 @@
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<Authors>ds5678</Authors>
<Company>AssetRipper</Company>
<Version>1.0.1.0</Version>
<AssemblyVersion>1.0.1.0</AssemblyVersion>
<Version>1.0.2.0</Version>
<AssemblyVersion>1.0.2.0</AssemblyVersion>
<PackageId>TextureDecoder</PackageId>
<PackageTags>C# Texture</PackageTags>
<RepositoryUrl>https://github.com/AssetRipper/TextureDecoder</RepositoryUrl>