[Chromoting] Enable WebrtcVideoEncoderGpu

Desktop / Chromium - Zijie He [chromium.org] - 11 October 2017 19:20 EDT

This change includes several small tweaks to improve WebrtcVideoEncoderGpu into "runnable" state. 1. Make the WebrtcVideoEncoderGpu be linkable. 2. Forward keyframe requests to the encoder. 3. Load required dlls in HostAttributes. 4. Set RTPFragmentationheader and CodecSpecificInfoH264 when H264 encoder is used.

After this change, H264 encoder can be selected by host binary. But the image quality cannot meet "workable" bar.

Bug: chromium:769391 Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Change-Id: I832958ee4e28f92540576685dc4f156b156f4668 Reviewed-on: https://chromium-review.googlesource.com/699795

caea1e4 [Chromoting] Enable WebrtcVideoEncoderGpu
remoting/codec/BUILD.gn | 3 +
remoting/codec/webrtc_video_encoder_gpu.cc | 19 ++++--
remoting/host/BUILD.gn | 3 +
remoting/host/DEPS | 3 +
remoting/host/host_attributes.cc | 10 +++
remoting/protocol/BUILD.gn | 11 ++++
remoting/protocol/DEPS | 1 +
remoting/protocol/webrtc_dummy_video_encoder.cc | 86 ++++++++++++++++++++++---
remoting/protocol/webrtc_video_stream.cc | 14 ++--
9 files changed, 131 insertions(+), 19 deletions(-)

Upstream: git.chromium.org


  • Share