Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix golden files for KTX-Software 952 PR #31

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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