| commit | d68e18e46e815a722e7e90af55b5846b72ba77e2 | [log] [tgz] |
|---|---|---|
| author | Justin Green <greenjustin@google.com> | Thu Mar 27 17:07:21 2025 -0400 |
| committer | Justin Green <greenjustin@google.com> | Thu Mar 27 18:37:00 2025 -0400 |
| tree | 7bfe4d3dbca62c65ebe5b2ba07430af86c8e5530 | |
| parent | 7ba8cfc97ff884d3bf54411cf4b61d006d3ef224 [diff] |
Correctly plumb VP9 timestamps on V4L2 We needed unique timestamps for VP9 hidden frames on V4L2 in order to correctly keep track of the underlying V4l2Request, but the HAL ultimately needs the correct timestamp in order to recreate the C2Work object. As a compromise, we can bitshift the real timestamp left by 1 bit and use the new LSB to encode deduplication information. This will technically overflow for videos that are ~600 million years long. Bug: b:406839591 Test: Watching youtube on Corsola Test: Watching crosvideo.appspot.com on Corsola Test: Watching local videos on Corsola Change-Id: Ib2cd9e7222f600b07c3fb6849a1cb710fe668e7e
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.