-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
drivers: video: gc2145: Add support for YUV format. #84370
base: main
Are you sure you want to change the base?
Conversation
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.
The changes look ideal IMHO.
Is there a way to provide the memory pool for |
I believe the way @LucasTambor wanted to solve this is through the use of "shared multi-heap": CONFIG_ESP_SPIRAM -> CONFIG_SHARED_MULTI_HEAP -> CONFIG_MULTI_HEAP And was integrated into the Video allocation API via CONFIG_VIDEO_BUFFER_USE_SHARED_MULTI_HEAP:
Applied here: zephyr/drivers/video/video_common.c Line 54 in e4389a2
|
The alternative would be to catch the video memory pool defined here in a board-specific linker script or custom linker script: zephyr/drivers/video/video_common.c Line 20 in e4389a2
A bit more ad-hoc but could work too depending on the goals. |
@josuah I'll give the first option a try tomorrow and let you know how it goes. Thanks for the hint! |
@josuah I tried the shared multi-heap and it works fine. However, I think Also, |
Thank you for this new PR! I will pursue the discussion on that topic on #84446. |
Can be used to get a fast grayscale image. Signed-off-by: Ibrahim Abdalkader <i.abdalkader@gmail.com>
Can be used to get a fast grayscale image. Note
enum resolutions
is not needed at all, but I wanted to keep changes minimal.