Hi, here's another small patch to improve V4L2 support on Linux - hope you find time to have a look :)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
Re-use of the flag looks good to me.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
#ifdef UNSAFE_BUFFERS_BUILDNote to other reviewers: Every other decoder delegate uses this `#pragma`. It makes sense that changing the build files, would require this change.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Thanks! I don't have the permissions to merge, mind one you trigger the CQ+2?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Thanks! I don't have the permissions to merge, mind one you trigger the CQ+2?
Sorry! Yes. Done.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
media/gpu/v4l2: Allow enabling AV1 support on Linux
The required values in v4l2-controls.h have been upstreamed
for a while, however the baseline Debian dependency has not
been updated to a version including that yet.
Add a simple way to already enable AV1 support by reusing the
`use_av1_hw_decoder` flag, keeping it enabled by default for
VA-API but disabling it for V4L2.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Hello, Debian trixie has been released now and it has linux-libc-dev from kernel v6.12. Is it possible to enable av1 decoder on linux by default for both vaapi and v4l2 now?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Hello, Debian trixie has been released now and it has linux-libc-dev from kernel v6.12. Is it possible to enable av1 decoder on linux by default for both vaapi and v4l2 now?
Trixie was only released in August 2025. I'm not sure what the uptake is. By going to default those that haven't upgraded yet will fail to compile. I don't know what number of people are building Chromium from source, for v4l2, have av1 hw support, and aren't on trixie. Seems pretty niche.
I'm open to enabling it by default, but would like to have some feedback from Robert as the CL was crafted to avoid doing so.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Fritz KoenigHello, Debian trixie has been released now and it has linux-libc-dev from kernel v6.12. Is it possible to enable av1 decoder on linux by default for both vaapi and v4l2 now?
Trixie was only released in August 2025. I'm not sure what the uptake is. By going to default those that haven't upgraded yet will fail to compile. I don't know what number of people are building Chromium from source, for v4l2, have av1 hw support, and aren't on trixie. Seems pretty niche.
I'm open to enabling it by default, but would like to have some feedback from Robert as the CL was crafted to avoid doing so.
I'd love to see it enabled by default, however AFAICS older Debian versions are still used for CI and local builds - and I don't expect that to change any time soon.
If we want to enable `use_av1_hw_decoder` by default on systems like Trixie that have the headers, I suppose we could do so with some kind of `has_header()` check.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Fritz KoenigHello, Debian trixie has been released now and it has linux-libc-dev from kernel v6.12. Is it possible to enable av1 decoder on linux by default for both vaapi and v4l2 now?
Robert MaderTrixie was only released in August 2025. I'm not sure what the uptake is. By going to default those that haven't upgraded yet will fail to compile. I don't know what number of people are building Chromium from source, for v4l2, have av1 hw support, and aren't on trixie. Seems pretty niche.
I'm open to enabling it by default, but would like to have some feedback from Robert as the CL was crafted to avoid doing so.
I'd love to see it enabled by default, however AFAICS older Debian versions are still used for CI and local builds - and I don't expect that to change any time soon.
If we want to enable `use_av1_hw_decoder` by default on systems like Trixie that have the headers, I suppose we could do so with some kind of `has_header()` check.
Thanks for pointing out that builders are still using older Debian, I had not considered that. I will keep it in mind for the future. Eventually they will get updated, but Debian still has years of support for bookworm.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Fritz KoenigHello, Debian trixie has been released now and it has linux-libc-dev from kernel v6.12. Is it possible to enable av1 decoder on linux by default for both vaapi and v4l2 now?
Robert MaderTrixie was only released in August 2025. I'm not sure what the uptake is. By going to default those that haven't upgraded yet will fail to compile. I don't know what number of people are building Chromium from source, for v4l2, have av1 hw support, and aren't on trixie. Seems pretty niche.
I'm open to enabling it by default, but would like to have some feedback from Robert as the CL was crafted to avoid doing so.
Fritz KoenigI'd love to see it enabled by default, however AFAICS older Debian versions are still used for CI and local builds - and I don't expect that to change any time soon.
If we want to enable `use_av1_hw_decoder` by default on systems like Trixie that have the headers, I suppose we could do so with some kind of `has_header()` check.
Thanks for pointing out that builders are still using older Debian, I had not considered that. I will keep it in mind for the future. Eventually they will get updated, but Debian still has years of support for bookworm.
Get it. I have manually enabled av1 decoder at debian: https://salsa.debian.org/chromium-team/chromium/-/merge_requests/29
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |