summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiaxun Yang <jiaxun.yang@flygoat.com>2020-05-12 12:40:15 +0800
committerMoonchild <moonchild@palemoon.org>2020-05-20 14:03:38 +0000
commitb67a630966a7431fc80c2c42412d8652907845e8 (patch)
tree982672757614d92bfa1d323afd4da3f79cfb5d80
parenta148bd40d85ca3d9cf01b079002c6d3a106be7ca (diff)
downloadUXP-b67a630966a7431fc80c2c42412d8652907845e8.tar
UXP-b67a630966a7431fc80c2c42412d8652907845e8.tar.gz
UXP-b67a630966a7431fc80c2c42412d8652907845e8.tar.lz
UXP-b67a630966a7431fc80c2c42412d8652907845e8.tar.xz
UXP-b67a630966a7431fc80c2c42412d8652907845e8.zip
Issue #1542 - [WebRTC] Set CPU speed to -1 on MIPS
CPU is pretty slow due to lack of SIMD optmization.
-rw-r--r--media/webrtc/trunk/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/media/webrtc/trunk/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc b/media/webrtc/trunk/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc
index 5eb0fd279..b6a9fc596 100644
--- a/media/webrtc/trunk/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc
+++ b/media/webrtc/trunk/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc
@@ -615,6 +615,11 @@ int VP8EncoderImpl::SetCpuSpeed(int width, int height) {
// On mobile platform, always set to -12 to leverage between cpu usage
// and video quality.
return -12;
+#elif defined(WEBRTC_ARCH_MIPS)
+ // On mips platform, temporarily set to -12 to leverage between cpu usage
+ // and video quality.
+ // TODO: Once improved the coding performance,recover the complexity setting.
+ return -12;
#else
// For non-ARM, increase encoding complexity (i.e., use lower speed setting)
// if resolution is below CIF. Otherwise, keep the default/user setting