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

Issue 1421583007: Mac Video Capture: Sending the timestamps provided by the driver to the capture pipeline (Closed)

Created:
5 years, 1 month ago by qiangchen
Modified:
5 years, 1 month ago
Reviewers:
mcasas, DaleCurtis, miu
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WebRTC render smoothness test shows on mac platform the timestamps on the video frames are quite irregular. The reason is that we read the system clock time, when the frame is available to chromium, but the system clock may not be high definition. In this CL, we changed the behavior to reading timestamp from the capture driver. BUG=549744 TEST=all unit test and browser test passing, apprtc working as before. Committed: https://crrev.com/543582a37b414c18a7593560bbfe4eda978e41f0 Cr-Commit-Position: refs/heads/master@{#359620}

Patch Set 1 : #

Total comments: 6

Patch Set 2 : Fallback #

Total comments: 4

Patch Set 3 : Style #

Patch Set 4 : Alignment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -5 lines) Patch
M media/base/mac/coremedia_glue.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/base/mac/coremedia_glue.mm View 5 chunks +19 lines, -0 lines 0 comments Download
M media/capture/video/mac/video_capture_device_avfoundation_mac.mm View 1 2 3 2 chunks +12 lines, -1 line 0 comments Download
M media/capture/video/mac/video_capture_device_mac.h View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
M media/capture/video/mac/video_capture_device_mac.mm View 1 2 3 4 chunks +15 lines, -2 lines 0 comments Download
M media/capture/video/mac/video_capture_device_qtkit_mac.mm View 1 2 3 2 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 41 (17 generated)
qiangchen
A similiar CL as we did not for Windows timestamp.
5 years, 1 month ago (2015-10-30 22:40:44 UTC) #8
mcasas
Almost there. https://codereview.chromium.org/1421583007/diff/60001/media/capture/video/mac/video_capture_device_avfoundation_mac.mm File media/capture/video/mac/video_capture_device_avfoundation_mac.mm (right): https://codereview.chromium.org/1421583007/diff/60001/media/capture/video/mac/video_capture_device_avfoundation_mac.mm#newcode331 media/capture/video/mac/video_capture_device_avfoundation_mac.mm:331: const int microseconds_per_second = 1000000; Instead of ...
5 years, 1 month ago (2015-10-31 03:24:26 UTC) #9
qiangchen
Did a fallback code path for invalid raw timestamps. https://codereview.chromium.org/1421583007/diff/60001/media/capture/video/mac/video_capture_device_avfoundation_mac.mm File media/capture/video/mac/video_capture_device_avfoundation_mac.mm (right): https://codereview.chromium.org/1421583007/diff/60001/media/capture/video/mac/video_capture_device_avfoundation_mac.mm#newcode331 media/capture/video/mac/video_capture_device_avfoundation_mac.mm:331: ...
5 years, 1 month ago (2015-11-02 18:21:21 UTC) #12
mcasas
https://codereview.chromium.org/1421583007/diff/120001/media/capture/video/mac/video_capture_device_avfoundation_mac.mm File media/capture/video/mac/video_capture_device_avfoundation_mac.mm (right): https://codereview.chromium.org/1421583007/diff/120001/media/capture/video/mac/video_capture_device_avfoundation_mac.mm#newcode8 media/capture/video/mac/video_capture_device_avfoundation_mac.mm:8: #import <CoreMedia/CoreMedia.h> Imports, same as includes, should follow alphabetical ...
5 years, 1 month ago (2015-11-02 18:59:18 UTC) #13
qiangchen
Done. https://codereview.chromium.org/1421583007/diff/120001/media/capture/video/mac/video_capture_device_avfoundation_mac.mm File media/capture/video/mac/video_capture_device_avfoundation_mac.mm (right): https://codereview.chromium.org/1421583007/diff/120001/media/capture/video/mac/video_capture_device_avfoundation_mac.mm#newcode8 media/capture/video/mac/video_capture_device_avfoundation_mac.mm:8: #import <CoreMedia/CoreMedia.h> On 2015/11/02 18:59:18, mcasas wrote: > ...
5 years, 1 month ago (2015-11-02 21:35:47 UTC) #14
mcasas
lgtm
5 years, 1 month ago (2015-11-02 22:19:48 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1421583007/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1421583007/140001
5 years, 1 month ago (2015-11-02 22:46:04 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/114875)
5 years, 1 month ago (2015-11-02 22:57:29 UTC) #19
qiangchen
Hi, Dale Can you take a quick look at this CL. We are solving the ...
5 years, 1 month ago (2015-11-02 23:26:57 UTC) #21
qiangchen
Hi, Dale: Can you take a quick look at this CL, specially the two files ...
5 years, 1 month ago (2015-11-05 21:56:38 UTC) #22
DaleCurtis
Hmm, well by doing this TimeTicks is no longer meaningful if we end up comparing ...
5 years, 1 month ago (2015-11-05 23:56:55 UTC) #24
qiangchen
On 2015/11/05 23:56:55, DaleCurtis wrote: > Hmm, well by doing this TimeTicks is no longer ...
5 years, 1 month ago (2015-11-06 00:15:02 UTC) #25
qiangchen
Ping miu@ for suggestions on how to convert the raw sample timestamps (essentially from capture ...
5 years, 1 month ago (2015-11-09 18:02:34 UTC) #26
miu
On 2015/11/09 18:02:34, qiangchenC wrote: > Ping miu@ for suggestions on how to convert the ...
5 years, 1 month ago (2015-11-10 21:25:33 UTC) #27
qiangchen
Did a timestamp alignment with Now().
5 years, 1 month ago (2015-11-11 00:23:54 UTC) #28
qiangchen
Did a timestamp alignment with Now().
5 years, 1 month ago (2015-11-11 00:23:55 UTC) #29
miu
lgtm
5 years, 1 month ago (2015-11-12 03:10:14 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1421583007/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1421583007/160001
5 years, 1 month ago (2015-11-12 16:38:59 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/117941)
5 years, 1 month ago (2015-11-12 16:48:46 UTC) #35
qiangchen
Ping dale@ to take a look at it. Other reviewers are not owner of media/base ...
5 years, 1 month ago (2015-11-12 16:52:12 UTC) #36
DaleCurtis
lgtm
5 years, 1 month ago (2015-11-12 19:34:48 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1421583007/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1421583007/160001
5 years, 1 month ago (2015-11-13 19:43:02 UTC) #39
commit-bot: I haz the power
Committed patchset #4 (id:160001)
5 years, 1 month ago (2015-11-13 20:26:18 UTC) #40
commit-bot: I haz the power
5 years, 1 month ago (2015-11-13 20:27:15 UTC) #41
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/543582a37b414c18a7593560bbfe4eda978e41f0
Cr-Commit-Position: refs/heads/master@{#359620}

Powered by Google App Engine
This is Rietveld 408576698