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

Side by Side Diff: webrtc/video/video_receive_stream.cc

Issue 2946413002: Report timing frames info in GetStats. (Closed)
Patch Set: rebase Created 3 years, 5 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 call_stats_->DeregisterStatsObserver(video_stream_decoder_.get()); 337 call_stats_->DeregisterStatsObserver(video_stream_decoder_.get());
338 video_stream_decoder_.reset(); 338 video_stream_decoder_.reset();
339 incoming_video_stream_.reset(); 339 incoming_video_stream_.reset();
340 transport_adapter_.Disable(); 340 transport_adapter_.Disable();
341 } 341 }
342 342
343 VideoReceiveStream::Stats VideoReceiveStream::GetStats() const { 343 VideoReceiveStream::Stats VideoReceiveStream::GetStats() const {
344 return stats_proxy_.GetStats(); 344 return stats_proxy_.GetStats();
345 } 345 }
346 346
347 rtc::Optional<TimingFrameInfo> VideoReceiveStream::GetTimingFrameInfo() {
sprang_webrtc 2017/07/06 09:13:08 same here
ilnik 2017/07/06 09:28:37 Done.
348 return stats_proxy_.GetTimingFrameInfo();
349 }
350
347 void VideoReceiveStream::EnableEncodedFrameRecording(rtc::PlatformFile file, 351 void VideoReceiveStream::EnableEncodedFrameRecording(rtc::PlatformFile file,
348 size_t byte_limit) { 352 size_t byte_limit) {
349 { 353 {
350 rtc::CritScope lock(&ivf_writer_lock_); 354 rtc::CritScope lock(&ivf_writer_lock_);
351 if (file == rtc::kInvalidPlatformFileValue) { 355 if (file == rtc::kInvalidPlatformFileValue) {
352 ivf_writer_.reset(); 356 ivf_writer_.reset();
353 } else { 357 } else {
354 ivf_writer_ = IvfFileWriter::Wrap(rtc::File(file), byte_limit); 358 ivf_writer_ = IvfFileWriter::Wrap(rtc::File(file), byte_limit);
355 } 359 }
356 } 360 }
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 if (stream_is_active && !receiving_keyframe) { 516 if (stream_is_active && !receiving_keyframe) {
513 LOG(LS_WARNING) << "No decodable frame in " << kMaxWaitForFrameMs 517 LOG(LS_WARNING) << "No decodable frame in " << kMaxWaitForFrameMs
514 << " ms, requesting keyframe."; 518 << " ms, requesting keyframe.";
515 RequestKeyFrame(); 519 RequestKeyFrame();
516 } 520 }
517 } 521 }
518 return true; 522 return true;
519 } 523 }
520 } // namespace internal 524 } // namespace internal
521 } // namespace webrtc 525 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698