awxkee / jxl-coder

JPEG XL (JXL) Decoder/Encoder library for Android
Apache License 2.0
46 stars 5 forks source link

What is the encoding and decoding speed of jxl on Android? #17

Closed MrWuZhenQuan closed 5 months ago

MrWuZhenQuan commented 5 months ago

Is there any relevant performance data?

awxkee commented 5 months ago

There is notes from libjxl doc.

  /** Sets encoder effort/speed level without affecting decoding speed. Valid
   * values are, from faster to slower speed: 1:lightning 2:thunder 3:falcon
   * 4:cheetah 5:hare 6:wombat 7:squirrel 8:kitten 9:tortoise 10:glacier.
   * Default: squirrel (7).
   */
  JXL_ENC_FRAME_SETTING_EFFORT = 0,

  /** Sets the decoding speed tier for the provided options. Minimum is 0
   * (slowest to decode, best quality/density), and maximum is 4 (fastest to
   * decode, at the cost of some quality/density). Default is 0.
   */
  JXL_ENC_FRAME_SETTING_DECODING_SPEED = 1,

Encoding effort primarly intented to encode longer but with more compression level or fast with smaller compression ratio

awxkee commented 5 months ago

Some time before Decoding speed was documented as change decoding speed of encoded image without changes in quality however for now it doesn't seem so