| commit | 7ba8cfc97ff884d3bf54411cf4b61d006d3ef224 | [log] [tgz] |
|---|---|---|
| author | Justin Green <greenjustin@google.com> | Thu Mar 27 09:59:02 2025 -0400 |
| committer | Justin Green <greenjustin@google.com> | Thu Mar 27 10:42:38 2025 -0400 |
| tree | 67b1add46b9c8f72777544e48dc6c9c927488592 | |
| parent | bcc9fb372c101c12074905147872ad332af97292 [diff] |
Add AuxiliaryVideoFrame Add the AuxiliaryVideoFrame, which is designed to tie the lifetimes of two different VideoFrames together. Previously, we were running into issues where mismatches between the size of the auxiliary frame pool and Codec2's actual C2BlockPool resulted in the output frame buffer failing to allocate during image processing. This CL ensures that every "auxiliary frame" we allocate is backed by exactly 1 "real" output frame. Bug: b:406755850 Test: Manual testing on crosvideo.appspot.com Change-Id: Ie0ca601dcbe98ff0378e960105ceaedcaf11b49e
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.