Skip to content

Commit

Permalink
Allow comparing ssim and pnsr for ASTC images
Browse files Browse the repository at this point in the history
  • Loading branch information
wasimabbas-arm committed Nov 19, 2024
1 parent 189ab65 commit a0405a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/cts
8 changes: 4 additions & 4 deletions tools/ktx/metrics_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ namespace ktx {
<dl>
<dt>\--compare-ssim</dt>
<dd>Calculate encoding structural similarity index measure (SSIM) and print it to stdout.
Requires Basis-LZ or UASTC encoding.</dd>
Requires Basis-LZ, UASTC or ASTC encoding.</dd>
<dt>\--compare-psnr</dt>
<dd>Calculate encoding peak signal-to-noise ratio (PSNR) and print it to stdout.
Requires Basis-LZ or UASTC encoding.</dd>
Requires Basis-LZ, UASTC or ASTC encoding.</dd>
</dl>
</dl>
//! [command options_metrics]
Expand All @@ -43,8 +43,8 @@ struct OptionsMetrics {

void init(cxxopts::Options& opts) {
opts.add_options()
("compare-ssim", "Calculate encoding structural similarity index measure (SSIM) and print it to stdout. Requires Basis-LZ or UASTC encoding.")
("compare-psnr", "Calculate encoding peak signal-to-noise ratio (PSNR) and print it to stdout. Requires Basis-LZ or UASTC encoding.");
("compare-ssim", "Calculate encoding structural similarity index measure (SSIM) and print it to stdout. Requires Basis-LZ, UASTC or ASTC encoding.")
("compare-psnr", "Calculate encoding peak signal-to-noise ratio (PSNR) and print it to stdout. Requires Basis-LZ, UASTC or ASTC encoding.");
}

void process(cxxopts::Options&, cxxopts::ParseResult& args, Reporter&) {
Expand Down

0 comments on commit a0405a0

Please sign in to comment.