| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 | 180 |
| 181 // AdaptReason is used for expressing why a WebRtcVideoSendStream request | 181 // AdaptReason is used for expressing why a WebRtcVideoSendStream request |
| 182 // a lower input frame size than the currently configured camera input frame | 182 // a lower input frame size than the currently configured camera input frame |
| 183 // size. There can be more than one reason OR:ed together. | 183 // size. There can be more than one reason OR:ed together. |
| 184 enum AdaptReason { | 184 enum AdaptReason { |
| 185 ADAPTREASON_NONE = 0, | 185 ADAPTREASON_NONE = 0, |
| 186 ADAPTREASON_CPU = 1, | 186 ADAPTREASON_CPU = 1, |
| 187 ADAPTREASON_BANDWIDTH = 2, | 187 ADAPTREASON_BANDWIDTH = 2, |
| 188 }; | 188 }; |
| 189 | 189 |
| 190 static constexpr int kDefaultQpMax = 56; |
| 191 |
| 190 private: | 192 private: |
| 191 class WebRtcVideoReceiveStream; | 193 class WebRtcVideoReceiveStream; |
| 192 struct VideoCodecSettings { | 194 struct VideoCodecSettings { |
| 193 VideoCodecSettings(); | 195 VideoCodecSettings(); |
| 194 | 196 |
| 195 // Checks if all members of |*this| are equal to the corresponding members | 197 // Checks if all members of |*this| are equal to the corresponding members |
| 196 // of |other|. | 198 // of |other|. |
| 197 bool operator==(const VideoCodecSettings& other) const; | 199 bool operator==(const VideoCodecSettings& other) const; |
| 198 bool operator!=(const VideoCodecSettings& other) const; | 200 bool operator!=(const VideoCodecSettings& other) const; |
| 199 | 201 |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 // send_params/recv_params, rtp_extensions, options, etc. | 521 // send_params/recv_params, rtp_extensions, options, etc. |
| 520 VideoSendParameters send_params_; | 522 VideoSendParameters send_params_; |
| 521 VideoOptions default_send_options_; | 523 VideoOptions default_send_options_; |
| 522 VideoRecvParameters recv_params_; | 524 VideoRecvParameters recv_params_; |
| 523 int64_t last_stats_log_ms_; | 525 int64_t last_stats_log_ms_; |
| 524 }; | 526 }; |
| 525 | 527 |
| 526 } // namespace cricket | 528 } // namespace cricket |
| 527 | 529 |
| 528 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE_H_ | 530 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE_H_ |
| OLD | NEW |