crosvm/devices
Daniel Almeida 23f0edd0ba video: decoder: vaapi: use max_{width|height} from CodedCaps if no value is returned
The max width and height from the coded side are the best approximation
for the max width and height of the raw side if the actual values are
not available in VA-API.

In particular, it's extremely unlikely to have 1x1 as acceptable values
for max_width and max_height.

BUG=b:214478588
TEST=cargo test -p devices --features=video-decoder,vaapi virtio::video::decoder::backend::vaapi::tests::test_get_capabilities -- --include-ignored

Change-Id: I6d9830b4da69f29f5e2e11c3fa688db4a7007726
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3901273
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
2022-10-28 06:33:41 +00:00
..
src video: decoder: vaapi: use max_{width|height} from CodedCaps if no value is returned 2022-10-28 06:33:41 +00:00
tests/irqchip Extract devices integration tests 2022-10-26 17:53:08 +00:00
Cargo.toml video: decoder: vaapi: port the VAAPI backend to cros-codecs 2022-10-28 03:23:31 +00:00