libjxl

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

progressive_saliency.conf (1574B)


      1 # Configuration parameters for progressive-saliency encoding.
      2 # (They are too many and too complex for command-line arguments.)
      3 
      4 # The total number of seconds for the simulated progressive-loading animation.
      5 simulated_progressive_loading_time_sec: 8.0
      6 
      7 # Time delay after the last progressive-loading step before the animation loops.
      8 simulated_progressive_loading_delay_until_looparound_sec: 10.0
      9 
     10 # The JPEG-XL encoding command, as one would pass it to the shell,
     11 # but with parameters ${HEATMAP_ARG}, ${INPUT}, ${OUTPUT}, ${STEPS}.
     12 jpegxl_encoder: cjpegxl pik ${INPUT} ${OUTPUT} --progressive --saliency_num_progressive_steps ${STEPS} --fast --saliency_threshold 0.8 ${HEATMAP_ARG}
     13 
     14 # The JPEG-XL encoding command, as one would pass it to the shell,
     15 # but with parameters ${INPUT}, ${OUTPUT}.
     16 jpegxl_decoder: djpegxl ${INPUT} ${OUTPUT}
     17 
     18 # The shell command to use for heatmap-generation.
     19 # This must adhere the calling conventions stated below.
     20 #
     21 # When called as:
     22 #   {heatmap_command} {blocksize} {input_image_filename} {coarse_grained_input_filename} {output_heatmap_filename}
     23 # This must produce: {output_heatmap_filename} in a format that is readable by the JPEG-XL encoder, and provides one
     24 # grayscale value per image-block which encodes saliency - ideally in the form of block-percentiles.
     25 heatmap_command: ml_get_high_level_saliency
     26 
     27 # How much to blur each of the four progressive stages.
     28 blurring: 16x4 16x1.5 0x0 0x0
     29 
     30 # Whether to keep tempfiles.
     31 # Temporary files will be named by appending suffixes to the desired final output filename.
     32 keep_tempfiles: True