commit | 979b04f188b47f94e570c1cb9c21177d02d2283f | [log] [tgz] |
---|---|---|
author | ELIYAZ MOMIN <[email protected]> | Wed Dec 18 03:44:36 2024 -0800 |
committer | Gerrit Code Review <[email protected]> | Wed Dec 18 03:44:36 2024 -0800 |
tree | 8d8ced34b0a625939dde0e684680cc308a036238 | |
parent | 60b5c274eab10b0c079991a6f384e7e7a0c3d699 [diff] |
Revert "Sync cros-codecs code with ChromeOS" This reverts commit 60b5c274eab10b0c079991a6f384e7e7a0c3d699. Reason for revert: <Potential culprit for b/384872664 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.E> Change-Id: Iff11d38551e4300e4711a021aad939c9ed58afb2
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.