From f0fd6843ba9caf32e9fb309791b367f930368369 Mon Sep 17 00:00:00 2001 From: Memmie Lenglet Date: Fri, 7 Oct 2016 00:10:06 +0200 Subject: [PATCH 1/2] Update README to be more intelligible about output formats --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 43c61b2..3475e52 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ compression time and PSNR. * [DXT1](http://www.opengl.org/registry/specs/EXT/texture_compression_s3tc.txt) [2] * [DXT5](http://www.opengl.org/registry/specs/EXT/texture_compression_s3tc.txt) [2] * [PVRTC](http://web.onetel.net.uk/~simonnihal/assorted3d/fenney03texcomp.pdf) -* `-d`: Specifies the decompressed output file. +* `-d`: Specifies the output file. Format supported PNG, PVR, TGA, KTX, ASTC * **Default**: ``-``.png * `-nd`: Suppress decompressed output. * `-t`: Specifies the number of threads to use for compression. @@ -135,7 +135,7 @@ with atomic synchronization primitives, I would invoke the following command: If I wanted to compress a texture into PVRTC, I would invoke the following command: - CLTool/tc -f PVRTC path/to/image.png + CLTool/tc -f PVRTC path/to/image.pvr [1] Compression code courtesy of [Rich Geldreich](https://code.google.com/p/rg-etc1/)
[2] Compression code courtesy of [Sean Barrett](https://github.com/nothings/stb/blob/master/stb_dxt.h). From a70bcd76b020306a22ac994b7c9c7cc6b5fef258 Mon Sep 17 00:00:00 2001 From: Memmie Lenglet Date: Fri, 7 Oct 2016 00:36:13 +0200 Subject: [PATCH 2/2] Fix supported input and output formats --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3475e52..fcef56d 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,8 @@ The quickest test will be to simply run the compressor on a PNG image: This will compress `image.png` into the BPTC (BC7) format using 50 steps of simulated annealing without multithreading. +Input file format supported: PNG, PVR, TGA, KTX, ASTC + There are various run-time options available: * `-v`: Enabled verbosity, which reports Entropy, Mean Local Entropy, and MSSIM in addition to @@ -97,7 +99,7 @@ compression time and PSNR. * [DXT1](http://www.opengl.org/registry/specs/EXT/texture_compression_s3tc.txt) [2] * [DXT5](http://www.opengl.org/registry/specs/EXT/texture_compression_s3tc.txt) [2] * [PVRTC](http://web.onetel.net.uk/~simonnihal/assorted3d/fenney03texcomp.pdf) -* `-d`: Specifies the output file. Format supported PNG, PVR, TGA, KTX, ASTC +* `-d`: Specifies the output file. Format supported PNG, KTX * **Default**: ``-``.png * `-nd`: Suppress decompressed output. * `-t`: Specifies the number of threads to use for compression. @@ -135,7 +137,7 @@ with atomic synchronization primitives, I would invoke the following command: If I wanted to compress a texture into PVRTC, I would invoke the following command: - CLTool/tc -f PVRTC path/to/image.pvr + CLTool/tc -f PVRTC -d path/to/image.ktx path/to/image.png [1] Compression code courtesy of [Rich Geldreich](https://code.google.com/p/rg-etc1/)
[2] Compression code courtesy of [Sean Barrett](https://github.com/nothings/stb/blob/master/stb_dxt.h).