mirror of
https://github.com/AssetRipper/AssetRipper.TextureDecoder.git
synced 2026-11-13 04:26:30 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
13b4f6ee49 | ||
|
|
2cdd532c31 | ||
|
|
d772c2790d | ||
|
|
0201123b0a | ||
|
|
02531ab941 | ||
|
|
2f8d0b4a8b | ||
|
|
0fb5e24d81 | ||
|
|
ec91662b4a |
No files matched your search
@@ -12,9 +12,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v7
|
||||||
- name: Setup .NET
|
- name: Setup .NET
|
||||||
uses: actions/setup-dotnet@v5.1.0
|
uses: actions/setup-dotnet@v6.0.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: 9.0.x
|
dotnet-version: 9.0.x
|
||||||
- name: Restore dependencies
|
- name: Restore dependencies
|
||||||
|
|||||||
@@ -5,17 +5,13 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.3.0" />
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.9.0" />
|
||||||
<PackageReference Include="NUnit" Version="4.5.0" />
|
<PackageReference Include="NUnit" Version="4.6.1" />
|
||||||
<PackageReference Include="NUnit3TestAdapter" Version="6.1.0" />
|
<PackageReference Include="NUnit3TestAdapter" Version="6.2.0" />
|
||||||
<PackageReference Include="NUnit.Analyzers" Version="4.11.2">
|
<PackageReference Include="NUnit.Analyzers" Version="4.14.0">
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="coverlet.collector" Version="8.0.0">
|
|
||||||
<PrivateAssets>all</PrivateAssets>
|
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
||||||
</PackageReference>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -15,12 +15,11 @@
|
|||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
|
|
||||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||||
<DocumentationFile>bin\TextureDecoder.xml</DocumentationFile>
|
|
||||||
<NoWarn>1591</NoWarn>
|
<NoWarn>1591</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="10.0.103">
|
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="10.0.400">
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ namespace AssetRipper.TextureDecoder.Astc
|
|||||||
where TOutputChannelValue : unmanaged
|
where TOutputChannelValue : unmanaged
|
||||||
where TOutputColor : unmanaged, IColor<TOutputChannelValue>
|
where TOutputColor : unmanaged, IColor<TOutputChannelValue>
|
||||||
{
|
{
|
||||||
output = new byte[width * height * 4];
|
output = new byte[width * height * Unsafe.SizeOf<TOutputColor>()];
|
||||||
return DecodeASTC<TOutputColor, TOutputChannelValue>(input, width, height, blockWidth, blockHeight, output);
|
return DecodeASTC<TOutputColor, TOutputChannelValue>(input, width, height, blockWidth, blockHeight, output);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ public readonly record struct ExrChannelList(ExrChannel[] Channels) : IExrDataTy
|
|||||||
{
|
{
|
||||||
public static ReadOnlySpan<byte> TypeName => "chlist"u8;
|
public static ReadOnlySpan<byte> TypeName => "chlist"u8;
|
||||||
|
|
||||||
public int Size => Channels.Sum(c => c.Size);
|
public int Size => Channels.Sum(c => c.Size) + sizeof(byte);
|
||||||
|
|
||||||
public void Write(BinaryWriter writer)
|
public void Write(BinaryWriter writer)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ public static class ExrWriter
|
|||||||
for (int i = 0; i < height; i++)
|
for (int i = 0; i < height; i++)
|
||||||
{
|
{
|
||||||
writer.Write(offset);
|
writer.Write(offset);
|
||||||
offset += sizeof(int) + ChannelCount * ChannelSize * width;
|
offset += sizeof(int) + sizeof(int) + ChannelCount * ChannelSize * width;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Scan lines
|
//Scan lines
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<IsAotCompatible>true</IsAotCompatible>
|
<IsAotCompatible>true</IsAotCompatible>
|
||||||
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
|
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
|
||||||
|
|
||||||
<VersionPrefix>2.6.2</VersionPrefix>
|
<VersionPrefix>2.6.3</VersionPrefix>
|
||||||
<Copyright>Copyright © ds5678</Copyright>
|
<Copyright>Copyright © ds5678</Copyright>
|
||||||
<Authors>ds5678</Authors>
|
<Authors>ds5678</Authors>
|
||||||
<Company>AssetRipper</Company>
|
<Company>AssetRipper</Company>
|
||||||
|
|||||||
Reference in new issue
Block a user