commit | 477ae1216ad8e2551031c697b7174259f8ba1346 | [log] [tgz] |
---|---|---|
author | Justin Green <greenjustin@google.com> | Tue Dec 17 10:37:11 2024 -0500 |
committer | Hirokazu Honda <hiroh@google.com> | Thu Jan 30 14:09:42 2025 -0800 |
tree | d4ddf10e5269bd13483ec48a93f8336633f13721 | |
parent | 3e2ffc5105ed1d8783025c336aba8883070f94de [diff] |
Fix AV1 frame size override logic When the frame size override flag is set to true, the parser should read the `found_ref` bits to find a reference frame to set the frame size to. Currently this bit is interpretted to correspond directly with a reference frame, but it should actually correspond to an entry in the `ref_frame_idx` table, which in turn corresponds to a reference frame. Bug: 382695401 Test: video.PlatformDecoding.cros_codecs_vaapi_av1_files_from_bugs_346405213 Change-Id: Id7a0db51d5ca879d2e84674678248721807472fa
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.