-
Notifications
You must be signed in to change notification settings - Fork 7.6k
drivers: video: sw_stats: software-based statistics #87008
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
Closed
josuah
wants to merge
8
commits into
zephyrproject-rtos:main
from
tinyvision-ai-inc:pr-video-sw-stats
Closed
drivers: video: sw_stats: software-based statistics #87008
josuah
wants to merge
8
commits into
zephyrproject-rtos:main
from
tinyvision-ai-inc:pr-video-sw-stats
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Mar 12, 2025
Converting to draft until all dependencies are done and CI passes. |
This was referenced Apr 18, 2025
Introduce an abstraction layer handling the diversity of ways hardware have to report statistics. This allows to take advantage of the various channel average or histograms present on some hardware, that skip the need to manually compute statistics. Fixes zephyrproject-rtos#85457 Signed-off-by: Josuah Demangeon <me@josuah.net>
Add support for the new API video_set_stats() to the emulated video RX driver, and use it to implement simple API tests. The data returned is arbitrary for the sake of testing the API itself. Signed-off-by: Josuah Demangeon <me@josuah.net>
The "pixel" library aims facilitating the implementation of all image processing tasks, such as pixel conversion, with a focus on low-resource environments. The processing functions scale down to per-pixel "kernels" to line-based conversion to full streams of several frames. Signed-off-by: Josuah Demangeon <me@josuah.net>
The newly introduced lib/pixel features utilities that help composing video pipelines together for the purpose of stream processing, as well as debug utilities. Signed-off-by: Josuah Demangeon <me@josuah.net>
This is a temporary test for CI only. Signed-off-by: Josuah Demangeon <me@josuah.net>
Add a new driver computing software statistics over a frame passed to it. This allows collecting channel averges or histogram of an input image using the video statistics API even when no hardware provides it. Signed-off-by: Josuah Demangeon <me@josuah.net>
Test it by filling a buffer manually with test data and verify that the statistics produced are matching. Signed-off-by: Josuah Demangeon <me@josuah.net>
The typo is `video_common` used while `video_emul` should have been used. Signed-off-by: Josuah Demangeon <me@josuah.net>
3c303dc
to
f64d37e
Compare
I propose implementing all of this inside of an application library on top of Zephyr, rather than a driver inside Zephyr. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Dependencies:
A software-based statistics back-end using #86671