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

camerad: fix incorrect row offset calculation in calculate_exposure_value #34634

Merged

Conversation

deanlee
Copy link
Contributor

@deanlee deanlee commented Feb 20, 2025

fixes the issue where the row offset in the luminance (Y) plane was incorrectly calculated using the image width instead of the buffer stride. The buffer has a stride of 2048 bytes while the image width is 1928 pixels, and using the image width led to incorrect row access and luminance calculations.

@deanlee deanlee marked this pull request as ready for review February 20, 2025 17:32
@ZwX1616
Copy link
Contributor

ZwX1616 commented Feb 21, 2025

lgtm

@ZwX1616 ZwX1616 merged commit 2941445 into commaai:master Feb 21, 2025
17 checks passed
@deanlee deanlee deleted the camerad_fix_calculate_exposure_value branch February 21, 2025 02:47
adeebshihadeh added a commit that referenced this pull request Feb 21, 2025
adeebshihadeh added a commit that referenced this pull request Feb 21, 2025
@adeebshihadeh
Copy link
Contributor

Reverted since AR suddenly started failing the exposure test. @ZwX1616 can you take a look?

image

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.

3 participants