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

Unified Diff: webrtc/api/video/video_timing.cc

Issue 2995953002: Revert of Add a flags field to video timing extension. (Closed)
Patch Set: Created 3 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/api/video/video_timing.h ('k') | webrtc/common_video/include/video_frame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/video/video_timing.cc
diff --git a/webrtc/api/video/video_timing.cc b/webrtc/api/video/video_timing.cc
index 0d22f904bf0f8cac635afbd934415d38fcfb3189..a0a3f4d10f70df71da505f726d6d19ebf35ca307 100644
--- a/webrtc/api/video/video_timing.cc
+++ b/webrtc/api/video/video_timing.cc
@@ -27,8 +27,7 @@
receive_finish_ms(-1),
decode_start_ms(-1),
decode_finish_ms(-1),
- render_time_ms(-1),
- flags(TimingFrameFlags::kDefault) {}
+ render_time_ms(-1) {}
int64_t TimingFrameInfo::EndToEndDelay() const {
return capture_time_ms >= 0 ? decode_finish_ms - capture_time_ms : -1;
@@ -39,31 +38,14 @@
return other_delay == -1 || EndToEndDelay() > other_delay;
}
-bool TimingFrameInfo::IsOutlier() const {
- return !IsInvalid() && (flags & TimingFrameFlags::kTriggeredBySize);
-}
-
-bool TimingFrameInfo::IsTimerTriggered() const {
- return !IsInvalid() && (flags & TimingFrameFlags::kTriggeredByTimer);
-}
-
-bool TimingFrameInfo::IsInvalid() const {
- return flags == TimingFrameFlags::kInvalid;
-}
-
std::string TimingFrameInfo::ToString() const {
std::stringstream out;
- if (IsInvalid()) {
- out << "[Invalid]";
- } else {
- out << rtp_timestamp << ',' << capture_time_ms << ',' << encode_start_ms
- << ',' << encode_finish_ms << ',' << packetization_finish_ms << ','
- << pacer_exit_ms << ',' << network_timestamp_ms << ','
- << network2_timestamp_ms << ',' << receive_start_ms << ','
- << receive_finish_ms << ',' << decode_start_ms << ','
- << decode_finish_ms << ',' << render_time_ms << ", outlier_triggered "
- << IsOutlier() << ", timer_triggered " << IsTimerTriggered();
- }
+ out << rtp_timestamp << ',' << capture_time_ms << ',' << encode_start_ms
+ << ',' << encode_finish_ms << ',' << packetization_finish_ms << ','
+ << pacer_exit_ms << ',' << network_timestamp_ms << ','
+ << network2_timestamp_ms << ',' << receive_start_ms << ','
+ << receive_finish_ms << ',' << decode_start_ms << ',' << decode_finish_ms
+ << ',' << render_time_ms;
return out.str();
}
« no previous file with comments | « webrtc/api/video/video_timing.h ('k') | webrtc/common_video/include/video_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698