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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 stats_proxy_->OnSendEncodedImage(encoded_image, rtp_video_hdr); | 477 stats_proxy_->OnSendEncodedImage(encoded_image, rtp_video_hdr); |
478 | 478 |
479 return send_payload_router_->RoutePayload( | 479 return send_payload_router_->RoutePayload( |
480 encoded_image._frameType, payload_type, encoded_image._timeStamp, | 480 encoded_image._frameType, payload_type, encoded_image._timeStamp, |
481 encoded_image.capture_time_ms_, encoded_image._buffer, | 481 encoded_image.capture_time_ms_, encoded_image._buffer, |
482 encoded_image._length, &fragmentation_header, rtp_video_hdr) | 482 encoded_image._length, &fragmentation_header, rtp_video_hdr) |
483 ? 0 | 483 ? 0 |
484 : -1; | 484 : -1; |
485 } | 485 } |
486 | 486 |
| 487 void ViEEncoder::OnEncoderImplementationName( |
| 488 const char* implementation_name) { |
| 489 if (stats_proxy_) |
| 490 stats_proxy_->OnEncoderImplementationName(implementation_name); |
| 491 } |
| 492 |
487 int32_t ViEEncoder::SendStatistics(const uint32_t bit_rate, | 493 int32_t ViEEncoder::SendStatistics(const uint32_t bit_rate, |
488 const uint32_t frame_rate) { | 494 const uint32_t frame_rate) { |
489 if (stats_proxy_) | 495 if (stats_proxy_) |
490 stats_proxy_->OnOutgoingRate(frame_rate, bit_rate); | 496 stats_proxy_->OnOutgoingRate(frame_rate, bit_rate); |
491 return 0; | 497 return 0; |
492 } | 498 } |
493 | 499 |
494 void ViEEncoder::OnReceivedSLI(uint32_t /*ssrc*/, | 500 void ViEEncoder::OnReceivedSLI(uint32_t /*ssrc*/, |
495 uint8_t picture_id) { | 501 uint8_t picture_id) { |
496 CriticalSectionScoped cs(data_cs_.get()); | 502 CriticalSectionScoped cs(data_cs_.get()); |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 const uint32_t width, | 637 const uint32_t width, |
632 const uint32_t height) { | 638 const uint32_t height) { |
633 return vpm_->SetTargetResolution(width, height, frame_rate); | 639 return vpm_->SetTargetResolution(width, height, frame_rate); |
634 } | 640 } |
635 | 641 |
636 void QMVideoSettingsCallback::SetTargetFramerate(int frame_rate) { | 642 void QMVideoSettingsCallback::SetTargetFramerate(int frame_rate) { |
637 vpm_->SetTargetFramerate(frame_rate); | 643 vpm_->SetTargetFramerate(frame_rate); |
638 } | 644 } |
639 | 645 |
640 } // namespace webrtc | 646 } // namespace webrtc |
OLD | NEW |