mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-08 19:33:07 +00:00
42bdf1de57
Introduce the cros-codecs crate. This crate contains all the codec-related code and does not depend on CrosVM. The decoders are decoupled from the backends, which allows for the implementation of new backends without touching the decoder code. This crate comes with dummy backends to test the decoder functionality in isolation, but in order to decode frames, a real backend is needed. Currently this backend is the VAAPI backend. Using it adds a dependency on the libva crate. This change adds support for VP8, H264 and VP9. BUG=b:214478588 TEST="cd media/cros-codecs && cargo test --release --features vaapi -- --include-ignored" TEST="emerge-hatch chromeos-base/crosvm" completes successfully. Change-Id: I596d5db4dabcc96dcfdbce1f41c8092e01b64271 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3875043 Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Reviewed-by: Alexandre Courbot <acourbot@chromium.org> Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
19 lines
403 B
TOML
19 lines
403 B
TOML
[package]
|
|
name = "cros-codecs"
|
|
version = "0.1.0"
|
|
authors = ["The Chromium OS Authors"]
|
|
edition = "2021"
|
|
|
|
[features]
|
|
vaapi = ["libva"]
|
|
|
|
[dependencies]
|
|
anyhow = { version = "*" }
|
|
bitreader = "0.3.6"
|
|
bytes = "1.1.0"
|
|
enumn = "0.1.4"
|
|
log = { version = "0", features = ["release_max_level_debug"] }
|
|
thiserror = "1.0.31"
|
|
libva = { path = "../libva", optional = true }
|
|
downcast-rs = "1.2.0"
|
|
crc32fast = "1.3.2"
|