OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 13 matching lines...) Expand all Loading... | |
24 #include "webrtc/video/receive_statistics_proxy.h" | 24 #include "webrtc/video/receive_statistics_proxy.h" |
25 #include "webrtc/video/vie_channel.h" | 25 #include "webrtc/video/vie_channel.h" |
26 #include "webrtc/video/vie_encoder.h" | 26 #include "webrtc/video/vie_encoder.h" |
27 #include "webrtc/video_encoder.h" | 27 #include "webrtc/video_encoder.h" |
28 #include "webrtc/video_receive_stream.h" | 28 #include "webrtc/video_receive_stream.h" |
29 | 29 |
30 namespace webrtc { | 30 namespace webrtc { |
31 | 31 |
32 class CallStats; | 32 class CallStats; |
33 class CongestionController; | 33 class CongestionController; |
34 class IvfFileWriter; | |
34 class ProcessThread; | 35 class ProcessThread; |
35 class VoiceEngine; | 36 class VoiceEngine; |
36 class VieRemb; | 37 class VieRemb; |
37 | 38 |
38 namespace internal { | 39 namespace internal { |
39 | 40 |
40 class VideoReceiveStream : public webrtc::VideoReceiveStream, | 41 class VideoReceiveStream : public webrtc::VideoReceiveStream, |
41 public I420FrameCallback, | 42 public I420FrameCallback, |
42 public VideoRenderCallback, | 43 public VideoRenderCallback, |
43 public EncodedImageCallback, | 44 public EncodedImageCallback, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
81 | 82 |
82 void SetSyncChannel(VoiceEngine* voice_engine, int audio_channel_id); | 83 void SetSyncChannel(VoiceEngine* voice_engine, int audio_channel_id); |
83 | 84 |
84 // NackSender | 85 // NackSender |
85 void SendNack(const std::vector<uint16_t>& sequence_numbers) override; | 86 void SendNack(const std::vector<uint16_t>& sequence_numbers) override; |
86 | 87 |
87 // KeyFrameRequestSender | 88 // KeyFrameRequestSender |
88 void RequestKeyFrame() override; | 89 void RequestKeyFrame() override; |
89 | 90 |
90 private: | 91 private: |
92 static const bool kEnableFrameRecording = false; | |
pbos-webrtc
2016/04/13 22:01:14
This (= false) part should go in the cc file I thi
sprang_webrtc
2016/04/14 07:36:23
Done.
| |
93 | |
91 static bool DecodeThreadFunction(void* ptr); | 94 static bool DecodeThreadFunction(void* ptr); |
92 void Decode(); | 95 void Decode(); |
93 | 96 |
94 TransportAdapter transport_adapter_; | 97 TransportAdapter transport_adapter_; |
95 EncodedFrameCallbackAdapter encoded_frame_proxy_; | 98 EncodedFrameCallbackAdapter encoded_frame_proxy_; |
96 const VideoReceiveStream::Config config_; | 99 const VideoReceiveStream::Config config_; |
97 ProcessThread* const process_thread_; | 100 ProcessThread* const process_thread_; |
98 Clock* const clock_; | 101 Clock* const clock_; |
99 | 102 |
100 rtc::PlatformThread decode_thread_; | 103 rtc::PlatformThread decode_thread_; |
101 | 104 |
102 CongestionController* const congestion_controller_; | 105 CongestionController* const congestion_controller_; |
103 CallStats* const call_stats_; | 106 CallStats* const call_stats_; |
104 VieRemb* const remb_; | 107 VieRemb* const remb_; |
105 | 108 |
106 std::unique_ptr<VideoCodingModule> vcm_; | 109 std::unique_ptr<VideoCodingModule> vcm_; |
107 IncomingVideoStream incoming_video_stream_; | 110 IncomingVideoStream incoming_video_stream_; |
108 ReceiveStatisticsProxy stats_proxy_; | 111 ReceiveStatisticsProxy stats_proxy_; |
109 ViEChannel vie_channel_; | 112 ViEChannel vie_channel_; |
110 ViEReceiver* const vie_receiver_; | 113 ViEReceiver* const vie_receiver_; |
111 ViESyncModule vie_sync_; | 114 ViESyncModule vie_sync_; |
112 RtpRtcp* const rtp_rtcp_; | 115 RtpRtcp* const rtp_rtcp_; |
116 | |
117 std::unique_ptr<IvfFileWriter> ivf_writer_; | |
113 }; | 118 }; |
114 } // namespace internal | 119 } // namespace internal |
115 } // namespace webrtc | 120 } // namespace webrtc |
116 | 121 |
117 #endif // WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_ | 122 #endif // WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_ |
OLD | NEW |