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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 if (vcm_->RegisterTransportCallback(this) != 0) { | 172 if (vcm_->RegisterTransportCallback(this) != 0) { |
173 return false; | 173 return false; |
174 } | 174 } |
175 if (vcm_->RegisterSendStatisticsCallback(this) != 0) { | 175 if (vcm_->RegisterSendStatisticsCallback(this) != 0) { |
176 return false; | 176 return false; |
177 } | 177 } |
178 return true; | 178 return true; |
179 } | 179 } |
180 | 180 |
181 void ViEEncoder::StartThreadsAndSetSharedMembers( | 181 void ViEEncoder::StartThreadsAndSetSharedMembers( |
182 scoped_refptr<PayloadRouter> send_payload_router, | 182 rtc::scoped_refptr<PayloadRouter> send_payload_router, |
183 VCMProtectionCallback* vcm_protection_callback) { | 183 VCMProtectionCallback* vcm_protection_callback) { |
184 DCHECK(send_payload_router_ == NULL); | 184 DCHECK(send_payload_router_ == NULL); |
185 | 185 |
186 send_payload_router_ = send_payload_router; | 186 send_payload_router_ = send_payload_router; |
187 vcm_->RegisterProtectionCallback(vcm_protection_callback); | 187 vcm_->RegisterProtectionCallback(vcm_protection_callback); |
188 module_process_thread_.RegisterModule(vcm_.get()); | 188 module_process_thread_.RegisterModule(vcm_.get()); |
189 } | 189 } |
190 | 190 |
191 void ViEEncoder::StopThreadsAndRemoveSharedMembers() { | 191 void ViEEncoder::StopThreadsAndRemoveSharedMembers() { |
192 if (bitrate_allocator_) | 192 if (bitrate_allocator_) |
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
863 } | 863 } |
864 | 864 |
865 int32_t QMVideoSettingsCallback::SetVideoQMSettings( | 865 int32_t QMVideoSettingsCallback::SetVideoQMSettings( |
866 const uint32_t frame_rate, | 866 const uint32_t frame_rate, |
867 const uint32_t width, | 867 const uint32_t width, |
868 const uint32_t height) { | 868 const uint32_t height) { |
869 return vpm_->SetTargetResolution(width, height, frame_rate); | 869 return vpm_->SetTargetResolution(width, height, frame_rate); |
870 } | 870 } |
871 | 871 |
872 } // namespace webrtc | 872 } // namespace webrtc |
OLD | NEW |