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

Issue 2325563002: New method TimestampAligner::TranslateTimestamp (Closed)

Created:
4 years, 3 months ago by nisse-webrtc
Modified:
4 years, 3 months ago
Reviewers:
noahric, perkj_webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

New method TimestampAligner::TranslateTimestamp Also enforce a minimum inter-frame interval of 1 ms, fix a bug in the clipping logic, and improve comments. BUG=webrtc:5740 Committed: https://crrev.com/a075848ebddd90956187935e01d792043dce6ce4 Cr-Commit-Position: refs/heads/master@{#14206}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Make translated timestamps monotonous over reset. #

Total comments: 11

Patch Set 3 : Demote UpdateOffset and ClipTimestamp to protected. Added ClipToMonotonous test. #

Total comments: 9

Patch Set 4 : Log (unlikely) duplicate timestamps. Improve comments. #

Total comments: 9

Patch Set 5 : Minimum inter-frame interval 1ms. Fix clipping logic. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -108 lines) Patch
M webrtc/api/androidvideotracksource.cc View 1 2 2 chunks +2 lines, -5 lines 0 comments Download
M webrtc/base/timestampaligner.h View 1 2 3 4 3 chunks +29 lines, -5 lines 0 comments Download
M webrtc/base/timestampaligner.cc View 1 2 3 4 3 chunks +48 lines, -21 lines 0 comments Download
M webrtc/base/timestampaligner_unittest.cc View 1 2 3 4 2 chunks +122 lines, -68 lines 0 comments Download
M webrtc/media/base/videocapturer.cc View 1 2 2 chunks +4 lines, -9 lines 0 comments Download

Messages

Total messages: 22 (6 generated)
nisse-webrtc
Please have a look. Should eliminate duplicate timestamps.
4 years, 3 months ago (2016-09-08 06:53:43 UTC) #2
perkj_webrtc
https://codereview.webrtc.org/2325563002/diff/1/webrtc/base/timestampaligner.cc File webrtc/base/timestampaligner.cc (right): https://codereview.webrtc.org/2325563002/diff/1/webrtc/base/timestampaligner.cc#newcode96 webrtc/base/timestampaligner.cc:96: // timestamp, time_us, equal to system_time_us. Which also ensures ...
4 years, 3 months ago (2016-09-08 07:25:24 UTC) #3
nisse-webrtc
https://codereview.webrtc.org/2325563002/diff/1/webrtc/base/timestampaligner.cc File webrtc/base/timestampaligner.cc (right): https://codereview.webrtc.org/2325563002/diff/1/webrtc/base/timestampaligner.cc#newcode98 webrtc/base/timestampaligner.cc:98: RTC_DCHECK_EQ(time_us, system_time_us); On second look, it appears this expectation ...
4 years, 3 months ago (2016-09-08 08:14:09 UTC) #4
nisse-webrtc
Timestamps should now be monotonous also over reset. Also: Added a more user-friendly helper method ...
4 years, 3 months ago (2016-09-08 08:52:01 UTC) #5
perkj_webrtc
https://codereview.webrtc.org/2325563002/diff/20001/webrtc/base/timestampaligner.cc File webrtc/base/timestampaligner.cc (right): https://codereview.webrtc.org/2325563002/diff/20001/webrtc/base/timestampaligner.cc#newcode92 webrtc/base/timestampaligner.cc:92: clip_bias_us_ = 0; can this change be tested? https://codereview.webrtc.org/2325563002/diff/20001/webrtc/base/timestampaligner.h ...
4 years, 3 months ago (2016-09-08 13:41:05 UTC) #6
nisse-webrtc
https://codereview.webrtc.org/2325563002/diff/20001/webrtc/base/timestampaligner.cc File webrtc/base/timestampaligner.cc (right): https://codereview.webrtc.org/2325563002/diff/20001/webrtc/base/timestampaligner.cc#newcode92 webrtc/base/timestampaligner.cc:92: clip_bias_us_ = 0; On 2016/09/08 13:41:05, perkj_webrtc wrote: > ...
4 years, 3 months ago (2016-09-09 13:32:44 UTC) #7
noahric
Very cool :) I especially like the new API, reads much clearer to me. https://codereview.webrtc.org/2325563002/diff/40001/webrtc/base/timestampaligner.cc ...
4 years, 3 months ago (2016-09-09 23:37:55 UTC) #8
nisse-webrtc
https://codereview.webrtc.org/2325563002/diff/40001/webrtc/base/timestampaligner.cc File webrtc/base/timestampaligner.cc (right): https://codereview.webrtc.org/2325563002/diff/40001/webrtc/base/timestampaligner.cc#newcode81 webrtc/base/timestampaligner.cc:81: // otherwise very rare. The threshold of 300 ms ...
4 years, 3 months ago (2016-09-12 06:58:22 UTC) #9
perkj_webrtc
lgtm https://codereview.webrtc.org/2325563002/diff/40001/webrtc/base/timestampaligner.cc File webrtc/base/timestampaligner.cc (right): https://codereview.webrtc.org/2325563002/diff/40001/webrtc/base/timestampaligner.cc#newcode106 webrtc/base/timestampaligner.cc:106: time_us = prev_translated_time_us_ + 1; On 2016/09/12 06:58:22, ...
4 years, 3 months ago (2016-09-12 09:33:46 UTC) #10
nisse-webrtc
New version. Also found and fixed a bug in the clipping logic, have to apply ...
4 years, 3 months ago (2016-09-12 12:04:20 UTC) #12
nisse-webrtc
Noah: Do you have any additional comments? Per: You may want to have another look ...
4 years, 3 months ago (2016-09-13 13:13:57 UTC) #13
noahric
On 2016/09/13 13:13:57, nisse-webrtc wrote: > Noah: Do you have any additional comments? > > ...
4 years, 3 months ago (2016-09-14 00:05:04 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2325563002/80001
4 years, 3 months ago (2016-09-14 06:43:11 UTC) #17
perkj_webrtc
still lgtm
4 years, 3 months ago (2016-09-14 06:56:49 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-09-14 07:37:02 UTC) #20
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 07:37:11 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a075848ebddd90956187935e01d792043dce6ce4
Cr-Commit-Position: refs/heads/master@{#14206}

Powered by Google App Engine
This is Rietveld 408576698