decoders/vaapi/tests: move VA struct checking to their own tests

These checks are very intrusive to the backend and decoder since they
have a side-effect and effectively steal the decoded images, preventing
the decoder from behaving as it would in real conditions.

Move these into a dedicated test, and also limit them to the test-25fps
stream since we are just checking that the construction of a structure
is done correctly.
25 files changed
tree: e130b02972888ae15316d50c500df6a60d6124a6
  1. src/
  2. .gitignore
  3. Cargo.lock
  4. Cargo.toml
  5. CONTRIBUTING.md
  6. LICENSE
  7. README.md
README.md

Cros-codecs

A lightweight, simple, low-dependencies, and hopefully safe crate for using hardware-accelerated decoding and encoding on Linux.

It is developed for use in ChromeOS (particularly crosvm), but has no ChromeOS dependencies and should this be usable anywhere.

This crate is still under heavy development. Currently implemented features are:

  • Stateless decoder support.
  • VAAPI decoder support (using cros-libva) for H.264, VP8 and VP9.

Future features:

  • Stateful V4L2 decoder support.
  • Stateless V4L2 decoder support.
  • Vaapi encoder support.
  • V4L2 encoder support.
  • Support for stateless H.265 and AV1.
  • C API to be used in non-Rust projects.