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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 stats_proxy_->OnSendEncodedImage(encoded_image, rtp_video_hdr); | 552 stats_proxy_->OnSendEncodedImage(encoded_image, rtp_video_hdr); |
553 | 553 |
554 return send_payload_router_->RoutePayload( | 554 return send_payload_router_->RoutePayload( |
555 encoded_image._frameType, payload_type, encoded_image._timeStamp, | 555 encoded_image._frameType, payload_type, encoded_image._timeStamp, |
556 encoded_image.capture_time_ms_, encoded_image._buffer, | 556 encoded_image.capture_time_ms_, encoded_image._buffer, |
557 encoded_image._length, &fragmentation_header, rtp_video_hdr) | 557 encoded_image._length, &fragmentation_header, rtp_video_hdr) |
558 ? 0 | 558 ? 0 |
559 : -1; | 559 : -1; |
560 } | 560 } |
561 | 561 |
| 562 void ViEEncoder::OnEncoderImplementationName( |
| 563 const char* implementation_name) { |
| 564 if (stats_proxy_) |
| 565 stats_proxy_->OnEncoderImplementationName(implementation_name); |
| 566 } |
| 567 |
562 int32_t ViEEncoder::SendStatistics(const uint32_t bit_rate, | 568 int32_t ViEEncoder::SendStatistics(const uint32_t bit_rate, |
563 const uint32_t frame_rate) { | 569 const uint32_t frame_rate) { |
564 if (stats_proxy_) | 570 if (stats_proxy_) |
565 stats_proxy_->OnOutgoingRate(frame_rate, bit_rate); | 571 stats_proxy_->OnOutgoingRate(frame_rate, bit_rate); |
566 return 0; | 572 return 0; |
567 } | 573 } |
568 | 574 |
569 void ViEEncoder::OnReceivedSLI(uint32_t /*ssrc*/, | 575 void ViEEncoder::OnReceivedSLI(uint32_t /*ssrc*/, |
570 uint8_t picture_id) { | 576 uint8_t picture_id) { |
571 CriticalSectionScoped cs(data_cs_.get()); | 577 CriticalSectionScoped cs(data_cs_.get()); |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 const uint32_t width, | 720 const uint32_t width, |
715 const uint32_t height) { | 721 const uint32_t height) { |
716 return vpm_->SetTargetResolution(width, height, frame_rate); | 722 return vpm_->SetTargetResolution(width, height, frame_rate); |
717 } | 723 } |
718 | 724 |
719 void QMVideoSettingsCallback::SetTargetFramerate(int frame_rate) { | 725 void QMVideoSettingsCallback::SetTargetFramerate(int frame_rate) { |
720 vpm_->SetTargetFramerate(frame_rate); | 726 vpm_->SetTargetFramerate(frame_rate); |
721 } | 727 } |
722 | 728 |
723 } // namespace webrtc | 729 } // namespace webrtc |
OLD | NEW |