commit | 8a2af8f2ff8bf847cc4e0434d889b6d6c2ebb8d7 | [log] [tgz] |
---|---|---|
author | Tatsuyuki Ishi <ishitatsuyuki@google.com> | Fri Sep 02 16:00:53 2022 +0900 |
committer | crosvm LUCI <crosvm-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Sep 20 04:27:00 2022 +0000 |
tree | 6984332798010a7fccf6c31754aaadbd166a6fa6 | |
parent | 7b0dde4d8d5b2cb1a7ac0067c4ea1b2c36afc925 [diff] |
media: ffmpeg: Add bindings for encoding methods. try_send_frame and try_receive_packet together forms the basis of the (AVFrame-based) encoding API. This change adds helper methods for them, with the return value being handled similarly to their decoding counterpart. TryReceiveFrameResult has been renamed to TryReceiveResult as the encoding interface shares the handling of these return codes, and we'll be sharing this logic between try_receive_packet and try_receive_frame. BUG=b:239897269 TEST=cargo test --features "video-decoder,ffmpeg" -p ffmpeg -p devices Change-Id: I32c11053daed86c32067ac2b2a8f7218f6dbcd4f Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3868597 Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
crosvm is a virtual machine monitor (VMM) based on Linux’s KVM hypervisor, with a focus on simplicity, security, and speed. crosvm is intended to run Linux guests, originally as a security boundary for running native applications on the Chrome OS platform. Compared to QEMU, crosvm doesn’t emulate architectures or real hardware, instead concentrating on paravirtualized devices, such as the virtio standard.
crosvm is currently used to run Linux/Android guests on Chrome OS devices.