monarchsolutions - FreeMote.Tlg 0.2.0

.NET wrapper for libtlg / TLG format.

PM> Install-Package FreeMote.Tlg -Version 0.2.0 -Source https://www.myget.org/F/monarchsolutions/api/v3/index.json

Copy to clipboard

> nuget.exe install FreeMote.Tlg -Version 0.2.0 -Source https://www.myget.org/F/monarchsolutions/api/v3/index.json

Copy to clipboard

> dotnet add package FreeMote.Tlg --version 0.2.0 --source https://www.myget.org/F/monarchsolutions/api/v3/index.json

Copy to clipboard
<PackageReference Include="FreeMote.Tlg" Version="0.2.0" />
Copy to clipboard
source https://www.myget.org/F/monarchsolutions/api/v3/index.json

nuget FreeMote.Tlg  ~> 0.2.0
Copy to clipboard

> choco install FreeMote.Tlg --version 0.2.0 --source https://www.myget.org/F/monarchsolutions/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "monarchsolutions" -SourceLocation "https://www.myget.org/F/monarchsolutions/api/v2"
Install-Module -Name "FreeMote.Tlg" -RequiredVersion "0.2.0" -Repository "monarchsolutions" 
Copy to clipboard

FreeMote.Tlg

MyGet

.NET wrapper for libtlg, just for loading or saving TLG (Terrible Low-quality Graphics) format files.

Benchmark

We ran a benchmark to compare @morkt/GARbro's managed TLG loader with this (only for loading).

Tests were taken on a 1,773KB (1330x848) TLG image.


BenchmarkDotNet=v0.10.14, OS=Windows 10.0.17134
Intel Core i5-6300U CPU 2.40GHz (Skylake), 1 CPU, 4 logical and 2 physical cores

Managed = morkt's pure managed TLG loader;
NativeCopy = TlgNative.ToBitmap(byte[], out int, bool);
NativeLoader = new TlgLoader(byte[]).Bitmap;

Method Mean Error StdDev Gen 0 Gen 1 Gen 2 Allocated
ManagedBenchmark 41.03 ms 1.1473 ms 1.1781 ms 437.5000 437.5000 437.5000 4544462 B
NativeCopyBenchmark 31.49 ms 0.5719 ms 0.5070 ms - - - 0 B
NativeLoaderBenchmark 28.33 ms 0.5198 ms 0.4608 ms - - - 0 B

Thanks

libtlg comes from tlg-wic-codec. We have made some fixes and modifications.

We use @morkt's ImageTLG (LICENSE: MIT) in this project and FreeMote.


by Ulysses (wdwxy12345@gmail.com) from Project AZUSA

  • .NETFramework 4.6
  • .NETFramework 4.6: 4.6.0.0

Owners

UlyssesWu

Authors

Project-AZUSA

Project URL

https://github.com/Project-AZUSA/TlgLib

License

MIT

Info

72 total downloads
33 downloads for version 0.2.0
Download (167.46 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
0.2.0 167.46 KB Sat, 06 Jun 2020 17:59:04 GMT 33
0.1.0 77.7 KB Thu, 09 Aug 2018 13:51:01 GMT 39