Skip to content

Commit 444c68f

Browse files
committed
update avifenc and avifdec binaries and add arm64 support
1 parent 8c47f7a commit 444c68f

File tree

9 files changed

+59
-4
lines changed

9 files changed

+59
-4
lines changed

src/Native.cs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,18 @@ public static class Native {
1010

1111
private static string OSFolder {
1212
get {
13-
if(RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
14-
return "linux";
13+
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
14+
{
15+
if (RuntimeInformation.ProcessArchitecture == Architecture.X64)
16+
return "linux-x64";
17+
if (RuntimeInformation.ProcessArchitecture == Architecture.Arm64)
18+
return "linux-arm64";
19+
throw new InvalidOperationException("Only x64 and arm64 are supported on Linux.");
20+
}
1521

16-
if(RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) {
17-
if(Environment.Is64BitProcess)
22+
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
23+
{
24+
if (Environment.Is64BitProcess)
1825
return "win-x64";
1926

2027
throw new InvalidOperationException("Only x64 is supported on Windows.");

src/native/linux-arm64/avifdec

6.77 MB
Binary file not shown.

src/native/linux-arm64/avifenc

6.83 MB
Binary file not shown.

src/native/linux-x64/avifdec

9.07 MB
Binary file not shown.

src/native/linux-x64/avifenc

9.12 MB
Binary file not shown.

src/native/linux/avifdec

-13.9 MB
Binary file not shown.

src/native/linux/avifenc

-7.78 MB
Binary file not shown.

src/src.sln

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.5.2.0
4+
MinimumVisualStudioVersion = 10.0.40219.1
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NeoSolve.ImageSharp.AVIF", "NeoSolve.ImageSharp.AVIF.csproj", "{AAA24730-22F9-A42E-140E-7D0FF68C8C3B}"
6+
EndProject
7+
Global
8+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
9+
Debug|Any CPU = Debug|Any CPU
10+
Release|Any CPU = Release|Any CPU
11+
EndGlobalSection
12+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
13+
{AAA24730-22F9-A42E-140E-7D0FF68C8C3B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14+
{AAA24730-22F9-A42E-140E-7D0FF68C8C3B}.Debug|Any CPU.Build.0 = Debug|Any CPU
15+
{AAA24730-22F9-A42E-140E-7D0FF68C8C3B}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
{AAA24730-22F9-A42E-140E-7D0FF68C8C3B}.Release|Any CPU.Build.0 = Release|Any CPU
17+
EndGlobalSection
18+
GlobalSection(SolutionProperties) = preSolution
19+
HideSolutionNode = FALSE
20+
EndGlobalSection
21+
GlobalSection(ExtensibilityGlobals) = postSolution
22+
SolutionGuid = {0C281A82-01CF-43F4-AD92-F134E9EE199A}
23+
EndGlobalSection
24+
EndGlobal

test/test.sln

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.5.2.0
4+
MinimumVisualStudioVersion = 10.0.40219.1
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NeoSolve.ImageSharp.AVIF.Tests", "NeoSolve.ImageSharp.AVIF.Tests.csproj", "{45583CBA-0109-7F08-0CE4-911F94EC8017}"
6+
EndProject
7+
Global
8+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
9+
Debug|Any CPU = Debug|Any CPU
10+
Release|Any CPU = Release|Any CPU
11+
EndGlobalSection
12+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
13+
{45583CBA-0109-7F08-0CE4-911F94EC8017}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14+
{45583CBA-0109-7F08-0CE4-911F94EC8017}.Debug|Any CPU.Build.0 = Debug|Any CPU
15+
{45583CBA-0109-7F08-0CE4-911F94EC8017}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
{45583CBA-0109-7F08-0CE4-911F94EC8017}.Release|Any CPU.Build.0 = Release|Any CPU
17+
EndGlobalSection
18+
GlobalSection(SolutionProperties) = preSolution
19+
HideSolutionNode = FALSE
20+
EndGlobalSection
21+
GlobalSection(ExtensibilityGlobals) = postSolution
22+
SolutionGuid = {7F2C7FB7-A102-4DA1-9432-FBA5A0CD8600}
23+
EndGlobalSection
24+
EndGlobal

0 commit comments

Comments
 (0)