Skip to content

Detect max quality level dynamically. #3018

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

Merged
merged 4 commits into from
Apr 14, 2025
Merged

Conversation

casten
Copy link
Contributor

@casten casten commented Apr 11, 2025

Detect max quality level dynamically.
This will select 2 for standard Pico 2's and 5 for standard Pico's.
Tested on Pico and Pico 2.

Note that the the code for Adafruit_CircuitPython_OV5640, the acceptable range of the quality says:
"""Controls the JPEG quality. Valid range is from 2..55 inclusive"""
However, the value 55 is not included, so grammatically I'd say this is inaccurate.
https://github.com/jerryneedell/Adafruit_CircuitPython_OV5640/blob/main/adafruit_ov5640/__init__.py#L1495
I've adjust my comment in the code to indicate such.

casten added 3 commits April 10, 2025 22:31
Detect max quality level dynamically.
This will select 2 for standard Pico 2's and 5 for standard Pico's.
@dhalbert dhalbert requested a review from BlitzCityDIY April 13, 2025 22:55
Copy link
Collaborator

@BlitzCityDIY BlitzCityDIY left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great, i like this approach

@BlitzCityDIY BlitzCityDIY merged commit 6bce301 into adafruit:main Apr 14, 2025
4 checks passed
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.

2 participants