crosvm/media
Alexandre Courbot 130a83e05d media: cros-codecs: h264: make max_dpb_frames a method of Sps
Move `max_dpb_frames` from Decoder to Sps, where it can be more useful.
This requires moving the Profile and Level enums to the parser module,
which is also a better place for them since they are part of the Sps.

This allows us to validate the Level during parsing and not every time
it is queried. Profile unfortunately is more tricky so let's leave it
untouched for now.

BUG=b:214478588
TEST=cargo test --features vaapi -p cros-codecs

Change-Id: I9ca908ef1f646c26e312449c76c2062ecb45af20
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4123658
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Reviewed-by: Daniel Almeida <daniel.almeida@collabora.corp-partner.google.com>
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
2023-01-27 03:04:57 +00:00
..
cros-codecs media: cros-codecs: h264: make max_dpb_frames a method of Sps 2023-01-27 03:04:57 +00:00
ffmpeg Add conditional compilation for unix-only crates 2023-01-19 21:21:59 +00:00
libva Add conditional compilation for unix-only crates 2023-01-19 21:21:59 +00:00
libvda Add conditional compilation for unix-only crates 2023-01-19 21:21:59 +00:00