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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 stats_proxy_->OnSendEncodedImage(encoded_image, rtp_video_hdr); | 465 stats_proxy_->OnSendEncodedImage(encoded_image, rtp_video_hdr); |
466 | 466 |
467 return send_payload_router_->RoutePayload( | 467 return send_payload_router_->RoutePayload( |
468 encoded_image._frameType, payload_type, encoded_image._timeStamp, | 468 encoded_image._frameType, payload_type, encoded_image._timeStamp, |
469 encoded_image.capture_time_ms_, encoded_image._buffer, | 469 encoded_image.capture_time_ms_, encoded_image._buffer, |
470 encoded_image._length, &fragmentation_header, rtp_video_hdr) | 470 encoded_image._length, &fragmentation_header, rtp_video_hdr) |
471 ? 0 | 471 ? 0 |
472 : -1; | 472 : -1; |
473 } | 473 } |
474 | 474 |
| 475 void ViEEncoder::OnEncoderImplementationName( |
| 476 const char* implementation_name) { |
| 477 if (stats_proxy_) |
| 478 stats_proxy_->OnEncoderImplementationName(implementation_name); |
| 479 } |
| 480 |
475 int32_t ViEEncoder::SendStatistics(const uint32_t bit_rate, | 481 int32_t ViEEncoder::SendStatistics(const uint32_t bit_rate, |
476 const uint32_t frame_rate) { | 482 const uint32_t frame_rate) { |
477 if (stats_proxy_) | 483 if (stats_proxy_) |
478 stats_proxy_->OnOutgoingRate(frame_rate, bit_rate); | 484 stats_proxy_->OnOutgoingRate(frame_rate, bit_rate); |
479 return 0; | 485 return 0; |
480 } | 486 } |
481 | 487 |
482 void ViEEncoder::OnReceivedSLI(uint32_t /*ssrc*/, | 488 void ViEEncoder::OnReceivedSLI(uint32_t /*ssrc*/, |
483 uint8_t picture_id) { | 489 uint8_t picture_id) { |
484 CriticalSectionScoped cs(data_cs_.get()); | 490 CriticalSectionScoped cs(data_cs_.get()); |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 const uint32_t width, | 625 const uint32_t width, |
620 const uint32_t height) { | 626 const uint32_t height) { |
621 return vp_->SetTargetResolution(width, height, frame_rate); | 627 return vp_->SetTargetResolution(width, height, frame_rate); |
622 } | 628 } |
623 | 629 |
624 void QMVideoSettingsCallback::SetTargetFramerate(int frame_rate) { | 630 void QMVideoSettingsCallback::SetTargetFramerate(int frame_rate) { |
625 vp_->SetTargetFramerate(frame_rate); | 631 vp_->SetTargetFramerate(frame_rate); |
626 } | 632 } |
627 | 633 |
628 } // namespace webrtc | 634 } // namespace webrtc |
OLD | NEW |