Vikram PasupathyThis LG, but does use_linux_video_acceleration have to be an arg in https://source.chromium.org/chromium/chromium/src/+/main:media/gpu/args.gni;l=59?q=use_linux_video_acceleration%5C%20%3D%20case:yes ? That adds yet another state since that can be toggled independently of the other two.
Could we just put `use_linux_video_acceleration = use_vaapi || use_v4l2_codec` at the toplevel in that gni file outside of declare_args(), or do you really want people to be able to set that independent of the other two? If so, could we remove the other two args?
We have too many gn args and should be wary of adding more.
Miguel Casas-Sanchez@Miguel you're the Owner for this, do we allow people to be able to set that independent of the other two? Nico's suggestion makes sense to me, but just want to double check.
If so, would the same suggestion apply to `use_vaapi_image_codecs`?
Nico WeberI don't think it would make sense to enable `use_linux_video_acceleration`
without either the vaapi or v4l2 gn args. If the question is whether the
former can be moved to the same declare_args() as the latter two (i.e.
into [1]) then the answer is - likely yes, it might simply not have
been considered before.
Nico WeberThe question is "does it have to be an arg at all". Concretely, would this work:
```diff
diff --git a/media/gpu/args.gni b/media/gpu/args.gni
index 1cf51555d3348..22ecee80b5cc2 100644
--- a/media/gpu/args.gni
+++ b/media/gpu/args.gni
@@ -55,9 +55,7 @@ declare_args() {
use_vaapi_image_codecs = use_vaapi && is_chromeos
}
-declare_args() {
- use_linux_video_acceleration = use_vaapi || use_v4l2_codec
-}
+use_linux_video_acceleration = use_vaapi || use_v4l2_codec
declare_args() {
# A platform that is capable of hardware av1 decoding.
```
Vikram Pasupathy(as in, "would it work for you". On a GN level, it does work.)
@Miguel, I implemented Nico's suggestion. From what I understand, this would basically be so that you can't set `use_linux_video_acceleration` in the gn args, and that it would be set by either `use_vaapi` or `use_v412_codec`
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
Owners-Override | +1 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Hi Dale, ptal at the open comments to see if it makes sense. TY
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!
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Use use_linux_video_acceleration flag in BUILD.gn to simplify files
Modify BUILD.gn files to use the previously defined arg
use_linux_video_acceleration to simplify and avoid clunky redefinitions.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |