mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-08 19:33:07 +00:00
The DecodedHandle implementations are almost identical across codecs, save for that display_resolution() method. Abstract it into the codec-specific data of the picture using a new FrameInfo trait, so that each backend can share a single implementation of DecodedHandle. This also allows us to factorize the dummy Handle structs into a single generic struct. BUG=b:214478588 TEST=cargo build --features `video-decoder,video-encoder,ffmpeg,vaapi` TEST=cargo test --features vaapi -p cros-codecs Change-Id: I959ca39e79f8f7c81d1c75ab42dc4f0b4c67262b Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4012399 Reviewed-by: Daniel Almeida <daniel.almeida@collabora.corp-partner.google.com> Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Commit-Queue: Alexandre Courbot <acourbot@chromium.org> |
||
---|---|---|
.. | ||
cros-codecs | ||
ffmpeg | ||
libva | ||
libvda |