| commit | a35d1884a9ea9a6ded602351699264a3972055c1 | [log] [tgz] |
|---|---|---|
| author | Fritz Koenig <frkoenig@google.com> | Wed Jul 23 13:32:11 2025 -0700 |
| committer | Fritz Koenig <frkoenig@google.com> | Wed Jul 23 14:40:09 2025 -0700 |
| tree | 35f9347affeeaacd47c1213519c95b25dde90fe8 | |
| parent | f065abf16293dcc80bda5c3135a59ae621f6d298 [diff] |
h.264: Preserve max_num_reorder_frames across dpb clear
Like max_num_pics, max_num_reorder_frames is only set in
set_limits(). However, max_num_reorder_frames was not being
preserved when the dpb was cleared in clear(), it was reset
to the default value.
There isn't a specific test case that was failing due to this
omission, but adding it makes sense.
Bug: 432092431
Test: atest android.media.decoder.cts.DecoderTest#testBFrames
Test: atest --test-mapping \
vendor/google/desktop/video/chromium-codec2:desktop-postsubmit
Change-Id: I5d383d398c21c8414f2ee59aab2ec2c3770294f5
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.