| 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 |
| 11 #ifndef WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ | 11 #ifndef WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ |
| 12 #define WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ | 12 #define WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ |
| 13 | 13 |
| 14 #include <map> | 14 #include <map> |
| 15 #include <memory> | 15 #include <memory> |
| 16 #include <set> | 16 #include <set> |
| 17 #include <string> | 17 #include <string> |
| 18 #include <vector> | 18 #include <vector> |
| 19 | 19 |
| 20 #include "webrtc/base/asyncinvoker.h" | 20 #include "webrtc/base/asyncinvoker.h" |
| 21 #include "webrtc/base/criticalsection.h" | 21 #include "webrtc/base/criticalsection.h" |
| 22 #include "webrtc/base/networkroute.h" | 22 #include "webrtc/base/networkroute.h" |
| 23 #include "webrtc/base/thread_annotations.h" | 23 #include "webrtc/base/thread_annotations.h" |
| 24 #include "webrtc/base/thread_checker.h" | 24 #include "webrtc/base/thread_checker.h" |
| 25 #include "webrtc/media/base/videosinkinterface.h" | 25 #include "webrtc/media/base/videosinkinterface.h" |
| 26 #include "webrtc/media/base/videosourceinterface.h" | 26 #include "webrtc/media/base/videosourceinterface.h" |
| 27 #include "webrtc/call.h" | 27 #include "webrtc/call.h" |
| 28 #include "webrtc/media/base/mediaengine.h" | 28 #include "webrtc/media/base/mediaengine.h" |
| 29 #include "webrtc/media/base/videoframe.h" |
| 29 #include "webrtc/media/engine/webrtcvideochannelfactory.h" | 30 #include "webrtc/media/engine/webrtcvideochannelfactory.h" |
| 30 #include "webrtc/media/engine/webrtcvideodecoderfactory.h" | 31 #include "webrtc/media/engine/webrtcvideodecoderfactory.h" |
| 31 #include "webrtc/media/engine/webrtcvideoencoderfactory.h" | 32 #include "webrtc/media/engine/webrtcvideoencoderfactory.h" |
| 32 #include "webrtc/transport.h" | 33 #include "webrtc/transport.h" |
| 33 #include "webrtc/video_frame.h" | 34 #include "webrtc/video_frame.h" |
| 34 #include "webrtc/video_receive_stream.h" | 35 #include "webrtc/video_receive_stream.h" |
| 35 #include "webrtc/video_send_stream.h" | 36 #include "webrtc/video_send_stream.h" |
| 36 | 37 |
| 37 namespace webrtc { | 38 namespace webrtc { |
| 38 class VideoDecoder; | 39 class VideoDecoder; |
| 39 class VideoEncoder; | 40 class VideoEncoder; |
| 40 struct MediaConfig; | 41 struct MediaConfig; |
| 41 } | 42 } |
| 42 | 43 |
| 43 namespace rtc { | 44 namespace rtc { |
| 44 class Thread; | 45 class Thread; |
| 45 } // namespace rtc | 46 } // namespace rtc |
| 46 | 47 |
| 47 namespace cricket { | 48 namespace cricket { |
| 48 | 49 |
| 49 class VideoCapturer; | 50 class VideoCapturer; |
| 51 // TODO(nisse): For some reason, forward declaration doens't work when |
| 52 // the definition is a "using" alias. |
| 53 #if 0 |
| 50 class VideoFrame; | 54 class VideoFrame; |
| 55 #endif |
| 51 class VideoProcessor; | 56 class VideoProcessor; |
| 52 class VideoRenderer; | 57 class VideoRenderer; |
| 53 class VoiceMediaChannel; | 58 class VoiceMediaChannel; |
| 54 class WebRtcDecoderObserver; | 59 class WebRtcDecoderObserver; |
| 55 class WebRtcEncoderObserver; | 60 class WebRtcEncoderObserver; |
| 56 class WebRtcLocalStreamInfo; | 61 class WebRtcLocalStreamInfo; |
| 57 class WebRtcRenderAdapter; | 62 class WebRtcRenderAdapter; |
| 58 class WebRtcVideoChannelRecvInfo; | 63 class WebRtcVideoChannelRecvInfo; |
| 59 class WebRtcVideoChannelSendInfo; | 64 class WebRtcVideoChannelSendInfo; |
| 60 class WebRtcVoiceEngine; | 65 class WebRtcVoiceEngine; |
| 61 class WebRtcVoiceMediaChannel; | 66 class WebRtcVoiceMediaChannel; |
| 62 | 67 |
| 63 struct CapturedFrame; | |
| 64 struct Device; | 68 struct Device; |
| 65 | 69 |
| 66 // Exposed here for unittests. | 70 // Exposed here for unittests. |
| 67 std::vector<VideoCodec> DefaultVideoCodecList(); | 71 std::vector<VideoCodec> DefaultVideoCodecList(); |
| 68 | 72 |
| 69 class UnsignalledSsrcHandler { | 73 class UnsignalledSsrcHandler { |
| 70 public: | 74 public: |
| 71 enum Action { | 75 enum Action { |
| 72 kDropPacket, | 76 kDropPacket, |
| 73 kDeliverPacket, | 77 kDeliverPacket, |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 VideoSendParameters send_params_; | 556 VideoSendParameters send_params_; |
| 553 VideoOptions default_send_options_; | 557 VideoOptions default_send_options_; |
| 554 VideoRecvParameters recv_params_; | 558 VideoRecvParameters recv_params_; |
| 555 bool red_disabled_by_remote_side_; | 559 bool red_disabled_by_remote_side_; |
| 556 int64_t last_stats_log_ms_; | 560 int64_t last_stats_log_ms_; |
| 557 }; | 561 }; |
| 558 | 562 |
| 559 } // namespace cricket | 563 } // namespace cricket |
| 560 | 564 |
| 561 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ | 565 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ |
| OLD | NEW |