mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 10:32:10 +00:00
563008fc99
Currently changing the framerate during video encoding will always fail once resources are queued on the input or output queue. This CL makes adaptations to the crosvm encoder to fix dynamic framerate changes. To support dynamic parameter changes the crosvm encoder will now properly check whether values actually changed, and only report an error if we're trying to change static parameters during encoding (such as the output format). As a side effect this greatly reduces the amount of times the Chrome encoder is recreated; parameters are configured one-by-one through virtio and each parameter change requires us to initialize an encoder, as we only know the coded size after the initialized encoder calls the RequireBitstreamBuffers() callback. BUG=b:192623395,b:192419592 TEST=android.media.gts.RtcVideoCodecTest#testDynamicFramerateChangeVp8 Change-Id: I20e60013dbdf9f4b139c795f503c6a08a7d3e6e9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3005194 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: David Staessens <dstaessens@chromium.org> Reviewed-by: Alexandre Courbot <acourbot@chromium.org> |
||
---|---|---|
.. | ||
src | ||
.build_test_serial | ||
Cargo.toml |