| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 class WebRtcLocalStreamInfo; | 54 class WebRtcLocalStreamInfo; |
| 55 class WebRtcRenderAdapter; | 55 class WebRtcRenderAdapter; |
| 56 class WebRtcVideoChannel2; | 56 class WebRtcVideoChannel2; |
| 57 class WebRtcVideoChannelRecvInfo; | 57 class WebRtcVideoChannelRecvInfo; |
| 58 class WebRtcVideoChannelSendInfo; | 58 class WebRtcVideoChannelSendInfo; |
| 59 class WebRtcVoiceEngine; | 59 class WebRtcVoiceEngine; |
| 60 class WebRtcVoiceMediaChannel; | 60 class WebRtcVoiceMediaChannel; |
| 61 | 61 |
| 62 struct Device; | 62 struct Device; |
| 63 | 63 |
| 64 // Exposed here for unittests. |
| 65 std::vector<VideoCodec> DefaultVideoCodecList(); |
| 66 |
| 64 class UnsignalledSsrcHandler { | 67 class UnsignalledSsrcHandler { |
| 65 public: | 68 public: |
| 66 enum Action { | 69 enum Action { |
| 67 kDropPacket, | 70 kDropPacket, |
| 68 kDeliverPacket, | 71 kDeliverPacket, |
| 69 }; | 72 }; |
| 70 virtual Action OnUnsignalledSsrc(WebRtcVideoChannel2* channel, | 73 virtual Action OnUnsignalledSsrc(WebRtcVideoChannel2* channel, |
| 71 uint32_t ssrc) = 0; | 74 uint32_t ssrc) = 0; |
| 72 virtual ~UnsignalledSsrcHandler() = default; | 75 virtual ~UnsignalledSsrcHandler() = default; |
| 73 }; | 76 }; |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 bool conference_mode; | 294 bool conference_mode; |
| 292 rtc::Optional<VideoCodecSettings> codec_settings; | 295 rtc::Optional<VideoCodecSettings> codec_settings; |
| 293 // Sent resolutions + bitrates etc. by the underlying VideoSendStream, | 296 // Sent resolutions + bitrates etc. by the underlying VideoSendStream, |
| 294 // typically changes when setting a new resolution or reconfiguring | 297 // typically changes when setting a new resolution or reconfiguring |
| 295 // bitrates. | 298 // bitrates. |
| 296 webrtc::VideoEncoderConfig encoder_config; | 299 webrtc::VideoEncoderConfig encoder_config; |
| 297 }; | 300 }; |
| 298 | 301 |
| 299 struct AllocatedEncoder { | 302 struct AllocatedEncoder { |
| 300 AllocatedEncoder(webrtc::VideoEncoder* encoder, | 303 AllocatedEncoder(webrtc::VideoEncoder* encoder, |
| 301 const cricket::VideoCodec& codec, | 304 webrtc::VideoCodecType type, |
| 302 bool external); | 305 bool external); |
| 303 webrtc::VideoEncoder* encoder; | 306 webrtc::VideoEncoder* encoder; |
| 304 webrtc::VideoEncoder* external_encoder; | 307 webrtc::VideoEncoder* external_encoder; |
| 305 cricket::VideoCodec codec; | 308 webrtc::VideoCodecType type; |
| 306 bool external; | 309 bool external; |
| 307 }; | 310 }; |
| 308 | 311 |
| 309 // TODO(perkj): VideoFrameInfo is currently used for sending a black frame | 312 // TODO(perkj): VideoFrameInfo is currently used for sending a black frame |
| 310 // when the video source is removed. Consider moving that logic to | 313 // when the video source is removed. Consider moving that logic to |
| 311 // VieEncoder or remove it. | 314 // VieEncoder or remove it. |
| 312 struct VideoFrameInfo { | 315 struct VideoFrameInfo { |
| 313 VideoFrameInfo() | 316 VideoFrameInfo() |
| 314 : width(0), | 317 : width(0), |
| 315 height(0), | 318 height(0), |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 // send_params/recv_params, rtp_extensions, options, etc. | 508 // send_params/recv_params, rtp_extensions, options, etc. |
| 506 VideoSendParameters send_params_; | 509 VideoSendParameters send_params_; |
| 507 VideoOptions default_send_options_; | 510 VideoOptions default_send_options_; |
| 508 VideoRecvParameters recv_params_; | 511 VideoRecvParameters recv_params_; |
| 509 int64_t last_stats_log_ms_; | 512 int64_t last_stats_log_ms_; |
| 510 }; | 513 }; |
| 511 | 514 |
| 512 } // namespace cricket | 515 } // namespace cricket |
| 513 | 516 |
| 514 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ | 517 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ |
| OLD | NEW |