| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #include "webrtc/modules/video_coding/include/video_codec_initializer.h" | 11 #include "webrtc/modules/video_coding/include/video_codec_initializer.h" |
| 12 | 12 |
| 13 #include "webrtc/base/basictypes.h" | 13 #include "webrtc/base/basictypes.h" |
| 14 #include "webrtc/base/logging.h" | 14 #include "webrtc/base/logging.h" |
| 15 #include "webrtc/common_video/include/video_bitrate_allocator.h" | 15 #include "webrtc/common_video/include/video_bitrate_allocator.h" |
| 16 #include "webrtc/common_types.h" | 16 #include "webrtc/common_types.h" |
| 17 #include "webrtc/modules/video_coding/codecs/vp8/screenshare_layers.h" | 17 #include "webrtc/modules/video_coding/codecs/vp8/screenshare_layers.h" |
| 18 #include "webrtc/modules/video_coding/codecs/vp8/simulcast_rate_allocator.h" |
| 18 #include "webrtc/modules/video_coding/codecs/vp8/temporal_layers.h" | 19 #include "webrtc/modules/video_coding/codecs/vp8/temporal_layers.h" |
| 19 #include "webrtc/modules/video_coding/utility/simulcast_rate_allocator.h" | |
| 20 #include "webrtc/modules/video_coding/utility/default_video_bitrate_allocator.h" | 20 #include "webrtc/modules/video_coding/utility/default_video_bitrate_allocator.h" |
| 21 #include "webrtc/system_wrappers/include/clock.h" | 21 #include "webrtc/system_wrappers/include/clock.h" |
| 22 | 22 |
| 23 namespace webrtc { | 23 namespace webrtc { |
| 24 | 24 |
| 25 bool VideoCodecInitializer::SetupCodec( | 25 bool VideoCodecInitializer::SetupCodec( |
| 26 const VideoEncoderConfig& config, | 26 const VideoEncoderConfig& config, |
| 27 const VideoSendStream::Config::EncoderSettings settings, | 27 const VideoSendStream::Config::EncoderSettings settings, |
| 28 const std::vector<VideoStream>& streams, | 28 const std::vector<VideoStream>& streams, |
| 29 bool nack_enabled, | 29 bool nack_enabled, |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 } | 221 } |
| 222 if (video_codec.maxBitrate < kEncoderMinBitrateKbps) | 222 if (video_codec.maxBitrate < kEncoderMinBitrateKbps) |
| 223 video_codec.maxBitrate = kEncoderMinBitrateKbps; | 223 video_codec.maxBitrate = kEncoderMinBitrateKbps; |
| 224 | 224 |
| 225 RTC_DCHECK_GT(streams[0].max_framerate, 0); | 225 RTC_DCHECK_GT(streams[0].max_framerate, 0); |
| 226 video_codec.maxFramerate = streams[0].max_framerate; | 226 video_codec.maxFramerate = streams[0].max_framerate; |
| 227 return video_codec; | 227 return video_codec; |
| 228 } | 228 } |
| 229 | 229 |
| 230 } // namespace webrtc | 230 } // namespace webrtc |
| OLD | NEW |