1[package] 2name = "cros-codecs" 3version = "0.0.5" 4license = "BSD-3-Clause" 5description = "Hardware-accelerated codecs for Linux" 6repository = "https://github.com/chromeos/cros-codecs" 7authors = ["The ChromiumOS Authors"] 8edition = "2021" 9 10[features] 11default = [] 12backend = ["anyhow", "byteorder", "thiserror", "crc32fast", "nix", "gbm", "gbm-sys", "drm", "drm-fourcc", "zerocopy"] 13vaapi = ["libva", "backend"] 14v4l2 = ["v4l2r", "backend"] 15 16[dependencies] 17anyhow = { version = "1.0.75", optional = true } 18byteorder = { version = "1.4.3", optional = true } 19libva = { version = "0.0.12", package = "cros-libva", optional = true } 20v4l2r = { version = "0.0.5", package = "v4l2r", optional = true } 21log = { version = "0", features = ["release_max_level_debug"] } 22thiserror = { version = "1.0.58", optional = true } 23crc32fast = { version = "1.3.2", optional = true } 24nix = { version = "0.28", features = ["fs", "event", "poll", "mman", "ioctl"], optional = true } 25drm = { version = "0.12.0", optional = true } 26drm-fourcc = { version = "2.2.0", optional = true } 27gbm = { version = "0.15", default-features = false, features = ["drm-support"], optional = true } 28gbm-sys = { version = "0.3.1", optional = true } 29zerocopy = { version = "0.8.14", optional = true, features = ["derive"] } 30 31[dev-dependencies] 32argh = "0.1.12" 33env_logger = "0.9.3" 34serde_json = "1.0.96" 35 36[lints.rust] 37# Required to allow #[cfg(fuzzing)] 38unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] } 39 40[[example]] 41name = "ccdec" 42required-features = ["backend"] 43 44[[example]] 45name = "ccenc" 46required-features = ["backend"] 47 48[[example]] 49name = "perf_test" 50required-features = ["backend"] 51