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

[RFC] Add API for setting adaptive quantization parameters #107

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

erikandre
Copy link

@erikandre erikandre commented Feb 12, 2025

This allows for setting the adaptive quantization bias multiplier and offset parameters . Together with using custom base quantization tables, this allows you to tune jpegli to deliver better compression rates for specific datasets or metrics.

Description

I added "RFC" to the title since I'm not sure what's the best approach for adding test coverage.
I could add support to cjpegli but it's quite a niche use case so I'm not sure this is the best place for it, otherwise a unit test may be more suitable.

The change has been tested using a separate command line tool that includes jpegli, however all that testing was done on grayscale images.

This allows for setting the adaptive quantization bias multiplier and offset parameters .
Together with using custom base quantization tables, this allows you to tune jpegli to deliver better compression rates for specific datasets or metrics.
@erikandre erikandre marked this pull request as ready for review February 12, 2025 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant