From 9e804ed7fe0913ae775887ec092e25a8dd65be4f Mon Sep 17 00:00:00 2001 From: Wasim Abbas Date: Wed, 13 Nov 2024 17:16:48 +0000 Subject: [PATCH] Fix golden files for https://github.com/KhronosGroup/KTX-Software/pull/952 --- .../encode_error_codec/missing_codec.err.txt | 2 +- clitests/golden/encode/help/help.out.txt | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/clitests/golden/encode/encode_error_codec/missing_codec.err.txt b/clitests/golden/encode/encode_error_codec/missing_codec.err.txt index 11f8874e0..0382c9acc 100644 --- a/clitests/golden/encode/encode_error_codec/missing_codec.err.txt +++ b/clitests/golden/encode/encode_error_codec/missing_codec.err.txt @@ -1 +1 @@ -ktx encode fatal: Missing codec argument. +ktx encode fatal: Either codec or format must be specified See 'ktx encode --help'. diff --git a/clitests/golden/encode/help/help.out.txt b/clitests/golden/encode/help/help.out.txt index 478e3c263..78cc32486 100644 --- a/clitests/golden/encode/help/help.out.txt +++ b/clitests/golden/encode/help/help.out.txt @@ -4,6 +4,12 @@ ktx encode: Encode the KTX file specified as the input-file argument, Usage: ktx encode [OPTION...] + --format KTX format enum that specifies the KTX file output format. The enum names + are matching the VkFormats without the VK_FORMAT_ prefix. The VK_FORMAT_ + prefix is ignored if present. + It can't be used with --codec and is only valid for ASTC encoding. + The format must be an ASTC format. When specified the ASTC encoder specific + options becomes valid. Case insensitive. --codec Target codec. With each encoding option the encoder specific options become valid, otherwise they are ignored. Case-insensitive. Possible options are: basis-lz | uastc @@ -27,6 +33,25 @@ Usage: --testrun Indicates test run. If enabled the tool will produce deterministic output whenever possible + Encode ASTC options: + --astc-quality The quality level configures the quality-performance tradeoff for the + compressor; more complete searches of the search space improve image + quality at the expense of compression time. Default is 'medium'. The + quality level can be set between fastest (0) and exhaustive (100) via + the following fixed quality presets: + + Level | Quality + ---------- | ----------------------------- + fastest | (equivalent to quality = 0) + fast | (equivalent to quality = 10) + medium | (equivalent to quality = 60) + thorough | (equivalent to quality = 98) + exhaustive | (equivalent to quality = 100) + --astc-perceptual The codec should optimize for perceptual error, instead of direct RMS + error. This aims to improve perceived image quality, but typically + lowers the measured PSNR score. Perceptual methods are currently only + available for normal maps and RGB color data. + Encode BasisLZ options: --clevel BasisLZ compression level, an encoding speed vs. quality level tradeoff. Range is [0,5], default is 1. Higher values are slower