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