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 |
11 #ifndef WEBRTC_VIDEO_VIE_ENCODER_H_ | 11 #ifndef WEBRTC_VIDEO_VIE_ENCODER_H_ |
12 #define WEBRTC_VIDEO_VIE_ENCODER_H_ | 12 #define WEBRTC_VIDEO_VIE_ENCODER_H_ |
13 | 13 |
14 #include <map> | 14 #include <map> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
| 17 #include "webrtc/base/criticalsection.h" |
17 #include "webrtc/base/scoped_ptr.h" | 18 #include "webrtc/base/scoped_ptr.h" |
18 #include "webrtc/base/scoped_ref_ptr.h" | 19 #include "webrtc/base/scoped_ref_ptr.h" |
19 #include "webrtc/base/thread_annotations.h" | 20 #include "webrtc/base/thread_annotations.h" |
20 #include "webrtc/call/bitrate_allocator.h" | 21 #include "webrtc/call/bitrate_allocator.h" |
21 #include "webrtc/common_types.h" | 22 #include "webrtc/common_types.h" |
22 #include "webrtc/frame_callback.h" | 23 #include "webrtc/frame_callback.h" |
23 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 24 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
24 #include "webrtc/modules/video_coding/include/video_coding_defines.h" | 25 #include "webrtc/modules/video_coding/include/video_coding_defines.h" |
25 #include "webrtc/modules/video_processing/include/video_processing.h" | 26 #include "webrtc/modules/video_processing/include/video_processing.h" |
26 #include "webrtc/typedefs.h" | 27 #include "webrtc/typedefs.h" |
27 #include "webrtc/video/video_capture_input.h" | 28 #include "webrtc/video/video_capture_input.h" |
28 | 29 |
29 namespace webrtc { | 30 namespace webrtc { |
30 | 31 |
31 class BitrateAllocator; | 32 class BitrateAllocator; |
32 class BitrateObserver; | 33 class BitrateObserver; |
33 class Config; | 34 class Config; |
34 class CriticalSectionWrapper; | |
35 class EncodedImageCallback; | 35 class EncodedImageCallback; |
36 class PacedSender; | 36 class PacedSender; |
37 class PayloadRouter; | 37 class PayloadRouter; |
38 class ProcessThread; | 38 class ProcessThread; |
39 class QMVideoSettingsCallback; | 39 class QMVideoSettingsCallback; |
40 class SendStatisticsProxy; | 40 class SendStatisticsProxy; |
41 class ViEBitrateObserver; | 41 class ViEBitrateObserver; |
42 class ViEEffectFilter; | 42 class ViEEffectFilter; |
43 class VideoCodingModule; | 43 class VideoCodingModule; |
44 | 44 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 void TraceFrameDropStart() EXCLUSIVE_LOCKS_REQUIRED(data_cs_); | 151 void TraceFrameDropStart() EXCLUSIVE_LOCKS_REQUIRED(data_cs_); |
152 void TraceFrameDropEnd() EXCLUSIVE_LOCKS_REQUIRED(data_cs_); | 152 void TraceFrameDropEnd() EXCLUSIVE_LOCKS_REQUIRED(data_cs_); |
153 | 153 |
154 const uint32_t number_of_cores_; | 154 const uint32_t number_of_cores_; |
155 | 155 |
156 const rtc::scoped_ptr<VideoProcessing> vp_; | 156 const rtc::scoped_ptr<VideoProcessing> vp_; |
157 const rtc::scoped_ptr<QMVideoSettingsCallback> qm_callback_; | 157 const rtc::scoped_ptr<QMVideoSettingsCallback> qm_callback_; |
158 const rtc::scoped_ptr<VideoCodingModule> vcm_; | 158 const rtc::scoped_ptr<VideoCodingModule> vcm_; |
159 rtc::scoped_refptr<PayloadRouter> send_payload_router_; | 159 rtc::scoped_refptr<PayloadRouter> send_payload_router_; |
160 | 160 |
161 rtc::scoped_ptr<CriticalSectionWrapper> data_cs_; | 161 mutable rtc::CriticalSection data_cs_; |
162 rtc::scoped_ptr<BitrateObserver> bitrate_observer_; | 162 rtc::scoped_ptr<BitrateObserver> bitrate_observer_; |
163 | 163 |
164 SendStatisticsProxy* const stats_proxy_; | 164 SendStatisticsProxy* const stats_proxy_; |
165 I420FrameCallback* const pre_encode_callback_; | 165 I420FrameCallback* const pre_encode_callback_; |
166 PacedSender* const pacer_; | 166 PacedSender* const pacer_; |
167 BitrateAllocator* const bitrate_allocator_; | 167 BitrateAllocator* const bitrate_allocator_; |
168 | 168 |
169 // The time we last received an input frame or encoded frame. This is used to | 169 // The time we last received an input frame or encoded frame. This is used to |
170 // track when video is stopped long enough that we also want to stop sending | 170 // track when video is stopped long enough that we also want to stop sending |
171 // padding. | 171 // padding. |
(...skipping 15 matching lines...) Expand all Loading... |
187 bool has_received_rpsi_ GUARDED_BY(data_cs_); | 187 bool has_received_rpsi_ GUARDED_BY(data_cs_); |
188 uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_); | 188 uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_); |
189 std::map<uint32_t, int> ssrc_streams_ GUARDED_BY(data_cs_); | 189 std::map<uint32_t, int> ssrc_streams_ GUARDED_BY(data_cs_); |
190 | 190 |
191 bool video_suspended_ GUARDED_BY(data_cs_); | 191 bool video_suspended_ GUARDED_BY(data_cs_); |
192 }; | 192 }; |
193 | 193 |
194 } // namespace webrtc | 194 } // namespace webrtc |
195 | 195 |
196 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ | 196 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ |
OLD | NEW |