| commit | 497de92e9322faca0c1e2d93e3a807f8a1ab5f1b | [log] [tgz] |
|---|---|---|
| author | Justin Green <greenjustin@google.com> | Wed Mar 26 11:10:35 2025 -0400 |
| committer | Justin Green <greenjustin@google.com> | Wed Mar 26 08:23:42 2025 -0700 |
| tree | f7aae62b06e3bc299fa6fce45e7b844b7d900340 | |
| parent | b2f588dea5c7161fa474392624d92558213d740a [diff] |
Perform test allocation for auxiliary frame pool Perform test allocation of a DMA buffer video frame before allocating a frame from the auxiliary pool. This couples the auxiliary frame pool to the Codec2 frame pool so that the decoder doesn't outspace Codec2 and cause a panic. Bug: b:406490173 Test: Manual testing on crosvideo.appspot.com Change-Id: I858d781ddf22fd74d4e06ae34852215efba1986a
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>] [--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 --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.