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

Issue 159517: Implemented a proper clock for audio/video synchronization. (Closed)

Created:
11 years, 4 months ago by scherkus (not reviewing)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Implemented a proper clock for audio/video synchronization. More or less a change to pull out time management from PipelineImpl into a new class ClockImpl. Biggest difference is ClockImpl will use the system clock + linear interpolation to provide a more "precise" representation of the current playback position. BUG=16508 TEST=a/v sync should remain the same, currentTime should report more precise values Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=21882

Patch Set 1 #

Patch Set 2 : git try #

Patch Set 3 : Fixed gcc #

Total comments: 15

Patch Set 4 : Fixes #

Patch Set 5 : Now with convenience! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+437 lines, -26 lines) Patch
A media/base/clock.h View 1 2 3 4 1 chunk +47 lines, -0 lines 0 comments Download
A media/base/clock_impl.h View 1 2 3 4 1 chunk +60 lines, -0 lines 0 comments Download
A media/base/clock_impl.cc View 1 2 3 4 1 chunk +65 lines, -0 lines 0 comments Download
A media/base/clock_impl_unittest.cc View 1 2 3 4 1 chunk +217 lines, -0 lines 0 comments Download
M media/base/pipeline_impl.h View 2 chunks +5 lines, -2 lines 0 comments Download
M media/base/pipeline_impl.cc View 1 2 3 9 chunks +15 lines, -8 lines 0 comments Download
M media/filters/video_renderer_base.cc View 1 2 3 2 chunks +24 lines, -16 lines 0 comments Download
M media/media.gyp View 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
scherkus (not reviewing)
11 years, 4 months ago (2009-07-28 17:53:24 UTC) #1
awong
couple of comments. Look pretty cool though! http://codereview.chromium.org/159517/diff/11/13 File media/base/clock_impl.cc (right): http://codereview.chromium.org/159517/diff/11/13#newcode13 Line 13: playback_rate_(1.0f) ...
11 years, 4 months ago (2009-07-28 18:34:18 UTC) #2
scherkus (not reviewing)
http://codereview.chromium.org/159517/diff/11/14 File media/base/clock_impl.h (right): http://codereview.chromium.org/159517/diff/11/14#newcode18 Line 18: // Static function pointer that acts as a ...
11 years, 4 months ago (2009-07-28 19:30:25 UTC) #3
awong
http://codereview.chromium.org/159517/diff/11/15 File media/base/clock_impl_unittest.cc (right): http://codereview.chromium.org/159517/diff/11/15#newcode71 Line 71: EXPECT_EQ(kExpected, clock.Now()); On 2009/07/28 19:30:25, scherkus wrote: > ...
11 years, 4 months ago (2009-07-28 19:35:15 UTC) #4
scherkus (not reviewing)
added convenience + tests
11 years, 4 months ago (2009-07-28 19:48:23 UTC) #5
awong
11 years, 4 months ago (2009-07-28 19:50:12 UTC) #6
LGTM

Powered by Google App Engine
This is Rietveld 408576698