commit | 776df2f6df1fe0085ab03262819520e6c72b16da | [log] [tgz] |
---|---|---|
author | Alexandre Courbot <acourbot@chromium.org> | Tue Dec 28 13:36:59 2021 +0900 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Jan 06 03:15:29 2022 +0000 |
tree | 78835e30e44adb8f534af3a6aff47b4cf34b3b0e | |
parent | 0739c780c3c15327dac9b4196e3c15d70c80fbf0 [diff] |
virtio: video: encoder: support single-buffer input frames Currently the crosvm encoder device only supports single-buffer frames, yet the encoder requires as many buffers to be submitted as there are component planes in the frame (e.g. 2 for NV12). This is incorrect and in effect the encoder ignores all but the first plane, but nonetheless it expects the number of submitted buffers to be equal to the number of component planes. This makes it impossible to fix the issue at the kernel level using http://crrev.com/c/3358090. Change the expectation about the number of buffers to support both single-planar and multi-planar submissions. That way we won't break the encoder while fixing the problem on the guest side. BUG=b:212214039 TEST=arc.VideoEncodeAccel.h264_192p_i420_vm passes on zork-arc-r. Change-Id: I62763a9dd754697eaab0bae421604a25b0a2f7d3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3358440 Reviewed-by: David Staessens <dstaessens@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: 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.