libjxl

FORK: libjxl patches used on blog
git clone https://git.neptards.moe/blog/libjxl.git
Log | Files | Refs | Submodules | README | LICENSE

run_all_hdr_metrics.sh (640B)


      1 #!/usr/bin/env bash
      2 # Copyright (c) the JPEG XL Project Authors. All rights reserved.
      3 #
      4 # Use of this source code is governed by a BSD-style
      5 # license that can be found in the LICENSE file.
      6 
      7 set -eu
      8 dir="$(dirname "$0")"
      9 
     10 main() {
     11   local metrics=(
     12     HDR-VDP:"${dir}"/hdrvdp.sh
     13     MRSE:"${dir}"/mrse.sh
     14     puPSNR:"${dir}"/pupsnr.sh
     15     puSSIM:"${dir}"/pussim.sh
     16   )
     17 
     18   local metrics_args=$(printf '%s' "${metrics[@]/#/,}")
     19   metrics_args=${metrics_args:1}
     20 
     21 
     22   "${dir}/../../../build/tools/benchmark_xl" \
     23     --print_details_csv \
     24     --num_threads=32 \
     25     --error_pnorm=6 \
     26     --extra_metrics ${metrics_args} \
     27     "$@"
     28 }
     29 
     30 main "$@"