OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 rtc::SequencedTaskChecker sequenced_checker_; | 137 rtc::SequencedTaskChecker sequenced_checker_; |
138 | 138 |
139 rtc::CriticalSection params_crit_; | 139 rtc::CriticalSection params_crit_; |
140 EncoderParameters encoder_params_ GUARDED_BY(params_crit_); | 140 EncoderParameters encoder_params_ GUARDED_BY(params_crit_); |
141 bool encoder_has_internal_source_ GUARDED_BY(params_crit_); | 141 bool encoder_has_internal_source_ GUARDED_BY(params_crit_); |
142 std::vector<FrameType> next_frame_types_ GUARDED_BY(params_crit_); | 142 std::vector<FrameType> next_frame_types_ GUARDED_BY(params_crit_); |
143 }; | 143 }; |
144 | 144 |
145 class VideoReceiver : public Module { | 145 class VideoReceiver : public Module { |
146 public: | 146 public: |
147 typedef VideoCodingModule::ReceiverRobustness ReceiverRobustness; | |
148 | |
149 VideoReceiver(Clock* clock, | 147 VideoReceiver(Clock* clock, |
150 EventFactory* event_factory, | 148 EventFactory* event_factory, |
151 EncodedImageCallback* pre_decode_image_callback, | 149 EncodedImageCallback* pre_decode_image_callback, |
152 VCMTiming* timing, | 150 VCMTiming* timing, |
153 NackSender* nack_sender = nullptr, | 151 NackSender* nack_sender = nullptr, |
154 KeyFrameRequestSender* keyframe_request_sender = nullptr); | 152 KeyFrameRequestSender* keyframe_request_sender = nullptr); |
155 ~VideoReceiver(); | 153 ~VideoReceiver(); |
156 | 154 |
157 int32_t RegisterReceiveCodec(const VideoCodec* receiveCodec, | 155 int32_t RegisterReceiveCodec(const VideoCodec* receiveCodec, |
158 int32_t numberOfCores, | 156 int32_t numberOfCores, |
(...skipping 14 matching lines...) Expand all Loading... |
173 // Called on the decoder thread when thread is exiting. | 171 // Called on the decoder thread when thread is exiting. |
174 void DecodingStopped(); | 172 void DecodingStopped(); |
175 | 173 |
176 int32_t IncomingPacket(const uint8_t* incomingPayload, | 174 int32_t IncomingPacket(const uint8_t* incomingPayload, |
177 size_t payloadLength, | 175 size_t payloadLength, |
178 const WebRtcRTPHeader& rtpInfo); | 176 const WebRtcRTPHeader& rtpInfo); |
179 int32_t SetMinimumPlayoutDelay(uint32_t minPlayoutDelayMs); | 177 int32_t SetMinimumPlayoutDelay(uint32_t minPlayoutDelayMs); |
180 int32_t SetRenderDelay(uint32_t timeMS); | 178 int32_t SetRenderDelay(uint32_t timeMS); |
181 int32_t Delay() const; | 179 int32_t Delay() const; |
182 | 180 |
183 int SetReceiverRobustnessMode(ReceiverRobustness robustnessMode, | 181 // DEPRECATED. |
184 VCMDecodeErrorMode errorMode); | 182 int SetReceiverRobustnessMode( |
| 183 VideoCodingModule::ReceiverRobustness robustnessMode, |
| 184 VCMDecodeErrorMode errorMode); |
| 185 |
185 void SetNackSettings(size_t max_nack_list_size, | 186 void SetNackSettings(size_t max_nack_list_size, |
186 int max_packet_age_to_nack, | 187 int max_packet_age_to_nack, |
187 int max_incomplete_time_ms); | 188 int max_incomplete_time_ms); |
188 | 189 |
189 void SetDecodeErrorMode(VCMDecodeErrorMode decode_error_mode); | 190 void SetDecodeErrorMode(VCMDecodeErrorMode decode_error_mode); |
190 int SetMinReceiverDelay(int desired_delay_ms); | 191 int SetMinReceiverDelay(int desired_delay_ms); |
191 | 192 |
192 int32_t SetReceiveChannelParameters(int64_t rtt); | 193 int32_t SetReceiveChannelParameters(int64_t rtt); |
193 int32_t SetVideoProtection(VCMVideoProtection videoProtection, bool enable); | 194 int32_t SetVideoProtection(VCMVideoProtection videoProtection, bool enable); |
194 | 195 |
(...skipping 30 matching lines...) Expand all Loading... |
225 VCMProcessTimer _receiveStatsTimer; | 226 VCMProcessTimer _receiveStatsTimer; |
226 VCMProcessTimer _retransmissionTimer; | 227 VCMProcessTimer _retransmissionTimer; |
227 VCMProcessTimer _keyRequestTimer; | 228 VCMProcessTimer _keyRequestTimer; |
228 QpParser qp_parser_; | 229 QpParser qp_parser_; |
229 ThreadUnsafeOneTimeEvent first_frame_received_; | 230 ThreadUnsafeOneTimeEvent first_frame_received_; |
230 }; | 231 }; |
231 | 232 |
232 } // namespace vcm | 233 } // namespace vcm |
233 } // namespace webrtc | 234 } // namespace webrtc |
234 #endif // WEBRTC_MODULES_VIDEO_CODING_VIDEO_CODING_IMPL_H_ | 235 #endif // WEBRTC_MODULES_VIDEO_CODING_VIDEO_CODING_IMPL_H_ |
OLD | NEW |