| commit | 2d59d7ef65ce814b33d6aa0bb3b0de02a0dc9056 | [log] [tgz] |
|---|---|---|
| author | Bijan Choobineh <bchoobineh@google.com> | Thu Apr 17 15:26:03 2025 -0700 |
| committer | Bijan Choobineh <bchoobineh@google.com> | Tue May 06 09:11:59 2025 -0700 |
| tree | 787dd451c796d7f5a353a22365f1086fb22df399 | |
| parent | 258a103b7cf1deed066ec8cab1ee7176d52e367f [diff] |
cros-codecs: Setup V4L2 H265 Scaling Matrix Setup v4l2_ctrl_hevc_scaling_matrix for V4L2 H265 decoding. Bug: 401009716 Bug: 406802942 Test: N/A Change-Id: I0cd08fca0d067204f5577655c072744cf7cc7c8e
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.