Disable encoder scaling on iPhone4S.

Scaling causes us to work the CPU too much, which very quickly degrades quality. This causes us to at least behave better on good networks.

NOTRY=True
BUG=

Review-Url: https://codereview.webrtc.org/2205763002
Cr-Commit-Position: refs/heads/master@{#13630}
This commit is contained in:
tkchin
2016-08-03 12:57:09 -07:00
committed by Commit bot
parent 9dfa249796
commit 6ce738da31
5 changed files with 21 additions and 6 deletions

View File

@ -582,6 +582,7 @@ AVFoundationVideoCapturer::AVFoundationVideoCapturer()
#if TARGET_OS_IPHONE
if ([UIDevice deviceType] == RTCDeviceTypeIPhone4S) {
supported_formats.push_back(cricket::VideoFormat(kIPhone4SFormat));
set_enable_video_adapter(false);
} else {
supported_formats.push_back(cricket::VideoFormat(kDefaultFormat));
}