Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: webrtc/video_engine/vie_encoder.cc

Issue 1406903002: Expose codec implementation names in stats. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 VCMEncodedFrame::ConvertFrameType(encoded_image._frameType), payload_type,
562 encoded_image._timeStamp, encoded_image.capture_time_ms_, 562 encoded_image._timeStamp, encoded_image.capture_time_ms_,
563 encoded_image._buffer, encoded_image._length, &fragmentation_header, 563 encoded_image._buffer, encoded_image._length, &fragmentation_header,
564 rtp_video_hdr) ? 0 : -1; 564 rtp_video_hdr) ? 0 : -1;
565 } 565 }
566 566
567 void ViEEncoder::OnEncoderImplementationName(
568 const char* implementation_name) {
569 if (stats_proxy_)
570 stats_proxy_->OnEncoderImplementationName(implementation_name);
571 }
572
567 int32_t ViEEncoder::SendStatistics(const uint32_t bit_rate, 573 int32_t ViEEncoder::SendStatistics(const uint32_t bit_rate,
568 const uint32_t frame_rate) { 574 const uint32_t frame_rate) {
569 if (stats_proxy_) 575 if (stats_proxy_)
570 stats_proxy_->OnOutgoingRate(frame_rate, bit_rate); 576 stats_proxy_->OnOutgoingRate(frame_rate, bit_rate);
571 return 0; 577 return 0;
572 } 578 }
573 579
574 void ViEEncoder::OnReceivedSLI(uint32_t /*ssrc*/, 580 void ViEEncoder::OnReceivedSLI(uint32_t /*ssrc*/,
575 uint8_t picture_id) { 581 uint8_t picture_id) {
576 CriticalSectionScoped cs(data_cs_.get()); 582 CriticalSectionScoped cs(data_cs_.get());
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 const uint32_t width, 724 const uint32_t width,
719 const uint32_t height) { 725 const uint32_t height) {
720 return vpm_->SetTargetResolution(width, height, frame_rate); 726 return vpm_->SetTargetResolution(width, height, frame_rate);
721 } 727 }
722 728
723 void QMVideoSettingsCallback::SetTargetFramerate(int frame_rate) { 729 void QMVideoSettingsCallback::SetTargetFramerate(int frame_rate) {
724 vpm_->SetTargetFramerate(frame_rate); 730 vpm_->SetTargetFramerate(frame_rate);
725 } 731 }
726 732
727 } // namespace webrtc 733 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698