-
Notifications
You must be signed in to change notification settings - Fork 8k
video: fix missing crop/compose handling in capture_to_lvgl sample & add missing conf files for stm32n657 fsbl variant #92410
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
Conversation
747833f
to
b437b43
Compare
This was introduced in the Could it be tested on Thank you for the complement. |
Instead of having a conf file for all variants of STM32N6570_DK, set the necessary settings for any platform which has DCMIPP enabled. Signed-off-by: Alain Volmat <[email protected]>
Add the board conf file for the stm32n6570_dk in its fsbl variant. Signed-off-by: Alain Volmat <[email protected]>
Add the conf file for the stm32n6570_dk in its FSBL variant Signed-off-by: Alain Volmat <[email protected]>
Demonstrate the crop/compose API by introducing 4 new CONFIG options in order to define the crop area. Moreover, if the selection API is available and if the targetted size is different from the current crop size, then try to apply a compose in order to reach the targetted format size. Signed-off-by: Alain Volmat <[email protected]>
b437b43
to
b37a2d7
Compare
Yes it is still working: west build -p -b native_sim/native/64 --snippet video-sw-generator samples/drivers/video/capture_to_lvgl/ [2/2] Running utility command for native_runner_executable and I got the colorbar displayed on the SDL display |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you for testing!
706895c
into
zephyrproject-rtos:main
@josuah @avolmat-st - Sorry to jump in here, after the fact, but was wondering about the changes to the two example That is they now both have code in them like:
And I potentially wish to run it on a board that does not using: video_stm32_dcmipp.c I noticed this as I am experimenting adding it to video_stm32_dcmi.c and have it try to Still figuring out the order of calls that is necessary for this, as well as things like, how to reflect this Thanks |
I am trying Many other commits after that did not, including many before introduction of The UVC sample seems to work, however. Thank you for all the testing! |
Hum, no not having set_selection API availability shouldn't block the sample to run since -ENOSYS (which is what is returned if the API is not supported) is not going to block the sample. Actually upon request of @josuah I tested it with the nativesim and the video-sw-generator snippet and it is well working (even if set_selection is not supported in those case).
|
It is surprising that this didn't get called by the build test. Maybe this platform / shield is not part of the automatic tests ?
|
Sorry you are correct. It should be handled by the ENOSYS... Was looking through the examples trying to see the usages of the different get/set settings... To see how hard it would |
This was ambiguous but by "broken builds" I meant that the firmware was building well, but there was a runtime issue, which can mostly be caught by running it in hardware. I have not tried the automated test yet but could be interesting! Only manual tests so far. |
The idea is that drivers contain the storage for settings: As soon as an user modify a video control via |
PR #91878 added mechanism to perform crop and compose on a frame. Related API usage was added within the capture sample but not within the capture_to_lvgl leading to having this sample no more working on the stm32n6570_dk board since compose is mandatory on it in order to be able to display the large frame from sensor to the 800x480 display.
Current PR add the same handling done in capture sample app within the capture_to_lvgl app in order to have the sample app working on the stm32n6.
Moreover PR #91941 introduced a new variable (FSBL) to run application on the stm32n6. Since st_b_cams_imx_mb1854 shield and video sample app have board specific conf / overlays, add the conf for the FSBL variant as well.