Skip to content

Conversation

@avolmat-st
Copy link

Correct set_frmival in order to avoid having un-optimized frmival selection due to rounded values.
Computation has been done in usec, leading to incorrect frmival selection due to value being rounded internally. As an example, code was selecting 1/60 from sensor then 4 time frame drop by DCMI instead of selecting directly 1/15 from sensor.
Use msec instead to hide those rounding issue and avoid as well 64bit variables.
This also put the first video_frmival_nsec outside of the loop to avoid having to do the processing everytime.

Correct set_frmival in order to avoid having un-optimized
frmival selection due to rounded values.
Computation has been done in usec, leading to incorrect
frmival selection due to value being rounded internally.
As an example, code was selecting 1/60 from sensor then 4 time
frame drop by DCMI instead of selecting directly 1/15 from
sensor.
Use msec instead to hide those rounding issue and avoid
as well 64bit variables.
This also put the first video_frmival_nsec outside of the
loop to avoid having to do the processing everytime.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
@avolmat-st
Copy link
Author

This PR tackles point discussed in PR #98154, cf #98154 (comment)

@sonarqubecloud
Copy link

@KurtE
Copy link
Contributor

KurtE commented Nov 10, 2025

Appears to the issue I was having with the HM01b0 camera

@mjs513
Copy link
Contributor

mjs513 commented Nov 11, 2025

Will add to @KurtE's comment. Tested with the HM0360 as well and again seems to have fixed the issue we were seeing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Video Video subsystem platform: STM32 ST Micro STM32

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants