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

Issue 545593002: [Cast] Track audio queued in encoder; account for it in ShouldDropNextFrame(). (Closed)

Created:
6 years, 3 months ago by miu
Modified:
6 years, 3 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, imcheng+watch_chromium.org, hguihot+watch_chromium.org, jasonroberts+watch_google.com, avayvod+watch_chromium.org, pwestin+watch_google.com, feature-media-reviews_chromium.org, miu+watch_chromium.org, hubbe+watch_chromium.org, mikhal+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Cast] Track audio queued in encoder; account for it in ShouldDropNextFrame(). This change is a prerequisite for transitioning the "max outstanding frames" decision logic over to a time-based heuristic. It adds tracking of the number of audio samples enqueued in the encoder, from which the needed backlog stats can be determined. Also, this introduces an abstract method in FrameSender, GetNumberOfFramesInEncoder(), since this is computed differently for audio versus video. BUG=404813 Committed: https://crrev.com/182520b878bee21aad3500391cd51d486e37bf1e Cr-Commit-Position: refs/heads/master@{#293987}

Patch Set 1 #

Total comments: 4

Patch Set 2 : rebase + MERGE (post-hubbe's refactoring changes) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -30 lines) Patch
M media/cast/sender/audio_encoder.h View 2 chunks +5 lines, -1 line 0 comments Download
M media/cast/sender/audio_encoder.cc View 6 chunks +25 lines, -3 lines 0 comments Download
M media/cast/sender/audio_encoder_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M media/cast/sender/audio_sender.h View 1 1 chunk +6 lines, -3 lines 0 comments Download
M media/cast/sender/audio_sender.cc View 1 3 chunks +24 lines, -8 lines 0 comments Download
M media/cast/sender/frame_sender.h View 1 3 chunks +7 lines, -6 lines 0 comments Download
M media/cast/sender/frame_sender.cc View 1 3 chunks +2 lines, -7 lines 0 comments Download
M media/cast/sender/video_sender.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M media/cast/sender/video_sender.cc View 1 3 chunks +17 lines, -1 line 0 comments Download

Messages

Total messages: 11 (4 generated)
miu
hclam: PTAL.
6 years, 3 months ago (2014-09-04 19:25:14 UTC) #2
Alpha Left Google
https://codereview.chromium.org/545593002/diff/1/media/cast/sender/audio_sender.cc File media/cast/sender/audio_sender.cc (right): https://codereview.chromium.org/545593002/diff/1/media/cast/sender/audio_sender.cc#newcode96 media/cast/sender/audio_sender.cc:96: UpdateEncoderBacklogStats(+audio_bus->frames()); What's with the '+'? https://codereview.chromium.org/545593002/diff/1/media/cast/sender/frame_sender.cc File media/cast/sender/frame_sender.cc (right): ...
6 years, 3 months ago (2014-09-05 20:02:07 UTC) #3
miu
I will wait until hubbe@'s change (https://codereview.chromium.org/542883004/) lands, then re-merge, then we can continue reviewing. ...
6 years, 3 months ago (2014-09-05 20:40:27 UTC) #5
Alpha Left Google
Okay. LGTM.
6 years, 3 months ago (2014-09-05 20:50:42 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/545593002/40001
6 years, 3 months ago (2014-09-09 17:54:02 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:40001) as 8cd9bc9551edaf7ef7615a4c8dc4aa102e9d5bbc
6 years, 3 months ago (2014-09-09 19:33:49 UTC) #10
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:54:57 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/182520b878bee21aad3500391cd51d486e37bf1e
Cr-Commit-Position: refs/heads/master@{#293987}

Powered by Google App Engine
This is Rietveld 408576698