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

Feature/custom userptr allocator to take into account special hardware-aligment requirements for some v4l devices #103

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

molysgaard
Copy link

@molysgaard molysgaard commented Jun 21, 2024

Hi there.

When using the userptr io-mode for V4L, the v4l driver can have special alignment requirements for the buffers that are given to it.
I hit this limitation by experimenting with the V4L2 drivers for CSI cameras on Nvidia Tegra devices.

This PR tries to allow for specifying custom allocators for the crate in a backward compatible way, and I thought it would be nice to contribute it back to upstream.
If there are any things you would like different, or require changes, please don't hesitate to mention it.

I was unsure where to base this change on, so I based it on the last released version of the crate. I see that main has moved since then.

Regards Morten

This is usefull for devices where there are specific alignment
requirements of the memory being written to by the V4L subsystem.
One example where this is the case is the CSI-camera support Nvidia Tegra devices.
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.

None yet

1 participant