commit | 3fa1222239ea187b6132e3c3c7f936a94df3813d | [log] [tgz] |
---|---|---|
author | Hang Nguyen <hnt@google.com> | Mon Feb 03 22:51:34 2025 +0000 |
committer | Hang Nguyen <hnt@google.com> | Mon Feb 03 17:04:48 2025 -0800 |
tree | 8c94c2e5c1619dd37d4d179c0a361211133e549d | |
parent | eb8ac93e392dda54c718427171f12cff40bfdbb6 [diff] |
Fix soong build failures with features in Android.bp This CL fixes the presubmit failure from aosp/3434756 as AOSP does not allow the original fix CL (aosp/3470729) to be submitted together. This CL fixes the following build failures in cros-codecs: - error[E0433]: failed to resolve: unresolved import note: the item is gated behind the `backend` feature --> system/cros-codecs/src/lib.rs:30:7 | 30 | #[cfg(feature = "backend")] | ^^^^^^^^^^^^^^^^^^^ Bug: 389780527 Test: Build cros_codecs Change-Id: I9e931438569521c973abcbf821f077f871d35541
A lightweight, simple, low-dependency, and hopefully safe crate for hardware-accelerated video decoding and encoding on Linux.
It is developed for use in ChromeOS (particularly crosvm), but has no dependency to ChromeOS and should be usable anywhere.
The ccdec
example program can decode an encoded stream and write the decoded frames to a file. As such it can be used for testing purposes.
$ cargo build --examples $ ./target/debug/examples/ccdec --help Usage: ccdec <input> [--output <output>] --input-format <input-format> [--output-format <output-format>] [--synchronous] [--compute-md5 <compute-md5>] Simple player using cros-codecs Positional Arguments: input input file Options: --output output file to write the decoded frames to --input-format input format to decode from. --output-format pixel format to decode into. Default: i420 --synchronous whether to decode frames synchronously --compute-md5 whether to display the MD5 of the decoded stream, and at which granularity (stream or frame) --help display usage information
Fluster can be used for testing, using the ccdec
example program described above. This branch contains support for cros-codecs testing. Just make sure the ccdec
binary is in your PATH
, and run Fluster using one of the ccdec
decoders, e.g.
python fluster.py run -d ccdec-H.264 -ts JVT-AVC_V1
The majority of the code in the initial commit has been written by Daniel Almeida as a VAAPI backend for crosvm, before being split into this crate.