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

Issue 1865283002: Use microsecond timestamp in cricket::VideoFrame. (Closed)

Created:
4 years, 8 months ago by nisse-webrtc
Modified:
4 years, 8 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Use microsecond timestamp in cricket::VideoFrame. BUG=webrtc:5740 Committed: https://crrev.com/f30ba114bb33dd1d8643bc640dda2e0c86dbbd32 Cr-Commit-Position: refs/heads/master@{#12348} Committed: https://crrev.com/b17712ff894b0bb06c36d12354f0a12def11ee81 Cr-Commit-Position: refs/heads/master@{#12358}

Patch Set 1 #

Patch Set 2 : Let VideoCapturer adjust timestamps. #

Total comments: 9

Patch Set 3 : Revert conversion, trust that CapturedFrame timestamps are right. #

Total comments: 6

Patch Set 4 : Additional timestamp debug logging (temporary). #

Patch Set 5 : Fix initialization of first_frame_timestamp_ms_. #

Patch Set 6 : Rebase. #

Patch Set 7 : Delete debug logging. Formatting tweaks. #

Total comments: 5

Patch Set 8 : Remove RTC_DCHECK, add interface comment instead. #

Patch Set 9 : Use rtc::Optional. #

Total comments: 8

Patch Set 10 : Rebase. #

Patch Set 11 : Address pbos' comments. #

Total comments: 4

Patch Set 12 : Address nits. Delete unused test method CreateEmptyFrame. #

Patch Set 13 : Revert deletion of CreateEmptyFrame. #

Patch Set 14 : Add missing override, intending to reland. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -72 lines) Patch
M webrtc/media/base/fakevideocapturer.h View 1 2 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M webrtc/media/base/videobroadcaster.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -4 lines 0 comments Download
M webrtc/media/base/videobroadcaster_unittest.cc View 1 2 chunks +6 lines, -6 lines 0 comments Download
M webrtc/media/base/videoframe.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +16 lines, -4 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M webrtc/media/engine/webrtcvideoengine2.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +9 lines, -7 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2_unittest.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/media/engine/webrtcvideoframe.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +25 lines, -14 lines 0 comments Download
M webrtc/media/engine/webrtcvideoframe.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +31 lines, -22 lines 0 comments Download
M webrtc/media/engine/webrtcvideoframe_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +14 lines, -7 lines 0 comments Download
M webrtc/media/engine/webrtcvideoframefactory_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 47 (16 generated)
nisse-webrtc
This cl implements step 1 of the grand plan. If we can agree this is ...
4 years, 8 months ago (2016-04-07 13:09:40 UTC) #2
perkj_webrtc
https://codereview.webrtc.org/1865283002/diff/20001/webrtc/media/base/videocapturer.cc File webrtc/media/base/videocapturer.cc (right): https://codereview.webrtc.org/1865283002/diff/20001/webrtc/media/base/videocapturer.cc#newcode227 webrtc/media/base/videocapturer.cc:227: int64_t timestamp_us = do this in the frame factory ...
4 years, 8 months ago (2016-04-08 08:22:49 UTC) #3
nisse-webrtc
https://codereview.webrtc.org/1865283002/diff/20001/webrtc/media/base/videocapturer.cc File webrtc/media/base/videocapturer.cc (right): https://codereview.webrtc.org/1865283002/diff/20001/webrtc/media/base/videocapturer.cc#newcode227 webrtc/media/base/videocapturer.cc:227: int64_t timestamp_us = On 2016/04/08 08:22:48, perkj_webrtc wrote: > ...
4 years, 8 months ago (2016-04-08 09:15:44 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1865283002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1865283002/40001
4 years, 8 months ago (2016-04-08 11:46:40 UTC) #6
nisse-webrtc
Dropped time offset and conversion for now. Instead, use CapturedFrame timestamps as is, and add ...
4 years, 8 months ago (2016-04-08 11:48:45 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_rel/builds/14082)
4 years, 8 months ago (2016-04-08 12:05:09 UTC) #9
perkj_webrtc
looks like there is one more test to update. Thinking about it I wonder if ...
4 years, 8 months ago (2016-04-08 14:52:18 UTC) #10
nisse-webrtc
About the DCHECK, I think it should probably be deleted before landing, and replaced by ...
4 years, 8 months ago (2016-04-11 06:58:57 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1865283002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1865283002/80001
4 years, 8 months ago (2016-04-12 09:56:48 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios32_sim_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios32_sim_dbg/builds/6600) ios64_sim_dbg on ...
4 years, 8 months ago (2016-04-12 09:57:39 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1865283002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1865283002/100001
4 years, 8 months ago (2016-04-12 10:10:36 UTC) #17
nisse-webrtc
The bug triggered in patchset 3 was the initialization of first_frame_timestamp_ms_. Zero was interpreted as ...
4 years, 8 months ago (2016-04-12 11:05:45 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1865283002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1865283002/120001
4 years, 8 months ago (2016-04-12 12:30:57 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL) ...
4 years, 8 months ago (2016-04-12 14:31:37 UTC) #22
perkj_webrtc
looks good. You should probably remove the DCHECK for ts before landing and test this ...
4 years, 8 months ago (2016-04-13 05:57:06 UTC) #23
nisse-webrtc
Dropped the DCHECK. About the various capturers on chrome, who should I coordinate with? I ...
4 years, 8 months ago (2016-04-13 06:54:50 UTC) #24
pbos-webrtc
https://codereview.webrtc.org/1865283002/diff/120001/webrtc/media/engine/webrtcvideoengine2.cc File webrtc/media/engine/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/1865283002/diff/120001/webrtc/media/engine/webrtcvideoengine2.cc#newcode1517 webrtc/media/engine/webrtcvideoengine2.cc:1517: first_frame_timestamp_valid_(false), On 2016/04/13 06:54:50, nisse-webrtc wrote: > On 2016/04/13 ...
4 years, 8 months ago (2016-04-13 09:56:24 UTC) #25
nisse-webrtc
https://codereview.webrtc.org/1865283002/diff/120001/webrtc/media/engine/webrtcvideoengine2.cc File webrtc/media/engine/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/1865283002/diff/120001/webrtc/media/engine/webrtcvideoengine2.cc#newcode1517 webrtc/media/engine/webrtcvideoengine2.cc:1517: first_frame_timestamp_valid_(false), On 2016/04/13 09:56:24, pbos-webrtc wrote: > On 2016/04/13 ...
4 years, 8 months ago (2016-04-13 11:30:47 UTC) #26
perkj_webrtc
On 2016/04/13 11:30:47, nisse-webrtc wrote: > https://codereview.webrtc.org/1865283002/diff/120001/webrtc/media/engine/webrtcvideoengine2.cc > File webrtc/media/engine/webrtcvideoengine2.cc (right): > > https://codereview.webrtc.org/1865283002/diff/120001/webrtc/media/engine/webrtcvideoengine2.cc#newcode1517 > ...
4 years, 8 months ago (2016-04-13 11:57:48 UTC) #27
pbos-webrtc
I'd like the timestamps back into constructor/copy/etc arguments, can't we do that? https://codereview.webrtc.org/1865283002/diff/160001/webrtc/media/engine/webrtcvideoframe.cc File webrtc/media/engine/webrtcvideoframe.cc ...
4 years, 8 months ago (2016-04-13 12:04:04 UTC) #28
nisse-webrtc
BTW, one user of set_timestamp_us is VideoBroadcaster, when it sends reused black frames. https://codereview.webrtc.org/1865283002/diff/160001/webrtc/media/engine/webrtcvideoframe.cc File ...
4 years, 8 months ago (2016-04-13 13:02:12 UTC) #29
pbos-webrtc
lgtm, I hope this lands fine :) https://codereview.webrtc.org/1865283002/diff/200001/webrtc/media/engine/webrtcvideoframe.h File webrtc/media/engine/webrtcvideoframe.h (right): https://codereview.webrtc.org/1865283002/diff/200001/webrtc/media/engine/webrtcvideoframe.h#newcode60 webrtc/media/engine/webrtcvideoframe.h:60: // RTC_DCHECK, ...
4 years, 8 months ago (2016-04-13 13:42:09 UTC) #30
nisse-webrtc
I'm a bit confused about the CreateEmptyFrame method in the tests. It overrides a private ...
4 years, 8 months ago (2016-04-13 14:37:33 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1865283002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1865283002/240001
4 years, 8 months ago (2016-04-13 14:40:11 UTC) #34
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 8 months ago (2016-04-13 16:36:58 UTC) #35
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/f30ba114bb33dd1d8643bc640dda2e0c86dbbd32 Cr-Commit-Position: refs/heads/master@{#12348}
4 years, 8 months ago (2016-04-13 16:37:08 UTC) #37
niklas.enbom
A revert of this CL (patchset #13 id:240001) has been created in https://codereview.webrtc.org/1884863004/ by niklas.enbom@webrtc.org. ...
4 years, 8 months ago (2016-04-13 17:45:36 UTC) #38
nisse-webrtc
On 2016/04/13 17:45:36, niklas.enbom wrote: > A revert of this CL (patchset #13 id:240001) has ...
4 years, 8 months ago (2016-04-14 06:49:57 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1865283002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1865283002/260001
4 years, 8 months ago (2016-04-14 07:22:04 UTC) #43
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 8 months ago (2016-04-14 09:29:34 UTC) #45
commit-bot: I haz the power
4 years, 8 months ago (2016-04-14 09:29:44 UTC) #47
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/b17712ff894b0bb06c36d12354f0a12def11ee81
Cr-Commit-Position: refs/heads/master@{#12358}

Powered by Google App Engine
This is Rietveld 408576698