Use enum class for VideoCodecMode and VideoCodecComplexity.
Bug: webrtc:7660 Change-Id: I6a8ef01f8abcc25c8efaf0af387408343a7c8ba3 Reviewed-on: https://webrtc-review.googlesource.com/81240 Commit-Queue: Niels Moller <nisse@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23595}
This commit is contained in:
@ -471,7 +471,8 @@ void SimulcastEncoderAdapter::PopulateStreamCodec(
|
||||
// kComplexityHigher, which maps to cpu_used = -4.
|
||||
int pixels_per_frame = stream_codec->width * stream_codec->height;
|
||||
if (pixels_per_frame < 352 * 288) {
|
||||
stream_codec->VP8()->complexity = webrtc::kComplexityHigher;
|
||||
stream_codec->VP8()->complexity =
|
||||
webrtc::VideoCodecComplexity::kComplexityHigher;
|
||||
}
|
||||
// Turn off denoising for all streams but the highest resolution.
|
||||
stream_codec->VP8()->denoisingOn = false;
|
||||
|
||||
Reference in New Issue
Block a user