Skip to content

Commit

Permalink
update tinyexr
Browse files Browse the repository at this point in the history
  • Loading branch information
ksgfk committed Feb 23, 2024
1 parent 0b01434 commit 25df72d
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ out

obj
bin

.cache
Binary file not shown.
2 changes: 1 addition & 1 deletion TinyEXR.NET/Native/EXRNative.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static unsafe partial class EXRNative
public static extern int IsEXRFromMemoryInternal([NativeTypeName("const unsigned char *")] byte* memory, [NativeTypeName("size_t")] UIntPtr size);

[DllImport("TinyEXR.Native", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern int SaveEXRToMemoryInternal([NativeTypeName("const float *")] float* data, [NativeTypeName("const int")] int width, [NativeTypeName("const int")] int height, [NativeTypeName("const int")] int components, [NativeTypeName("const int")] int save_as_fp16, [NativeTypeName("const unsigned char **")] byte** buffer, [NativeTypeName("const char **")] sbyte** err);
public static extern int SaveEXRToMemoryInternal([NativeTypeName("const float *")] float* data, [NativeTypeName("const int")] int width, [NativeTypeName("const int")] int height, [NativeTypeName("const int")] int components, [NativeTypeName("const int")] int save_as_fp16, [NativeTypeName("unsigned char **")] byte** buffer, [NativeTypeName("const char **")] sbyte** err);

[DllImport("TinyEXR.Native", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern int SaveEXRInternal([NativeTypeName("const float *")] float* data, [NativeTypeName("const int")] int width, [NativeTypeName("const int")] int height, [NativeTypeName("const int")] int components, [NativeTypeName("const int")] int save_as_fp16, [NativeTypeName("const char *")] sbyte* filename, [NativeTypeName("const char **")] sbyte** err);
Expand Down
10 changes: 5 additions & 5 deletions TinyEXR.NET/TinyEXR.NET.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<AssemblyName>$(MSBuildProjectName)</AssemblyName>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<RootNamespace>TinyEXR</RootNamespace>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AssemblyVersion>0.3.1</AssemblyVersion>
<FileVersion>0.3.1</FileVersion>
<AssemblyVersion>0.3.6</AssemblyVersion>
<FileVersion>0.3.6</FileVersion>
<RepositoryType>git</RepositoryType>
<Description>TinyEXR.NET is a C# wrapper of tinyexr</Description>
<Company>ksgfk</Company>
Expand All @@ -18,7 +18,7 @@
<PackageTags>OpenEXR,HDR</PackageTags>
<PackageReleaseNotes>update tinyexr</PackageReleaseNotes>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Version>0.3.5</Version>
<Version>0.3.6</Version>
<Nullable>enable</Nullable>

<PublishRepositoryUrl>true</PublishRepositoryUrl>
Expand Down Expand Up @@ -49,7 +49,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion TinyEXR.Native/TinyEXR.Native.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ int IsEXRFromMemoryInternal(const unsigned char* memory, size_t size) { return I
int SaveEXRToMemoryInternal(const float* data, const int width,
const int height, const int components,
const int save_as_fp16,
const unsigned char** outbuf,
unsigned char** outbuf,
const char** err) {
return SaveEXRToMemory(data, width, height, components, save_as_fp16, outbuf, err);
}
Expand Down
2 changes: 1 addition & 1 deletion TinyEXR.Native/TinyEXR.Native.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ EXPORT_API int IsEXRInternal(const char* filename);
EXPORT_API int IsEXRFromMemoryInternal(const unsigned char* memory, size_t size);
EXPORT_API int SaveEXRToMemoryInternal(const float* data, const int width, const int height,
const int components, const int save_as_fp16,
const unsigned char** buffer, const char** err);
unsigned char** buffer, const char** err);
EXPORT_API int SaveEXRInternal(const float* data, const int width, const int height,
const int components, const int save_as_fp16,
const char* filename, const char** err);
Expand Down
2 changes: 1 addition & 1 deletion TinyEXR.Native/tinyexr
Submodule tinyexr updated 2 files
+1 −1 README.md
+7 −7 tinyexr.h
2 changes: 1 addition & 1 deletion TinyEXR.Native/zlib
Submodule zlib updated 110 files
4 changes: 2 additions & 2 deletions TinyEXR.Test/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Reflection.PortableExecutable;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.PixelFormats;
using TinyEXR;

{//test reader
Expand Down
6 changes: 3 additions & 3 deletions TinyEXR.Test/TinyEXR.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="SixLabors.ImageSharp" Version="3.0.1" />
<PackageReference Include="TinyEXR.NET" Version="0.3.1" />
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.2" />
<PackageReference Include="TinyEXR.NET" Version="0.3.6" />
<None Update="100639413_p0.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down

0 comments on commit 25df72d

Please sign in to comment.