|
|
Decouple capture timestamp and reference time
In this CL, we make the captured VideoFrame to take capture device
timestamp; and take system clock reference time.
Background:
Previously, we have only timestamp parameter, and it actually
plays the role as timestamp and reference_time.
Here we define timestamp as the ideal time span between
the current frame and the first frame in the stream.
Define reference time as the system clock time when the frame
gets generated.
Ideally, timestamp can be derived from reference_time.
However, in reality, especially in a multi process application
like Chrome, system clock read has noise on the order of 5ms.
To overcome that, we found the original timestamp from camera
driver is much smoother. But the defect is that the camera
clock would have a drift with respect to the system clock.
Thus a perfect solution would be that we take system time for
reference time, which is used for AV sync; we stream timestamp
to the remote side, which will make the rendering smooth.
This CL is complete for the complete fix.
BUG= 601657
TBR=palmer@chromium.org
Committed: https://crrev.com/4387613998060e4d1691434d0be687bf012596ce
Cr-Commit-Position: refs/heads/master@{#399304}
Total comments: 16
Total comments: 8
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+142 lines, -119 lines) |
Patch |
 |
M |
content/browser/media/capture/desktop_capture_device_aura_unittest.cc
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/media/capture/desktop_capture_device_unittest.cc
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/media/capture/web_contents_video_capture_device_unittest.cc
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/video_capture_controller.h
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/video_capture_controller.cc
|
View
|
1
|
2 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/video_capture_controller_event_handler.h
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/video_capture_controller_unittest.cc
|
View
|
1
|
8 chunks |
+32 lines, -23 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/video_capture_device_client.h
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/video_capture_device_client.cc
|
View
|
1
|
2 chunks |
+8 lines, -9 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/video_capture_device_client_unittest.cc
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/video_capture_gpu_jpeg_decoder.h
|
View
|
1
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/video_capture_gpu_jpeg_decoder.cc
|
View
|
1
|
3 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/video_capture_host.h
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/video_capture_host.cc
|
View
|
1
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/video_capture_manager_unittest.cc
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/common/media/video_capture_messages.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/media/video_capture_impl.h
|
View
|
1
|
2 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/video_capture_impl.cc
|
View
|
1
2
3
|
7 chunks |
+29 lines, -17 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/video_capture_impl_unittest.cc
|
View
|
1
2
|
1 chunk |
+11 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/video_capture_message_filter.h
|
View
|
1
|
1 chunk |
+7 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/video_capture_message_filter_unittest.cc
|
View
|
1
2
3
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
media/capture/content/thread_safe_capture_oracle.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/capture/content/thread_safe_capture_oracle.cc
|
View
|
1
|
2 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
 |
M |
media/capture/video/fake_video_capture_device_unittest.cc
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
media/capture/video/video_capture_device.h
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
media/capture/video/video_capture_device_unittest.cc
|
View
|
1
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
Total messages: 34 (18 generated)
|