Skip to content

Commit

Permalink
Fix golden files for KhronosGroup/KTX-Software#952
Browse files Browse the repository at this point in the history
  • Loading branch information
abbaswasim committed Nov 13, 2024
1 parent 96bdfcd commit 9e804ed
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ktx encode fatal: Missing codec argument.
ktx encode fatal: Either codec or format must be specified See 'ktx encode --help'.
25 changes: 25 additions & 0 deletions clitests/golden/encode/help/help.out.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ ktx encode: Encode the KTX file specified as the input-file argument,
Usage:
ktx encode [OPTION...] <input-file> <output-file>

--format <enum> 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> Target codec. With each encoding option the encoder specific options become
valid, otherwise they are ignored. Case-insensitive.
Possible options are: basis-lz | uastc
Expand All @@ -27,6 +33,25 @@ Usage:
--testrun Indicates test run. If enabled the tool will produce deterministic output
whenever possible

Encode ASTC options:
--astc-quality <level> 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 <level> BasisLZ compression level, an encoding speed vs. quality level
tradeoff. Range is [0,5], default is 1. Higher values are slower
Expand Down

0 comments on commit 9e804ed

Please sign in to comment.