media: cros-codecs: h264: remove new_handle backend method

We can obtain the same thing by just cloning the backend handle, so
let's just do that.

BUG=b:214478588
TEST=cargo test --features vaapi -p cros-codecs

Change-Id: I0afb841f5d16f8161ff5c82586ef791492df0d36
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4164538
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Reviewed-by: Daniel Almeida <daniel.almeida@collabora.corp-partner.google.com>
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
4 files changed
tree: 395f471d772cf578eddb8910272cf1daa6e840b5
  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.