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

Issue 2105683002: RtcVideoEncoder: use the timestamp from encoder. (Closed)

Created:
4 years, 5 months ago by wuchengli
Modified:
4 years, 5 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, mlamouri+watch-content_chromium.org, feature-media-reviews_chromium.org, jam, darin-cc_chromium.org, pbos, shenghao
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

RtcVideoEncoder: use the timestamp from encoder. Fallback to the current time if the timestamp from the encoder callback is 0. BUG=chromium:620565 TEST=Run apprtc loopback on oak. Committed: https://crrev.com/a31c66943657af646c8baaaab4ce42bb0f650931 Cr-Commit-Position: refs/heads/master@{#403423}

Patch Set 1 #

Patch Set 2 : use the timestamp from native handle #

Total comments: 2

Patch Set 3 : address Shenghao's comment and run git cl format #

Total comments: 6

Patch Set 4 : rebase #

Patch Set 5 : address mcasas' comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -10 lines) Patch
M content/renderer/media/gpu/rtc_video_encoder.cc View 1 2 3 4 2 chunks +16 lines, -10 lines 0 comments Download

Messages

Total messages: 29 (13 generated)
wuchengli
4 years, 5 months ago (2016-06-28 11:41:25 UTC) #4
pbos
lgtm, provided that implementations provide 0ms as default. Also put a BUG= in the description ...
4 years, 5 months ago (2016-06-28 11:50:14 UTC) #6
wuchengli
I found we need to use the timestamp from native handle if we are using ...
4 years, 5 months ago (2016-06-28 12:05:01 UTC) #7
wuchengli
I won't be able to test the new patchset from home. I'll upload the new ...
4 years, 5 months ago (2016-06-28 14:57:57 UTC) #9
wuchengli
PTAL. I also added BUG= in the change description.
4 years, 5 months ago (2016-06-29 03:43:39 UTC) #10
shenghao1
https://codereview.chromium.org/2105683002/diff/40001/content/renderer/media/rtc_video_encoder.cc File content/renderer/media/rtc_video_encoder.cc (right): https://codereview.chromium.org/2105683002/diff/40001/content/renderer/media/rtc_video_encoder.cc#newcode574 content/renderer/media/rtc_video_encoder.cc:574: base::TimeDelta timestamp; Consider to change to: base::TimeDelta timestamp = ...
4 years, 5 months ago (2016-06-29 08:39:18 UTC) #13
wuchengli
https://codereview.chromium.org/2105683002/diff/40001/content/renderer/media/rtc_video_encoder.cc File content/renderer/media/rtc_video_encoder.cc (right): https://codereview.chromium.org/2105683002/diff/40001/content/renderer/media/rtc_video_encoder.cc#newcode574 content/renderer/media/rtc_video_encoder.cc:574: base::TimeDelta timestamp; On 2016/06/29 08:39:17, shenghao1 wrote: > Consider ...
4 years, 5 months ago (2016-06-29 08:48:42 UTC) #14
shenghao1
lgtm
4 years, 5 months ago (2016-06-29 08:50:30 UTC) #15
pbos-webrtc
lgtm
4 years, 5 months ago (2016-06-29 09:31:06 UTC) #17
wuchengli
Miguel. Owner review. Thanks.
4 years, 5 months ago (2016-06-29 14:35:10 UTC) #18
mcasas
RS LGTM with a few ideas. https://codereview.chromium.org/2105683002/diff/60001/content/renderer/media/rtc_video_encoder.cc File content/renderer/media/rtc_video_encoder.cc (right): https://codereview.chromium.org/2105683002/diff/60001/content/renderer/media/rtc_video_encoder.cc#newcode482 content/renderer/media/rtc_video_encoder.cc:482: rtp_timestamp = static_cast<uint32_t>(timestamp.InMilliseconds()) ...
4 years, 5 months ago (2016-06-29 14:55:50 UTC) #19
wuchengli
https://codereview.chromium.org/2105683002/diff/60001/content/renderer/media/rtc_video_encoder.cc File content/renderer/media/rtc_video_encoder.cc (right): https://codereview.chromium.org/2105683002/diff/60001/content/renderer/media/rtc_video_encoder.cc#newcode482 content/renderer/media/rtc_video_encoder.cc:482: rtp_timestamp = static_cast<uint32_t>(timestamp.InMilliseconds()) * 90; On 2016/06/29 14:55:50, mcasas ...
4 years, 5 months ago (2016-07-01 06:19:09 UTC) #21
shenghao1
On 2016/07/01 06:19:09, wuchengli wrote: > https://codereview.chromium.org/2105683002/diff/60001/content/renderer/media/rtc_video_encoder.cc > File content/renderer/media/rtc_video_encoder.cc (right): > > https://codereview.chromium.org/2105683002/diff/60001/content/renderer/media/rtc_video_encoder.cc#newcode482 > ...
4 years, 5 months ago (2016-07-01 06:49:25 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2105683002/120001
4 years, 5 months ago (2016-07-01 06:54:04 UTC) #25
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 5 months ago (2016-07-01 07:39:39 UTC) #27
commit-bot: I haz the power
4 years, 5 months ago (2016-07-01 07:41:53 UTC) #29
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a31c66943657af646c8baaaab4ce42bb0f650931
Cr-Commit-Position: refs/heads/master@{#403423}

Powered by Google App Engine
This is Rietveld 408576698